Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.002664/0.002664, allocations: 99.53 kB / 21.73 MB, free: 2.691 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.003012/0.003012, allocations: 162.2 kB / 25.03 MB, free: 8.414 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.331/1.331, allocations: 158.6 MB / 186.8 MB, free: 2.922 MB / 170.7 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 250.3 MB, free: 7.859 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.191e-05/3.362e-05, allocations: 6.109 kB / 250.4 MB, free: 7.855 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004102/0.004135, allocations: 2.413 MB / 252.8 MB, free: 5.426 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00203/0.006165, allocations: 0.9877 MB / 253.8 MB, free: 4.422 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001368/0.006302, allocations: 4 kB / 253.8 MB, free: 4.418 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002203/0.006522, allocations: 51.45 kB / 253.8 MB, free: 4.367 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005474/0.00707, allocations: 167 kB / 254 MB, free: 4.203 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003777/0.007448, allocations: 179.6 kB / 254.1 MB, free: 4.027 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005647/0.008012, allocations: 494.3 kB / 254.6 MB, free: 3.543 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001811/0.008194, allocations: 61.06 kB / 254.7 MB, free: 3.484 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004311/0.008625, allocations: 291.3 kB / 255 MB, free: 3.199 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003552/0.00898, allocations: 211.5 kB / 255.2 MB, free: 2.992 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 7.966e-05/0.00906, allocations: 36 kB / 255.2 MB, free: 2.957 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002406/0.0093, allocations: 119.9 kB / 255.3 MB, free: 2.84 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001685/0.009469, allocations: 111.6 kB / 255.4 MB, free: 2.73 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001829/0.009652, allocations: 135.7 kB / 255.6 MB, free: 2.598 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007388/0.01039, allocations: 0.5335 MB / 256.1 MB, free: 2.062 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.01039, allocations: 4 kB / 256.1 MB, free: 2.059 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.0104, allocations: 0 / 256.1 MB, free: 2.059 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.0104, allocations: 0 / 256.1 MB, free: 2.059 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001406/0.01181, allocations: 0.7061 MB / 256.8 MB, free: 1.312 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.01186, allocations: 15.98 kB / 256.8 MB, free: 1.297 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003746/0.01223, allocations: 76.73 kB / 256.9 MB, free: 1.223 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005205/0.01275, allocations: 267.8 kB / 257.2 MB, free: 0.9336 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002163/0.01297, allocations: 144 kB / 257.3 MB, free: 0.7695 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.837e-05/0.01305, allocations: 32.38 kB / 257.3 MB, free: 0.7383 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008539/0.0139, allocations: 424.8 kB / 257.8 MB, free: 308 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/0.01392, allocations: 192 / 257.8 MB, free: 308 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.834e-05/0.01397, allocations: 20.12 kB / 257.8 MB, free: 288 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.01398, allocations: 8 kB / 257.8 MB, free: 280 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009764/0.01495, allocations: 414.3 kB / 258.2 MB, free: 15.87 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001863/0.01682, allocations: 0.8521 MB / 259 MB, free: 14.98 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008438/0.01766, allocations: 353.9 kB / 259.4 MB, free: 14.63 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004664/0.01813, allocations: 197 kB / 259.6 MB, free: 14.43 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.562e-05/0.01817, allocations: 8.5 kB / 259.6 MB, free: 14.43 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.789e-05/0.01821, allocations: 41.89 kB / 259.6 MB, free: 14.38 MB / 250.7 MB Notification: Performance of pre-optimization done (n=49): time 1.633e-06/0.01821, allocations: 0 / 259.6 MB, free: 14.38 MB / 250.7 MB Notification: Performance of matching and sorting (n=55): time 0.005294/0.02351, allocations: 1.851 MB / 261.5 MB, free: 12.46 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.289e-05/0.02358, allocations: 85.61 kB / 261.6 MB, free: 12.36 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004009/0.02398, allocations: 305.4 kB / 261.9 MB, free: 12.04 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.217e-05/0.02403, allocations: 45.69 kB / 261.9 MB, free: 11.99 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.02418, allocations: 183.9 kB / 262.1 MB, free: 11.81 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000202/0.02438, allocations: 202.4 kB / 262.3 MB, free: 11.61 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001901/0.02457, allocations: 103.8 kB / 262.4 MB, free: 11.5 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003082/0.02488, allocations: 0.5235 MB / 262.9 MB, free: 10.96 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004243/0.0253, allocations: 168.9 kB / 263.1 MB, free: 10.8 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005241/0.02583, allocations: 258.2 kB / 263.3 MB, free: 10.53 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008262/0.02665, allocations: 357.3 kB / 263.7 MB, free: 10.17 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.02665, allocations: 0 / 263.7 MB, free: 10.17 MB / 250.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001297/0.02795, allocations: 0.5837 MB / 264.3 MB, free: 9.582 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.02797, allocations: 8 kB / 264.3 MB, free: 9.574 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.02798, allocations: 3.938 kB / 264.3 MB, free: 9.57 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008162/0.02879, allocations: 252.7 kB / 264.5 MB, free: 9.32 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003066/0.0291, allocations: 67.89 kB / 264.6 MB, free: 9.254 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004826/0.03392, allocations: 3.415 MB / 268 MB, free: 5.711 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002726/0.0342, allocations: 23.98 kB / 268 MB, free: 5.688 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.905e-05/0.03425, allocations: 16 kB / 268 MB, free: 5.672 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002562/0.0345, allocations: 200.1 kB / 268.2 MB, free: 5.469 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001261/0.03463, allocations: 47.81 kB / 268.3 MB, free: 5.422 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001311/0.03476, allocations: 47.3 kB / 268.3 MB, free: 5.375 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.03477, allocations: 4 kB / 268.3 MB, free: 5.371 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.03477, allocations: 3.938 kB / 268.3 MB, free: 5.367 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.637e-06/0.03478, allocations: 12.02 kB / 268.3 MB, free: 5.355 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002424/0.0372, allocations: 1.171 MB / 269.5 MB, free: 4.133 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.03721, allocations: 0 / 269.5 MB, free: 4.133 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000332/0.03754, allocations: 63.95 kB / 269.6 MB, free: 4.07 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007252/0.03827, allocations: 247.4 kB / 269.8 MB, free: 3.824 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.128e-05/0.03831, allocations: 19.98 kB / 269.8 MB, free: 3.805 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004581/0.04289, allocations: 3.287 MB / 273.1 MB, free: 412 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.04289, allocations: 4 kB / 273.1 MB, free: 408 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0019/0.04479, allocations: 0.9547 MB / 274.1 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001898/0.04498, allocations: 75.73 kB / 274.2 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.871e-05/0.04504, allocations: 16 kB / 274.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002636/0.0453, allocations: 28.05 kB / 274.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002022/0.0455, allocations: 68.36 kB / 274.3 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.114e-05/0.04555, allocations: 16 kB / 274.3 MB, free: 15.21 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002657/0.04581, allocations: 211.1 kB / 274.5 MB, free: 15.01 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.04581, allocations: 0 / 274.5 MB, free: 15.01 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006758/0.04649, allocations: 151.9 kB / 274.6 MB, free: 14.86 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002946/0.04678, allocations: 143.1 kB / 274.8 MB, free: 14.71 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00152/0.0483, allocations: 0.7252 MB / 275.5 MB, free: 13.96 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.0483, allocations: 0 / 275.5 MB, free: 13.96 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009224/0.04923, allocations: 0.5312 MB / 276 MB, free: 13.41 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004473/0.04967, allocations: 63.72 kB / 276.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001606/0.05128, allocations: 0.7451 MB / 276.8 MB, free: 12.56 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002463/0.05153, allocations: 190.8 kB / 277 MB, free: 12.36 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001975/0.05172, allocations: 54.94 kB / 277.1 MB, free: 12.31 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.05184, allocations: 36.48 kB / 277.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of SimCode: time 7.42e-07/0.05184, allocations: 0 / 277.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of Templates: time 0.0152/0.06704, allocations: 7.164 MB / 284.3 MB, free: 5.129 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.650772223016247]