Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.001479/0.001479, allocations: 75.75 kB / 21.97 MB, free: 2.605 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.001311/0.001311, allocations: 161.1 kB / 25.32 MB, free: 9.062 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 0.8726/0.8726, allocations: 158.6 MB / 187.2 MB, free: 2.941 MB / 170.7 MB " [Timeout remaining time 179] 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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 251 MB, free: 7.641 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.647e-05/1.795e-05, allocations: 6.25 kB / 251 MB, free: 7.633 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002551/0.002569, allocations: 2.359 MB / 253.4 MB, free: 5.258 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001354/0.003923, allocations: 0.9411 MB / 254.3 MB, free: 4.301 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001179/0.004041, allocations: 11.94 kB / 254.3 MB, free: 4.289 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001983/0.004239, allocations: 47.58 kB / 254.4 MB, free: 4.242 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004462/0.004685, allocations: 143.1 kB / 254.5 MB, free: 4.102 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002619/0.004947, allocations: 171.6 kB / 254.7 MB, free: 3.934 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003288/0.005276, allocations: 438.5 kB / 255.1 MB, free: 3.5 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.005403, allocations: 44.91 kB / 255.2 MB, free: 3.457 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002404/0.005644, allocations: 255.4 kB / 255.4 MB, free: 3.207 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002298/0.005873, allocations: 183.6 kB / 255.6 MB, free: 3.027 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.58e-05/0.005919, allocations: 32 kB / 255.6 MB, free: 2.996 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001766/0.006096, allocations: 123.8 kB / 255.7 MB, free: 2.875 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001029/0.006199, allocations: 99.69 kB / 255.8 MB, free: 2.777 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.087e-05/0.00629, allocations: 119.7 kB / 256 MB, free: 2.66 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004531/0.006743, allocations: 366.9 kB / 256.3 MB, free: 2.301 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.006745, allocations: 0 / 256.3 MB, free: 2.301 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.006746, allocations: 0 / 256.3 MB, free: 2.301 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.006753, allocations: 0 / 256.3 MB, free: 2.301 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0008517/0.007605, allocations: 0.6518 MB / 257 MB, free: 1.613 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.007642, allocations: 19.98 kB / 257 MB, free: 1.594 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002262/0.007868, allocations: 76.69 kB / 257.1 MB, free: 1.52 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003302/0.008198, allocations: 256.8 kB / 257.3 MB, free: 1.238 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.686e-05/0.008295, allocations: 140 kB / 257.5 MB, free: 1.078 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.55e-05/0.008341, allocations: 36.36 kB / 257.5 MB, free: 1.043 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004207/0.008761, allocations: 344.2 kB / 257.8 MB, free: 0.6758 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.008775, allocations: 192 / 257.8 MB, free: 0.6758 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.727e-05/0.008802, allocations: 16.12 kB / 257.8 MB, free: 0.6602 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.008813, allocations: 8 kB / 257.8 MB, free: 0.6523 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006226/0.009436, allocations: 251.6 kB / 258.1 MB, free: 420 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0012/0.01064, allocations: 1.12 MB / 259.2 MB, free: 15.24 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003341/0.01097, allocations: 246.9 kB / 259.5 MB, free: 14.98 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001503/0.01112, allocations: 116.3 kB / 259.6 MB, free: 14.87 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.703e-05/0.01115, allocations: 11.95 kB / 259.6 MB, free: 14.86 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.01117, allocations: 37.39 kB / 259.6 MB, free: 14.81 MB / 250.7 MB Notification: Performance of pre-optimization done (n=43): time 1.523e-06/0.01117, allocations: 0 / 259.6 MB, free: 14.81 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.00223/0.0134, allocations: 1.363 MB / 261 MB, free: 13.38 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.966e-05/0.01344, allocations: 92.8 kB / 261.1 MB, free: 13.27 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000174/0.01362, allocations: 273.6 kB / 261.3 MB, free: 12.98 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.74e-05/0.01364, allocations: 37.7 kB / 261.4 MB, free: 12.94 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.066e-05/0.01372, allocations: 175.6 kB / 261.5 MB, free: 12.77 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.832e-05/0.01381, allocations: 166.8 kB / 261.7 MB, free: 12.6 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/0.01391, allocations: 83.84 kB / 261.8 MB, free: 12.51 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.01405, allocations: 0.5079 MB / 262.3 MB, free: 11.99 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/0.01419, allocations: 100.9 kB / 262.4 MB, free: 11.89 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001853/0.01438, allocations: 197.2 kB / 262.6 MB, free: 11.67 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002755/0.01465, allocations: 246.3 kB / 262.8 MB, free: 11.41 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.01466, allocations: 0 / 262.8 MB, free: 11.41 MB / 250.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005139/0.01517, allocations: 425 kB / 263.2 MB, free: 10.98 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.01519, allocations: 11.94 kB / 263.3 MB, free: 10.97 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.01519, allocations: 0 / 263.3 MB, free: 10.97 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004255/0.01562, allocations: 223.5 kB / 263.5 MB, free: 10.75 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.01575, allocations: 47.91 kB / 263.5 MB, free: 10.7 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002275/0.01802, allocations: 2.873 MB / 266.4 MB, free: 7.703 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.01814, allocations: 19.98 kB / 266.4 MB, free: 7.684 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.854e-05/0.01816, allocations: 20 kB / 266.4 MB, free: 7.664 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0001182/0.01828, allocations: 176.2 kB / 266.6 MB, free: 7.484 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.719e-05/0.01834, allocations: 51.8 kB / 266.7 MB, free: 7.434 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.925e-05/0.01838, allocations: 46.92 kB / 266.7 MB, free: 7.391 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.01838, allocations: 4 kB / 266.7 MB, free: 7.387 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.01838, allocations: 0 / 266.7 MB, free: 7.387 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.01839, allocations: 3.984 kB / 266.7 MB, free: 7.383 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001045/0.01943, allocations: 0.8263 MB / 267.5 MB, free: 6.508 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.01944, allocations: 0 / 267.5 MB, free: 6.508 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000127/0.01956, allocations: 47.91 kB / 267.6 MB, free: 6.461 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000339/0.0199, allocations: 207.5 kB / 267.8 MB, free: 6.254 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.481e-05/0.01993, allocations: 12 kB / 267.8 MB, free: 6.242 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002035/0.02196, allocations: 2.867 MB / 270.7 MB, free: 3.262 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.02196, allocations: 0 / 270.7 MB, free: 3.262 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006727/0.02264, allocations: 0.6435 MB / 271.3 MB, free: 2.594 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.347e-05/0.02272, allocations: 59.75 kB / 271.4 MB, free: 2.535 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.818e-05/0.02275, allocations: 12 kB / 271.4 MB, free: 2.523 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/0.02286, allocations: 15.98 kB / 271.4 MB, free: 2.508 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/0.02297, allocations: 67.81 kB / 271.5 MB, free: 2.441 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.956e-05/0.02299, allocations: 15.98 kB / 271.5 MB, free: 2.426 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001024/0.0231, allocations: 200 kB / 271.7 MB, free: 2.23 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0231, allocations: 0 / 271.7 MB, free: 2.23 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003817/0.02348, allocations: 144 kB / 271.8 MB, free: 2.09 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.0001863/0.02366, allocations: 135.2 kB / 271.9 MB, free: 1.945 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000702/0.02437, allocations: 0.5578 MB / 272.5 MB, free: 1.367 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.02437, allocations: 4.062 kB / 272.5 MB, free: 1.363 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003708/0.02474, allocations: 440.5 kB / 272.9 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002694/0.02501, allocations: 51.91 kB / 273 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009667/0.02597, allocations: 0.6011 MB / 273.6 MB, free: 232 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.002e-05/0.02604, allocations: 109.1 kB / 273.7 MB, free: 104 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 9.868e-05/0.02614, allocations: 50.94 kB / 273.7 MB, free: 56 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.247e-05/0.02621, allocations: 28.48 kB / 273.8 MB, free: 28 kB / 250.7 MB Notification: Performance of SimCode: time 6.12e-07/0.02621, allocations: 0 / 273.8 MB, free: 28 kB / 250.7 MB Notification: Performance of Templates: time 0.008102/0.03431, allocations: 6.679 MB / 280.4 MB, free: 9.363 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.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.9829189111478627]