Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001735/0.001735, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002158/0.002158, allocations: 214.2 kB / 24.52 MB, free: 3.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 230.5 MB / 258.2 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 67.88 kB / 378.5 MB, free: 2.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.3033, allocations: 53.4 MB / 431.9 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003876/0.3072, allocations: 2.246 MB / 434.1 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001544/0.3087, allocations: 0.7599 MB / 434.9 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001388/0.3088, allocations: 11.94 kB / 434.9 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002878/0.3091, allocations: 51.56 kB / 435 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002079/0.3093, allocations: 59.56 kB / 435 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005173/0.3099, allocations: 179.6 kB / 435.2 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004234/0.3103, allocations: 371.5 kB / 435.6 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001726/0.3104, allocations: 79.58 kB / 435.6 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002869/0.3107, allocations: 163.5 kB / 435.8 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002529/0.311, allocations: 187.2 kB / 436 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.096e-05/0.3111, allocations: 32 kB / 436 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.006e-05/0.3111, allocations: 36 kB / 436 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001226/0.3112, allocations: 99.72 kB / 436.1 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001313/0.3114, allocations: 119.4 kB / 436.3 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004264/0.3118, allocations: 340.5 kB / 436.6 MB, free: 1.766 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.3118, allocations: 0 / 436.6 MB, free: 1.766 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3118, allocations: 0 / 436.6 MB, free: 1.766 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.3118, allocations: 0 / 436.6 MB, free: 1.766 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001324/0.3131, allocations: 0.5444 MB / 437.1 MB, free: 1.191 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.3132, allocations: 12.03 kB / 437.1 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.228e-05/0.3132, allocations: 4.688 kB / 437.1 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.32e-05/0.3133, allocations: 66.73 kB / 437.2 MB, free: 1.098 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.499e-05/0.3134, allocations: 36.75 kB / 437.2 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004059/0.3138, allocations: 217.6 kB / 437.5 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003609/0.3141, allocations: 347.9 kB / 437.8 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.442e-05/0.3142, allocations: 36.08 kB / 437.8 MB, free: 396 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00129/0.3155, allocations: 0.5504 MB / 438.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.149e-05/0.3155, allocations: 4 kB / 438.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.959e-05/0.3156, allocations: 8 kB / 438.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.3156, allocations: 8 kB / 438.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001467/0.317, allocations: 0.5191 MB / 438.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/0.3186, allocations: 0.8906 MB / 439.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001542/0.3202, allocations: 466.5 kB / 440.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006719/0.3209, allocations: 239.4 kB / 440.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.414e-05/0.3209, allocations: 15.94 kB / 440.5 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.446e-05/0.321, allocations: 38.56 kB / 440.6 MB, free: 13.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.425e-06/0.321, allocations: 0 / 440.6 MB, free: 13.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.03976/0.3607, allocations: 5.749 MB / 446.3 MB, free: 7.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/0.3608, allocations: 149.4 kB / 446.5 MB, free: 7.574 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002275/0.3611, allocations: 195.6 kB / 446.6 MB, free: 7.375 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.893e-05/0.3612, allocations: 49.69 kB / 446.7 MB, free: 7.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.3613, allocations: 145.6 kB / 446.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002285/0.3615, allocations: 202.3 kB / 447 MB, free: 6.973 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003447/0.3618, allocations: 114.6 kB / 447.1 MB, free: 6.855 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.362, allocations: 342.8 kB / 447.5 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001608/0.3636, allocations: 0.6227 MB / 448.1 MB, free: 5.887 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001764/0.3654, allocations: 0.8042 MB / 448.9 MB, free: 5.008 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00308/0.3685, allocations: 1.256 MB / 450.2 MB, free: 3.672 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.3685, allocations: 4 kB / 450.2 MB, free: 3.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003548/0.372, allocations: 1.411 MB / 451.6 MB, free: 2.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.546e-05/0.3721, allocations: 8 kB / 451.6 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.3721, allocations: 4 kB / 451.6 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.098e-05/0.3721, allocations: 11.94 kB / 451.6 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00128/0.3734, allocations: 211.6 kB / 451.8 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.837e-05/0.3734, allocations: 11.98 kB / 451.8 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009534/0.3743, allocations: 103.8 kB / 451.9 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.859e-05/0.3744, allocations: 31.98 kB / 452 MB, free: 1.875 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003395/0.3748, allocations: 181.6 kB / 452.1 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003218/0.3751, allocations: 153.4 kB / 452.3 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000165/0.3753, allocations: 63.25 kB / 452.3 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-05/0.3753, allocations: 8 kB / 452.3 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.3753, allocations: 0 / 452.3 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.3753, allocations: 11.98 kB / 452.4 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004849/0.3801, allocations: 1.964 MB / 454.3 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.123e-05/0.3802, allocations: 12 kB / 454.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007834/0.3809, allocations: 179.7 kB / 454.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.012e-05/0.381, allocations: 12 kB / 454.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.856e-05/0.381, allocations: 28.58 kB / 454.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-05/0.381, allocations: 19.94 kB / 454.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.069e-05/0.3811, allocations: 23.81 kB / 454.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003478/0.3845, allocations: 1.573 MB / 456.2 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002398/0.3848, allocations: 95.62 kB / 456.3 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.724e-05/0.3849, allocations: 24 kB / 456.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006111/0.3855, allocations: 79.97 kB / 456.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002211/0.3857, allocations: 99.88 kB / 456.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-05/0.3857, allocations: 32 kB / 456.5 MB, free: 12.99 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001804/0.3859, allocations: 155.5 kB / 456.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3859, allocations: 0 / 456.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000719/0.3866, allocations: 120 kB / 456.8 MB, free: 12.72 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00364/0.3903, allocations: 2.145 MB / 458.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002788/0.3931, allocations: 1.049 MB / 460 MB, free: 9.367 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/0.3931, allocations: 4 kB / 460 MB, free: 9.363 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001022/0.3941, allocations: 335.2 kB / 460.3 MB, free: 9.039 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009329/0.395, allocations: 138.9 kB / 460.4 MB, free: 8.906 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01324/0.4083, allocations: 6.826 MB / 467.2 MB, free: 1.578 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002372/0.4085, allocations: 203.3 kB / 467.4 MB, free: 1.355 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004926/0.409, allocations: 95.3 kB / 467.5 MB, free: 1.262 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004145/0.4094, allocations: 123.4 kB / 467.7 MB, free: 1.145 MB / 366.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4094, allocations: 4 kB / 467.7 MB, free: 1.141 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0531/0.4625, allocations: 12.42 MB / 480.1 MB, free: 4.895 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/12, allocations: 13.77 kB / 480.1 MB, free: 4.887 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.k,PI.u,PI.x,PI.y,angle.flange.phi,angle.flange.tau,angle.phi,der(load.w),der(speed.flange.phi),feedback1.u1,feedback1.u2,feedback1.y,feedback2.u1,feedback2.u2,feedback2.y,gain.k,gain.u,gain.y,hold1.u,hold1.y,hold1.y_start,kinematicPTP.endTime,kinematicPTP.moving[1],kinematicPTP.nout,kinematicPTP.q[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd[1],kinematicPTP.qd_max[1],kinematicPTP.qdd[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.a,load.flange_a.phi,load.flange_a.tau,load.flange_b.phi,load.flange_b.tau,load.phi,load.stateSelect,load.w,periodicRealClock.period,periodicRealClock.useSolver,previous(PI.x),sample1.u,sample1.y,sample2.u,sample2.y,sample3.u,sample3.y,speed.flange.phi,speed.flange.tau,speed.w,super.factor,super.inferFactor,super.u,super.y,time,torque.flange.phi,torque.flange.tau,torque.tau,torque.useSupport [Calling sys.exit(0), Time elapsed: 14.862069839029573]