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.001209/0.001209, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.00131/0.00131, allocations: 192.3 kB / 24.49 MB, free: 3.941 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.348/1.348, allocations: 225.7 MB / 253.3 MB, free: 12.82 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.001498/0.001498, allocations: 39.94 kB / 371.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2457, allocations: 52.19 MB / 423.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003558/0.2493, allocations: 2.291 MB / 425.6 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001385/0.2507, allocations: 0.7911 MB / 426.4 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001418/0.2508, allocations: 11.88 kB / 426.4 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002636/0.2511, allocations: 59.5 kB / 426.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002081/0.2513, allocations: 67.48 kB / 426.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005061/0.2518, allocations: 195.6 kB / 426.7 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004246/0.2522, allocations: 399.5 kB / 427.1 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001656/0.2524, allocations: 69.98 kB / 427.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002204/0.2526, allocations: 171.4 kB / 427.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002288/0.2529, allocations: 187.2 kB / 427.6 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.706e-05/0.2529, allocations: 36 kB / 427.6 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.839e-05/0.253, allocations: 36 kB / 427.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001299/0.2531, allocations: 115.6 kB / 427.7 MB, free: 9.957 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001349/0.2532, allocations: 131.3 kB / 427.9 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004061/0.2536, allocations: 382.3 kB / 428.2 MB, free: 9.453 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.2536, allocations: 0 / 428.2 MB, free: 9.453 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2536, allocations: 0 / 428.2 MB, free: 9.453 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.2536, allocations: 4 kB / 428.2 MB, free: 9.449 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.001225/0.2549, allocations: 0.6142 MB / 428.9 MB, free: 8.805 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.2549, allocations: 8.031 kB / 428.9 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.627e-05/0.2549, allocations: 8.688 kB / 428.9 MB, free: 8.789 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.244e-05/0.255, allocations: 70.72 kB / 428.9 MB, free: 8.711 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.463e-05/0.2551, allocations: 48.64 kB / 429 MB, free: 8.664 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004074/0.2555, allocations: 245.4 kB / 429.2 MB, free: 8.398 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002957/0.2558, allocations: 355.9 kB / 429.6 MB, free: 7.984 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.592e-05/0.2558, allocations: 32.12 kB / 429.6 MB, free: 7.953 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001212/0.2571, allocations: 0.5698 MB / 430.2 MB, free: 7.355 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.051e-05/0.2571, allocations: 3.953 kB / 430.2 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.554e-05/0.2571, allocations: 12 kB / 430.2 MB, free: 7.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.2571, allocations: 8 kB / 430.2 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001434/0.2585, allocations: 0.519 MB / 430.7 MB, free: 6.812 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001468/0.26, allocations: 0.9062 MB / 431.6 MB, free: 5.844 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001408/0.2614, allocations: 470.5 kB / 432.1 MB, free: 5.348 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006256/0.2621, allocations: 251.3 kB / 432.3 MB, free: 5.09 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.207e-05/0.2621, allocations: 8 kB / 432.3 MB, free: 5.082 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.956e-05/0.2621, allocations: 38.56 kB / 432.4 MB, free: 5.035 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 1.964e-06/0.2621, allocations: 0 / 432.4 MB, free: 5.035 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.0388/0.3009, allocations: 5.78 MB / 438.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/0.301, allocations: 152.9 kB / 438.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003215/0.3014, allocations: 265.8 kB / 438.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.294e-05/0.3015, allocations: 41.7 kB / 438.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.3016, allocations: 149.7 kB / 438.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002066/0.3018, allocations: 202.3 kB / 439 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003127/0.3021, allocations: 122.6 kB / 439.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.3022, allocations: 346.8 kB / 439.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001577/0.3038, allocations: 0.6188 MB / 440 MB, free: 13.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001762/0.3056, allocations: 0.8043 MB / 440.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002931/0.3085, allocations: 1.256 MB / 442.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.3085, allocations: 4 kB / 442.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003478/0.312, allocations: 1.403 MB / 443.5 MB, free: 9.668 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.549e-05/0.312, allocations: 12.03 kB / 443.5 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.312, allocations: 7.938 kB / 443.5 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.306e-05/0.312, allocations: 12 kB / 443.5 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/0.3134, allocations: 211.6 kB / 443.7 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.628e-05/0.3134, allocations: 8.375 kB / 443.7 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009514/0.3143, allocations: 115.7 kB / 443.9 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.647e-05/0.3144, allocations: 27.98 kB / 443.9 MB, free: 9.281 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.0003772/0.3148, allocations: 193.5 kB / 444.1 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003222/0.3151, allocations: 161.4 kB / 444.2 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001673/0.3153, allocations: 67.61 kB / 444.3 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.116e-05/0.3153, allocations: 11.94 kB / 444.3 MB, free: 8.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.824e-06/0.3153, allocations: 0 / 444.3 MB, free: 8.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.3153, allocations: 7.984 kB / 444.3 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004783/0.3201, allocations: 1.984 MB / 446.3 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-05/0.3201, allocations: 12 kB / 446.3 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007371/0.3209, allocations: 187.6 kB / 446.5 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.45e-05/0.3209, allocations: 12 kB / 446.5 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.188e-05/0.3209, allocations: 28 kB / 446.5 MB, free: 6.438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.881e-05/0.321, allocations: 23.92 kB / 446.6 MB, free: 6.414 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-05/0.321, allocations: 16.17 kB / 446.6 MB, free: 6.398 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003195/0.3242, allocations: 1.581 MB / 448.2 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002224/0.3244, allocations: 111.6 kB / 448.3 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.685e-05/0.3245, allocations: 23.98 kB / 448.3 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005854/0.325, allocations: 79.98 kB / 448.4 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002028/0.3253, allocations: 99.64 kB / 448.5 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.717e-05/0.3253, allocations: 31.98 kB / 448.5 MB, free: 4.324 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001812/0.3255, allocations: 189.2 kB / 448.7 MB, free: 4.141 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3255, allocations: 0 / 448.7 MB, free: 4.141 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006442/0.3261, allocations: 124 kB / 448.8 MB, free: 4.02 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: 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.0035/0.3296, allocations: 2.169 MB / 451 MB, free: 1.691 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002687/0.3323, allocations: 1.038 MB / 452 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/0.3323, allocations: 0 / 452 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009818/0.3333, allocations: 338.5 kB / 452.3 MB, free: 332 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009173/0.3342, allocations: 155.4 kB / 452.5 MB, free: 184 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01321/0.3474, allocations: 6.969 MB / 459.5 MB, free: 8.715 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002512/0.3477, allocations: 228.7 kB / 459.7 MB, free: 8.473 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004949/0.3482, allocations: 92.09 kB / 459.8 MB, free: 8.383 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004036/0.3486, allocations: 123.4 kB / 459.9 MB, free: 8.266 MB / 366.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3486, allocations: 0 / 459.9 MB, free: 8.266 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03668/0.3853, allocations: 12.9 MB / 472.8 MB, free: 11.6 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.13/11.51, allocations: 12.05 kB / 472.8 MB, free: 11.59 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.094934777007438]