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.0007982/0.0007982, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001114/0.001912, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0008243/0.0008243, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001053/0.001877, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.001/1.001, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08165/1.083, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.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: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.162e-06/1.162e-06, allocations: 0 / 244.5 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.146e-05/1.262e-05, allocations: 2.312 kB / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.00266/0.002673, allocations: 2.439 MB / 246.9 MB, free: 11.88 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009902/0.003663, allocations: 0.88 MB / 247.8 MB, free: 11 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.003782, allocations: 7.938 kB / 247.8 MB, free: 10.99 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001658/0.003948, allocations: 55.56 kB / 247.9 MB, free: 10.93 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001438/0.004092, allocations: 71.42 kB / 248 MB, free: 10.86 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003388/0.004431, allocations: 199.4 kB / 248.1 MB, free: 10.67 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003003/0.004731, allocations: 395.5 kB / 248.5 MB, free: 10.28 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001396/0.004871, allocations: 74.42 kB / 248.6 MB, free: 10.21 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002828/0.005153, allocations: 259.4 kB / 248.9 MB, free: 9.957 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001669/0.00532, allocations: 147.6 kB / 249 MB, free: 9.812 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.335e-05/0.005364, allocations: 36 kB / 249 MB, free: 9.777 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.534e-05/0.005399, allocations: 36 kB / 249.1 MB, free: 9.742 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.089e-05/0.00548, allocations: 79.73 kB / 249.2 MB, free: 9.664 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.631e-05/0.005556, allocations: 87.8 kB / 249.2 MB, free: 9.578 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002387/0.005795, allocations: 239.1 kB / 249.5 MB, free: 9.344 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.156e-05/0.005806, allocations: 4 kB / 249.5 MB, free: 9.34 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.005807, allocations: 0 / 249.5 MB, free: 9.34 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.086e-05/0.005818, allocations: 4 kB / 249.5 MB, free: 9.336 MB / 250.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.0007596/0.006578, allocations: 0.6242 MB / 250.1 MB, free: 8.688 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.09e-05/0.006608, allocations: 16.03 kB / 250.1 MB, free: 8.672 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.863e-05/0.006677, allocations: 64.89 kB / 250.2 MB, free: 8.609 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000233/0.00691, allocations: 221.1 kB / 250.4 MB, free: 8.367 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001691/0.007079, allocations: 347.9 kB / 250.7 MB, free: 7.961 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.808e-05/0.007117, allocations: 32.38 kB / 250.8 MB, free: 7.93 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004515/0.007569, allocations: 422.3 kB / 251.2 MB, free: 7.488 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.007582, allocations: 4.141 kB / 251.2 MB, free: 7.484 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.042e-05/0.007603, allocations: 16.12 kB / 251.2 MB, free: 7.469 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.00761, allocations: 4 kB / 251.2 MB, free: 7.465 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002453/0.007855, allocations: 185.3 kB / 251.4 MB, free: 7.285 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006954/0.00855, allocations: 0.639 MB / 252 MB, free: 6.609 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004518/0.009002, allocations: 326.7 kB / 252.3 MB, free: 6.25 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001122/0.009114, allocations: 111.5 kB / 252.5 MB, free: 6.129 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.644e-05/0.009151, allocations: 12 kB / 252.5 MB, free: 6.117 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.437e-05/0.009175, allocations: 42.55 kB / 252.5 MB, free: 6.066 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.583e-06/0.009177, allocations: 0 / 252.5 MB, free: 6.066 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.005558/0.01473, allocations: 2.253 MB / 254.8 MB, free: 3.805 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.77e-05/0.0148, allocations: 149 kB / 254.9 MB, free: 3.629 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001386/0.01494, allocations: 228.9 kB / 255.1 MB, free: 3.395 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.867e-05/0.01499, allocations: 37.7 kB / 255.2 MB, free: 3.352 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.417e-05/0.01504, allocations: 145.7 kB / 255.3 MB, free: 3.207 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.01515, allocations: 186.3 kB / 255.5 MB, free: 3.023 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00016/0.01531, allocations: 102.2 kB / 255.6 MB, free: 2.918 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.291e-05/0.0154, allocations: 346.8 kB / 255.9 MB, free: 2.57 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000233/0.01563, allocations: 204.1 kB / 256.1 MB, free: 2.367 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002646/0.01589, allocations: 298.7 kB / 256.4 MB, free: 2.051 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004615/0.01636, allocations: 495 kB / 256.9 MB, free: 1.535 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.01636, allocations: 3.938 kB / 256.9 MB, free: 1.531 MB / 250.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0005758/0.01693, allocations: 0.5363 MB / 257.4 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.01695, allocations: 8 kB / 257.5 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.299e-06/0.01695, allocations: 0 / 257.5 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.01697, allocations: 4 kB / 257.5 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005796/0.01755, allocations: 183.7 kB / 257.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.01755, allocations: 12.14 kB / 257.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002945/0.01785, allocations: 75.88 kB / 257.7 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.57e-05/0.01788, allocations: 15.98 kB / 257.7 MB, free: 0.6992 MB / 250.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.0001397/0.01802, allocations: 148.5 kB / 257.9 MB, free: 0.543 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001526/0.01818, allocations: 117.6 kB / 258 MB, free: 432 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.522e-05/0.01825, allocations: 71.61 kB / 258.1 MB, free: 356 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.01826, allocations: 8 kB / 258.1 MB, free: 348 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.325e-06/0.01826, allocations: 0 / 258.1 MB, free: 348 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.01827, allocations: 3.984 kB / 258.1 MB, free: 344 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001423/0.01969, allocations: 1.204 MB / 259.3 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/0.0197, allocations: 12 kB / 259.3 MB, free: 14.97 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003572/0.02005, allocations: 188.5 kB / 259.5 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.02016, allocations: 75.62 kB / 259.6 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.727e-06/0.02017, allocations: 12 kB / 259.6 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.953e-05/0.0202, allocations: 28 kB / 259.6 MB, free: 14.67 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.137e-05/0.02021, allocations: 23.92 kB / 259.6 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/0.02022, allocations: 11.94 kB / 259.6 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006896/0.02091, allocations: 0.8441 MB / 260.5 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.267e-05/0.02095, allocations: 28 kB / 260.5 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002363/0.02119, allocations: 59.94 kB / 260.6 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.0213, allocations: 83.64 kB / 260.6 MB, free: 13.47 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.412e-05/0.02132, allocations: 28 kB / 260.7 MB, free: 13.44 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.136e-05/0.02137, allocations: 74.77 kB / 260.7 MB, free: 13.36 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02137, allocations: 0 / 260.7 MB, free: 13.36 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003201/0.02169, allocations: 132 kB / 260.9 MB, free: 13.23 MB / 266.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.0001007/0.02179, allocations: 119.8 kB / 261 MB, free: 13.11 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004952/0.02229, allocations: 465.1 kB / 261.4 MB, free: 12.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/0.0223, allocations: 8.438 kB / 261.4 MB, free: 12.65 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001627/0.02246, allocations: 163.3 kB / 261.6 MB, free: 12.49 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000494/0.02295, allocations: 179.9 kB / 261.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002417/0.02537, allocations: 1.181 MB / 263 MB, free: 10.97 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.041e-05/0.02546, allocations: 142.8 kB / 263.1 MB, free: 10.81 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000247/0.02571, allocations: 75.23 kB / 263.2 MB, free: 10.74 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002867/0.02599, allocations: 127.3 kB / 263.3 MB, free: 10.61 MB / 266.7 MB Notification: Performance of SimCode: time 1.112e-06/0.026, allocations: 0 / 263.3 MB, free: 10.61 MB / 266.7 MB Notification: Performance of Templates: time 0.009621/0.03562, allocations: 9.717 MB / 273 MB, free: 0.957 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7024294175207615]