Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001472/0.001472, allocations: 191.7 kB / 24.51 MB, free: 4.086 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001881/0.001881, allocations: 59.86 kB / 371.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3262/0.3281, allocations: 52.18 MB / 423.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.005474/0.3336, allocations: 2.424 MB / 425.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002208/0.3358, allocations: 0.8261 MB / 426.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000219/0.336, allocations: 19.88 kB / 426.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003594/0.3364, allocations: 63.48 kB / 426.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000237/0.3366, allocations: 67.48 kB / 426.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005909/0.3372, allocations: 195.6 kB / 427 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004559/0.3377, allocations: 391.5 kB / 427.4 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001814/0.3378, allocations: 79.8 kB / 427.4 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002443/0.3381, allocations: 175.4 kB / 427.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003013/0.3384, allocations: 183.2 kB / 427.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.233e-05/0.3384, allocations: 36 kB / 427.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.197e-05/0.3385, allocations: 32 kB / 427.9 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001313/0.3386, allocations: 111.6 kB / 428 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001579/0.3388, allocations: 163.1 kB / 428.1 MB, free: 9.871 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004704/0.3393, allocations: 371.2 kB / 428.5 MB, free: 9.512 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3393, allocations: 4 kB / 428.5 MB, free: 9.508 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3393, allocations: 0 / 428.5 MB, free: 9.508 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.185e-06/0.3393, allocations: 4 kB / 428.5 MB, free: 9.504 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001381/0.3407, allocations: 0.6063 MB / 429.1 MB, free: 8.867 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.264e-05/0.3407, allocations: 8.031 kB / 429.1 MB, free: 8.859 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.356e-05/0.3407, allocations: 8.688 kB / 429.1 MB, free: 8.852 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.089e-05/0.3408, allocations: 74.67 kB / 429.2 MB, free: 8.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.398e-05/0.3409, allocations: 48.69 kB / 429.2 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005041/0.3414, allocations: 249.4 kB / 429.5 MB, free: 8.453 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003502/0.3418, allocations: 347.9 kB / 429.8 MB, free: 8.047 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.615e-05/0.3418, allocations: 36.12 kB / 429.9 MB, free: 8.012 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00125/0.3431, allocations: 0.5659 MB / 430.4 MB, free: 7.418 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.987e-05/0.3431, allocations: 3.984 kB / 430.4 MB, free: 7.414 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.725e-05/0.3431, allocations: 12 kB / 430.4 MB, free: 7.402 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.276e-06/0.3431, allocations: 4 kB / 430.4 MB, free: 7.398 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001482/0.3446, allocations: 0.519 MB / 431 MB, free: 6.879 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001678/0.3463, allocations: 0.953 MB / 431.9 MB, free: 5.863 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001616/0.3479, allocations: 486.5 kB / 432.4 MB, free: 5.352 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00063/0.3485, allocations: 239.3 kB / 432.6 MB, free: 5.105 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.176e-05/0.3486, allocations: 4 kB / 432.6 MB, free: 5.102 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.156e-05/0.3486, allocations: 42.55 kB / 432.7 MB, free: 5.051 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.004e-06/0.3486, allocations: 0 / 432.7 MB, free: 5.051 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.0392/0.3878, allocations: 5.774 MB / 438.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001444/0.388, allocations: 156.9 kB / 438.6 MB, free: 15.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003146/0.3883, allocations: 253.9 kB / 438.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.959e-05/0.3884, allocations: 37.7 kB / 438.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.3885, allocations: 153.6 kB / 439 MB, free: 14.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002214/0.3887, allocations: 202.3 kB / 439.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003159/0.389, allocations: 114.6 kB / 439.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.3892, allocations: 346.8 kB / 439.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001789/0.391, allocations: 0.6188 MB / 440.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001862/0.3929, allocations: 0.7925 MB / 441.1 MB, free: 12.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003323/0.3962, allocations: 1.255 MB / 442.4 MB, free: 11.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.3962, allocations: 0 / 442.4 MB, free: 11.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00391/0.4001, allocations: 1.398 MB / 443.7 MB, free: 9.727 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.755e-05/0.4001, allocations: 8 kB / 443.8 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.863e-05/0.4002, allocations: 4.234 kB / 443.8 MB, free: 9.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.753e-05/0.4002, allocations: 16.19 kB / 443.8 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00139/0.4016, allocations: 215.6 kB / 444 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.16e-05/0.4016, allocations: 11.98 kB / 444 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001009/0.4026, allocations: 95.84 kB / 444.1 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.399e-05/0.4027, allocations: 35.97 kB / 444.1 MB, free: 9.348 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.0004065/0.4031, allocations: 197.5 kB / 444.3 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003597/0.4035, allocations: 161.7 kB / 444.5 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002123/0.4037, allocations: 71.61 kB / 444.5 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-05/0.4037, allocations: 8 kB / 444.6 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/0.4037, allocations: 0 / 444.6 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.4037, allocations: 3.984 kB / 444.6 MB, free: 8.898 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00527/0.409, allocations: 2.159 MB / 446.7 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.648e-05/0.409, allocations: 12.03 kB / 446.7 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008143/0.4098, allocations: 179.7 kB / 446.9 MB, free: 6.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.724e-05/0.4099, allocations: 16 kB / 446.9 MB, free: 6.359 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.24e-05/0.4099, allocations: 24 kB / 446.9 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.048e-05/0.41, allocations: 19.92 kB / 447 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.806e-05/0.41, allocations: 15.94 kB / 447 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003769/0.4137, allocations: 1.565 MB / 448.5 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003424/0.4141, allocations: 107.6 kB / 448.6 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.597e-05/0.4142, allocations: 24 kB / 448.7 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006374/0.4148, allocations: 83.97 kB / 448.8 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002522/0.4151, allocations: 91.64 kB / 448.8 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.567e-05/0.4151, allocations: 32 kB / 448.9 MB, free: 4.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002845/0.4154, allocations: 189.1 kB / 449.1 MB, free: 4.066 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4154, allocations: 0 / 449.1 MB, free: 4.066 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007956/0.4162, allocations: 124 kB / 449.2 MB, free: 3.945 MB / 350.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.004225/0.4204, allocations: 2.141 MB / 451.3 MB, free: 1.652 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003226/0.4237, allocations: 1.023 MB / 452.3 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.098e-06/0.4237, allocations: 0 / 452.3 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001088/0.4248, allocations: 337.9 kB / 452.7 MB, free: 308 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001124/0.4259, allocations: 148.3 kB / 452.8 MB, free: 160 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01516/0.441, allocations: 6.925 MB / 459.7 MB, free: 8.742 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006568/0.4417, allocations: 0.8245 MB / 460.6 MB, free: 7.895 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005553/0.4423, allocations: 100.1 kB / 460.7 MB, free: 7.793 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004456/0.4427, allocations: 119.9 kB / 460.8 MB, free: 7.676 MB / 366.1 MB Notification: Performance of SimCode: time 1.864e-06/0.4427, allocations: 4 kB / 460.8 MB, free: 7.672 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0519/0.4946, allocations: 12.41 MB / 473.2 MB, free: 11.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.11, allocations: 8.047 kB / 473.2 MB, free: 11.41 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 14.92244649596978]