Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 112.2 kB / 18.49 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 219 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.509/1.509, allocations: 230.6 MB / 254.8 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001631/0.001631, allocations: 43.94 kB / 373.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1169, allocations: 53.33 MB / 427 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004554/0.1215, allocations: 2.407 MB / 429.4 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002155/0.1236, allocations: 0.8689 MB / 430.3 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003903/0.124, allocations: 19.81 kB / 430.3 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003887/0.1244, allocations: 47.56 kB / 430.3 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004025/0.1248, allocations: 67.48 kB / 430.4 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000817/0.1256, allocations: 203.5 kB / 430.6 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006956/0.1263, allocations: 399.4 kB / 431 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002368/0.1265, allocations: 67.53 kB / 431.1 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004429/0.127, allocations: 183.4 kB / 431.2 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003949/0.1274, allocations: 187.2 kB / 431.4 MB, free: 344 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.353e-05/0.1275, allocations: 32 kB / 431.5 MB, free: 312 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.496e-05/0.1275, allocations: 40 kB / 431.5 MB, free: 272 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001587/0.1277, allocations: 107.6 kB / 431.6 MB, free: 164 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001974/0.1279, allocations: 159.1 kB / 431.8 MB, free: 4 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2266/0.3545, allocations: 368.2 kB / 432.1 MB, free: 8.047 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3545, allocations: 0 / 432.1 MB, free: 8.047 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3545, allocations: 2.188 kB / 432.1 MB, free: 8.047 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.3545, allocations: 0 / 432.1 MB, free: 8.047 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001291/0.3558, allocations: 0.6751 MB / 432.8 MB, free: 7.582 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.3559, allocations: 12.91 kB / 432.8 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.962e-05/0.3559, allocations: 7.781 kB / 432.8 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.939e-05/0.356, allocations: 71.75 kB / 432.9 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.3561, allocations: 45.89 kB / 432.9 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004545/0.3565, allocations: 313.5 kB / 433.2 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001848/0.3567, allocations: 140.6 kB / 433.4 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.996e-05/0.3568, allocations: 28.06 kB / 433.4 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00114/0.3579, allocations: 0.5697 MB / 434 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.3579, allocations: 2.125 kB / 434 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.475e-05/0.358, allocations: 13.62 kB / 434 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.358, allocations: 8.875 kB / 434 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001334/0.3593, allocations: 0.5097 MB / 434.5 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001452/0.3608, allocations: 1.028 MB / 435.5 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001576/0.3623, allocations: 477.3 kB / 436 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006095/0.363, allocations: 234.6 kB / 436.2 MB, free: 6.422 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5e-05/0.363, allocations: 11.31 kB / 436.2 MB, free: 6.422 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.651e-05/0.363, allocations: 40.27 kB / 436.3 MB, free: 6.383 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.904e-06/0.363, allocations: 0 / 436.3 MB, free: 6.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03966/0.4027, allocations: 5.778 MB / 442.1 MB, free: 5.949 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.578e-05/0.4028, allocations: 148.9 kB / 442.2 MB, free: 5.785 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003194/0.4031, allocations: 253.8 kB / 442.4 MB, free: 5.641 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.909e-05/0.4032, allocations: 40.7 kB / 442.5 MB, free: 5.598 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.994e-05/0.4033, allocations: 152.6 kB / 442.6 MB, free: 5.461 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001888/0.4035, allocations: 202.6 kB / 442.8 MB, free: 5.309 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000295/0.4038, allocations: 114.3 kB / 442.9 MB, free: 5.246 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.531e-05/0.4038, allocations: 345.7 kB / 443.3 MB, free: 4.918 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001615/0.4054, allocations: 0.6164 MB / 443.9 MB, free: 4.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001687/0.4071, allocations: 0.7959 MB / 444.7 MB, free: 4.215 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003043/0.4102, allocations: 1.251 MB / 445.9 MB, free: 3.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.752e-06/0.4102, allocations: 3.562 kB / 445.9 MB, free: 3.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003849/0.414, allocations: 1.399 MB / 447.3 MB, free: 3.008 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.21e-05/0.4141, allocations: 12.44 kB / 447.4 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.189e-05/0.4141, allocations: 4.938 kB / 447.4 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.71e-05/0.4141, allocations: 9.125 kB / 447.4 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001495/0.4156, allocations: 216.2 kB / 447.6 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.191e-05/0.4157, allocations: 9.625 kB / 447.6 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/0.4167, allocations: 105 kB / 447.7 MB, free: 2.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/0.4168, allocations: 27.11 kB / 447.7 MB, free: 2.973 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: 2 (kinematicPTP.noWphase,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 (83): * Single equations (assignments): 83 * 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.0004611/0.4173, allocations: 188.9 kB / 447.9 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000378/0.4176, allocations: 170.8 kB / 448.1 MB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001931/0.4178, allocations: 67.34 kB / 448.1 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.11e-05/0.4179, allocations: 8.812 kB / 448.1 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.676e-05/0.4179, allocations: 2.125 kB / 448.2 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.4179, allocations: 8.844 kB / 448.2 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004843/0.4227, allocations: 2.18 MB / 450.3 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-05/0.4227, allocations: 11 kB / 450.3 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009017/0.4236, allocations: 183.5 kB / 450.5 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.161e-05/0.4237, allocations: 14.81 kB / 450.5 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-05/0.4237, allocations: 28.06 kB / 450.6 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-05/0.4238, allocations: 23.8 kB / 450.6 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.14e-05/0.4238, allocations: 20.06 kB / 450.6 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003682/0.4275, allocations: 1.567 MB / 452.2 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004206/0.4279, allocations: 176.7 kB / 452.4 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/0.428, allocations: 39.39 kB / 452.4 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000682/0.4287, allocations: 72.7 kB / 452.5 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002294/0.4289, allocations: 99.03 kB / 452.6 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.952e-05/0.429, allocations: 30.31 kB / 452.6 MB, free: 132 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002571/0.4293, allocations: 184.5 kB / 452.8 MB, free: 4 kB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4293, allocations: 0 / 452.8 MB, free: 4 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.001236/0.4305, allocations: 127.8 kB / 452.9 MB, free: 16 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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.004436/0.4349, allocations: 2.14 MB / 455 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003251/0.4382, allocations: 1.028 MB / 456.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.447e-05/0.4382, allocations: 5.531 kB / 456.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001147/0.4393, allocations: 333.2 kB / 456.4 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001147/0.4405, allocations: 138.5 kB / 456.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01562/0.4561, allocations: 6.916 MB / 463.4 MB, free: 8.441 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005363/0.4566, allocations: 0.8327 MB / 464.3 MB, free: 7.684 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005477/0.4572, allocations: 102 kB / 464.4 MB, free: 7.629 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004105/0.4576, allocations: 117.7 kB / 464.5 MB, free: 7.543 MB / 366.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4576, allocations: 0 / 464.5 MB, free: 7.543 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.037/0.4946, allocations: 11.73 MB / 476.2 MB, free: 13.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.014/9.508, allocations: 14.09 kB / 476.2 MB, free: 13.95 MB / 382.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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),fastClock.factor,fastClock.resolution,fastClock.useSolver,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,previous(PI.x),sample1.u,sample1.y,sample2.u,sample2.y,sample3.u,sample3.y,slowClock.factor,slowClock.resolution,slowClock.useSolver,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: 12.384023487975355]