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.0008475/0.0008475, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009502/0.001798, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0006283/0.0006283, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008768/0.001505, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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 0.9321/0.9321, allocations: 173.4 MB / 185.8 MB, free: 8.984 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07916/1.011, allocations: 52.49 MB / 238.3 MB, free: 4.434 MB / 234.7 MB " [Timeout remaining time 179] 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: 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.0.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.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 239.5 MB, free: 3.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.825e-05/1.956e-05, allocations: 2.312 kB / 239.5 MB, free: 3.199 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002661/0.002681, allocations: 2.431 MB / 242 MB, free: 0.7539 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009713/0.003652, allocations: 0.8412 MB / 242.8 MB, free: 15.91 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000134/0.003786, allocations: 15.94 kB / 242.8 MB, free: 15.89 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001663/0.003952, allocations: 47.58 kB / 242.9 MB, free: 15.84 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001416/0.004094, allocations: 75.36 kB / 242.9 MB, free: 15.77 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003335/0.004428, allocations: 199.4 kB / 243.1 MB, free: 15.57 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002831/0.004711, allocations: 391.5 kB / 243.5 MB, free: 15.19 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.004869, allocations: 74.48 kB / 243.6 MB, free: 15.12 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000269/0.005138, allocations: 255.4 kB / 243.8 MB, free: 14.87 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001575/0.005296, allocations: 147.6 kB / 244 MB, free: 14.72 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.372e-05/0.005339, allocations: 36 kB / 244 MB, free: 14.69 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.427e-05/0.005374, allocations: 36 kB / 244 MB, free: 14.65 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.662e-05/0.00545, allocations: 87.72 kB / 244.1 MB, free: 14.57 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.979e-05/0.00552, allocations: 75.81 kB / 244.2 MB, free: 14.49 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002429/0.005763, allocations: 251 kB / 244.5 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.007e-05/0.005773, allocations: 0 / 244.5 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.005774, allocations: 0 / 244.5 MB, free: 14.25 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.005788, allocations: 0 / 244.5 MB, free: 14.25 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.0007182/0.006506, allocations: 0.6319 MB / 245.1 MB, free: 13.59 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.653e-05/0.006532, allocations: 12.03 kB / 245.1 MB, free: 13.58 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.522e-05/0.006598, allocations: 64.89 kB / 245.2 MB, free: 13.52 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002347/0.006832, allocations: 225.2 kB / 245.4 MB, free: 13.27 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001593/0.006992, allocations: 347.9 kB / 245.7 MB, free: 12.86 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.573e-05/0.007027, allocations: 28.33 kB / 245.7 MB, free: 12.83 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004431/0.00747, allocations: 415.7 kB / 246.2 MB, free: 12.39 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.007484, allocations: 4.188 kB / 246.2 MB, free: 12.39 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.967e-05/0.007504, allocations: 12.12 kB / 246.2 MB, free: 12.38 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.007512, allocations: 8 kB / 246.2 MB, free: 12.37 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002608/0.007772, allocations: 178.6 kB / 246.4 MB, free: 12.2 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006521/0.008425, allocations: 0.6507 MB / 247 MB, free: 11.51 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004351/0.00886, allocations: 326.7 kB / 247.3 MB, free: 11.15 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001102/0.00897, allocations: 115.5 kB / 247.4 MB, free: 11.02 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.673e-05/0.009007, allocations: 19.92 kB / 247.5 MB, free: 11 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.942e-05/0.009026, allocations: 38.56 kB / 247.5 MB, free: 10.96 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.443e-06/0.009028, allocations: 0 / 247.5 MB, free: 10.96 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.005444/0.01447, allocations: 2.24 MB / 249.7 MB, free: 8.711 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.047e-05/0.01453, allocations: 149 kB / 249.9 MB, free: 8.535 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000126/0.01466, allocations: 228.9 kB / 250.1 MB, free: 8.301 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.773e-05/0.01471, allocations: 37.7 kB / 250.1 MB, free: 8.258 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.819e-05/0.01475, allocations: 141.7 kB / 250.3 MB, free: 8.117 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.01486, allocations: 190.3 kB / 250.5 MB, free: 7.93 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001481/0.01501, allocations: 98.23 kB / 250.6 MB, free: 7.828 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.456e-05/0.01508, allocations: 342.8 kB / 250.9 MB, free: 7.484 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002282/0.01531, allocations: 212.1 kB / 251.1 MB, free: 7.277 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002566/0.01557, allocations: 294.6 kB / 251.4 MB, free: 6.961 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004591/0.01603, allocations: 499 kB / 251.9 MB, free: 6.445 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.01603, allocations: 3.938 kB / 251.9 MB, free: 6.441 MB / 250.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0005719/0.0166, allocations: 0.5324 MB / 252.4 MB, free: 5.898 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.01662, allocations: 8 kB / 252.4 MB, free: 5.891 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.01662, allocations: 0 / 252.4 MB, free: 5.891 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.045e-05/0.01663, allocations: 4 kB / 252.4 MB, free: 5.887 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005854/0.01722, allocations: 183.7 kB / 252.6 MB, free: 5.707 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.01722, allocations: 4 kB / 252.6 MB, free: 5.703 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003044/0.01753, allocations: 88.03 kB / 252.7 MB, free: 5.617 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.221e-05/0.01758, allocations: 15.98 kB / 252.7 MB, free: 5.602 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.0001443/0.01772, allocations: 144.5 kB / 252.8 MB, free: 5.449 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001533/0.01788, allocations: 125.6 kB / 253 MB, free: 5.32 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.228e-05/0.01795, allocations: 63.61 kB / 253 MB, free: 5.254 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.01795, allocations: 8 kB / 253 MB, free: 5.246 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.01796, allocations: 4 kB / 253 MB, free: 5.242 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.01796, allocations: 7.922 kB / 253.1 MB, free: 5.234 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001429/0.01939, allocations: 1.196 MB / 254.2 MB, free: 3.887 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.0194, allocations: 12 kB / 254.3 MB, free: 3.875 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003834/0.01978, allocations: 188.4 kB / 254.4 MB, free: 3.691 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/0.01989, allocations: 79.61 kB / 254.5 MB, free: 3.613 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.328e-06/0.0199, allocations: 16 kB / 254.5 MB, free: 3.598 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.829e-05/0.01993, allocations: 27.98 kB / 254.6 MB, free: 3.57 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.518e-06/0.01994, allocations: 15.94 kB / 254.6 MB, free: 3.555 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.648e-06/0.01995, allocations: 19.92 kB / 254.6 MB, free: 3.535 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006323/0.02058, allocations: 0.8547 MB / 255.5 MB, free: 2.523 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.651e-05/0.02063, allocations: 28 kB / 255.5 MB, free: 2.496 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002368/0.02087, allocations: 59.94 kB / 255.5 MB, free: 2.438 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.02097, allocations: 87.64 kB / 255.6 MB, free: 2.352 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.584e-05/0.021, allocations: 27.98 kB / 255.7 MB, free: 2.324 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.461e-05/0.02106, allocations: 74.78 kB / 255.7 MB, free: 2.246 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02106, allocations: 0 / 255.7 MB, free: 2.246 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003283/0.02138, allocations: 119.9 kB / 255.8 MB, free: 2.129 MB / 250.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.0001042/0.02149, allocations: 124.1 kB / 256 MB, free: 2 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005029/0.02199, allocations: 457.2 kB / 256.4 MB, free: 1.555 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/0.022, allocations: 4 kB / 256.4 MB, free: 1.551 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001599/0.02216, allocations: 164.6 kB / 256.6 MB, free: 1.391 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005032/0.02266, allocations: 184 kB / 256.8 MB, free: 1.215 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002371/0.02504, allocations: 1.177 MB / 257.9 MB, free: 15.87 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.296e-05/0.02513, allocations: 138.8 kB / 258.1 MB, free: 15.71 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002604/0.02539, allocations: 79.22 kB / 258.1 MB, free: 15.63 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003098/0.0257, allocations: 127.3 kB / 258.3 MB, free: 15.5 MB / 266.7 MB Notification: Performance of SimCode: time 7.72e-07/0.0257, allocations: 0 / 258.3 MB, free: 15.5 MB / 266.7 MB Notification: Performance of Templates: time 0.01081/0.03651, allocations: 9.737 MB / 268 MB, free: 5.836 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.601531366817653]