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.0008415/0.0008415, allocations: 91.67 kB / 20.68 MB, free: 3.871 MB / 18.57 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.0008751/0.0008751, allocations: 166 kB / 23.95 MB, free: 0.5977 MB / 18.57 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 0.8775/0.8775, allocations: 177.1 MB / 204.3 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 324.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.128e-05/1.273e-05, allocations: 8.469 kB / 324.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002258/0.00227, allocations: 2.304 MB / 326.8 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009879/0.003258, allocations: 0.8298 MB / 327.7 MB, free: 12.67 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.003383, allocations: 7.938 kB / 327.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002332/0.003617, allocations: 55.56 kB / 327.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001627/0.003779, allocations: 83.3 kB / 327.8 MB, free: 12.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003317/0.004111, allocations: 206.8 kB / 328 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002741/0.004385, allocations: 399.4 kB / 328.4 MB, free: 11.94 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001326/0.004518, allocations: 71.59 kB / 328.5 MB, free: 11.87 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002484/0.004766, allocations: 247.4 kB / 328.7 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001883/0.004954, allocations: 143.6 kB / 328.9 MB, free: 11.49 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.14e-05/0.004996, allocations: 40 kB / 328.9 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.264e-05/0.005029, allocations: 36 kB / 328.9 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.993e-05/0.005108, allocations: 107.6 kB / 329 MB, free: 11.31 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.624e-05/0.005185, allocations: 111.6 kB / 329.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003483/0.005533, allocations: 390.8 kB / 329.5 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.235e-06/0.005535, allocations: 0 / 329.5 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.005536, allocations: 0 / 329.5 MB, free: 10.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.00554, allocations: 0 / 329.5 MB, free: 10.82 MB / 298.7 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.0007496/0.00629, allocations: 0.6057 MB / 330.1 MB, free: 10.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.006323, allocations: 12.02 kB / 330.2 MB, free: 10.17 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.11e-05/0.006374, allocations: 74.67 kB / 330.2 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.308e-05/0.006427, allocations: 44.7 kB / 330.3 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002797/0.006707, allocations: 253.1 kB / 330.5 MB, free: 9.773 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001722/0.006879, allocations: 347.9 kB / 330.9 MB, free: 9.367 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.132e-05/0.006921, allocations: 32.38 kB / 330.9 MB, free: 9.336 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008434/0.007764, allocations: 0.5788 MB / 331.5 MB, free: 8.727 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.007777, allocations: 192 / 331.5 MB, free: 8.727 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.455e-05/0.007802, allocations: 11.94 kB / 331.5 MB, free: 8.715 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.007808, allocations: 8 kB / 331.5 MB, free: 8.707 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007713/0.00858, allocations: 0.5152 MB / 332 MB, free: 8.191 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008958/0.009475, allocations: 0.8914 MB / 332.9 MB, free: 7.238 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008304/0.01031, allocations: 474.6 kB / 333.4 MB, free: 6.738 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003522/0.01066, allocations: 244.3 kB / 333.6 MB, free: 6.488 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.212e-05/0.01069, allocations: 4 kB / 333.6 MB, free: 6.484 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.905e-05/0.01071, allocations: 42.5 kB / 333.6 MB, free: 6.434 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.433e-06/0.01071, allocations: 7.875 kB / 333.6 MB, free: 6.426 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.01835/0.02906, allocations: 5.807 MB / 339.5 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.232e-05/0.02913, allocations: 149 kB / 339.6 MB, free: 436 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001836/0.02932, allocations: 265.8 kB / 339.9 MB, free: 164 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.614e-05/0.02937, allocations: 41.7 kB / 339.9 MB, free: 116 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.49e-05/0.02945, allocations: 153.7 kB / 340.1 MB, free: 15.96 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/0.02957, allocations: 186.3 kB / 340.2 MB, free: 15.78 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001739/0.02974, allocations: 102.3 kB / 340.3 MB, free: 15.67 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.706e-05/0.02983, allocations: 346.8 kB / 340.7 MB, free: 15.32 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008942/0.03072, allocations: 0.6103 MB / 341.3 MB, free: 14.71 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001204/0.03193, allocations: 0.6937 MB / 342 MB, free: 13.99 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001634/0.03356, allocations: 1.111 MB / 343.1 MB, free: 12.85 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.03356, allocations: 7.938 kB / 343.1 MB, free: 12.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001902/0.03546, allocations: 1.294 MB / 344.4 MB, free: 11.54 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.03548, allocations: 8 kB / 344.4 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.03549, allocations: 0 / 344.4 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.0355, allocations: 4 kB / 344.4 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005767/0.03608, allocations: 175.8 kB / 344.6 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.03609, allocations: 15.92 kB / 344.6 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003987/0.03649, allocations: 91.78 kB / 344.7 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.537e-05/0.03654, allocations: 23.92 kB / 344.7 MB, free: 11.23 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (67): * Single equations (assignments): 67 * 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.0002032/0.03674, allocations: 181.7 kB / 344.9 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001795/0.03692, allocations: 157.8 kB / 345 MB, free: 10.88 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.259e-05/0.03701, allocations: 71.61 kB / 345.1 MB, free: 10.81 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.03702, allocations: 8.094 kB / 345.1 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.03702, allocations: 3.938 kB / 345.1 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.03703, allocations: 3.984 kB / 345.1 MB, free: 10.79 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002682/0.03971, allocations: 1.987 MB / 347.1 MB, free: 8.629 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.03972, allocations: 8.969 kB / 347.1 MB, free: 8.621 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003744/0.04009, allocations: 183.7 kB / 347.3 MB, free: 8.441 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.275e-06/0.0401, allocations: 23.88 kB / 347.3 MB, free: 8.418 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.184e-05/0.04013, allocations: 28 kB / 347.3 MB, free: 8.391 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.084e-05/0.04014, allocations: 23.86 kB / 347.4 MB, free: 8.367 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/0.04015, allocations: 15.94 kB / 347.4 MB, free: 8.352 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002063/0.04221, allocations: 1.554 MB / 348.9 MB, free: 6.645 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001425/0.04236, allocations: 107.6 kB / 349 MB, free: 6.539 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.253e-05/0.0424, allocations: 27.98 kB / 349.1 MB, free: 6.512 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002962/0.04269, allocations: 75.86 kB / 349.1 MB, free: 6.438 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.04283, allocations: 99.64 kB / 349.2 MB, free: 6.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.028e-05/0.04286, allocations: 39.92 kB / 349.3 MB, free: 6.301 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000112/0.04297, allocations: 185.2 kB / 349.5 MB, free: 6.121 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.04297, allocations: 4.062 kB / 349.5 MB, free: 6.117 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003896/0.04336, allocations: 124 kB / 349.6 MB, free: 5.996 MB / 314.7 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.001967/0.04533, allocations: 2.126 MB / 351.7 MB, free: 3.711 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00154/0.04687, allocations: 0.9947 MB / 352.7 MB, free: 2.711 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.04687, allocations: 0 / 352.7 MB, free: 2.711 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005747/0.04745, allocations: 342.5 kB / 353 MB, free: 2.379 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005982/0.04805, allocations: 151.8 kB / 353.2 MB, free: 2.234 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00778/0.05583, allocations: 6.53 MB / 359.7 MB, free: 11.3 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001691/0.056, allocations: 228.7 kB / 359.9 MB, free: 11.06 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002992/0.05629, allocations: 91.22 kB / 360 MB, free: 10.97 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002586/0.05655, allocations: 124.5 kB / 360.2 MB, free: 10.85 MB / 330.7 MB Notification: Performance of SimCode: time 9.22e-07/0.05655, allocations: 0 / 360.2 MB, free: 10.85 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02355/0.0801, allocations: 12.93 MB / 373.1 MB, free: 14.11 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.961/7.041, allocations: 7.922 kB / 373.1 MB, free: 14.1 MB / 346.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins/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: 8.76241981703788]