Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.002253/0.002253, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 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.00294/0.00294, allocations: 153.1 kB / 24.27 MB, free: 164 kB / 18.57 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 1.656/1.656, allocations: 173.4 MB / 200.8 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 178] 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.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 267.3 MB, free: 6.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.927e-05/3.099e-05, allocations: 2.312 kB / 267.3 MB, free: 6.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004263/0.004294, allocations: 2.338 MB / 269.6 MB, free: 4.402 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001949/0.006243, allocations: 0.8973 MB / 270.5 MB, free: 3.5 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000169/0.006412, allocations: 4 kB / 270.5 MB, free: 3.496 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002534/0.006665, allocations: 47.58 kB / 270.6 MB, free: 3.449 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005615/0.007227, allocations: 143.1 kB / 270.7 MB, free: 3.309 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004093/0.007636, allocations: 179.6 kB / 270.9 MB, free: 3.133 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005273/0.008163, allocations: 426.6 kB / 271.3 MB, free: 2.715 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.008329, allocations: 48.86 kB / 271.4 MB, free: 2.664 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003554/0.008684, allocations: 255.5 kB / 271.6 MB, free: 2.414 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000329/0.009013, allocations: 183.6 kB / 271.8 MB, free: 2.234 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.651e-05/0.00909, allocations: 35.94 kB / 271.8 MB, free: 2.199 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002666/0.009356, allocations: 115.9 kB / 271.9 MB, free: 2.086 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001604/0.009517, allocations: 99.69 kB / 272 MB, free: 1.988 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001647/0.009682, allocations: 115.8 kB / 272.2 MB, free: 1.875 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006996/0.01038, allocations: 494.4 kB / 272.6 MB, free: 1.391 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.01039, allocations: 4 kB / 272.6 MB, free: 1.387 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.01039, allocations: 0 / 272.6 MB, free: 1.387 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.722e-06/0.01039, allocations: 4 kB / 272.6 MB, free: 1.383 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001355/0.01175, allocations: 0.6671 MB / 273.3 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.0118, allocations: 8.922 kB / 273.3 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003782/0.01217, allocations: 76.72 kB / 273.4 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005257/0.0127, allocations: 252 kB / 273.6 MB, free: 332 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001879/0.01289, allocations: 140 kB / 273.8 MB, free: 168 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.155e-05/0.01296, allocations: 32.33 kB / 273.8 MB, free: 136 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008254/0.01379, allocations: 396.3 kB / 274.2 MB, free: 15.72 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.208e-05/0.01381, allocations: 4.188 kB / 274.2 MB, free: 15.71 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.742e-05/0.01384, allocations: 12.12 kB / 274.2 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.01386, allocations: 8 kB / 274.2 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008924/0.01475, allocations: 370.3 kB / 274.6 MB, free: 15.33 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002618/0.01737, allocations: 1.212 MB / 275.8 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007155/0.01808, allocations: 310.5 kB / 276.1 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003976/0.01848, allocations: 159.6 kB / 276.3 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.144e-05/0.01852, allocations: 12.72 kB / 276.3 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.293e-05/0.01856, allocations: 37.39 kB / 276.3 MB, free: 13.54 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 2.084e-06/0.01857, allocations: 4 kB / 276.3 MB, free: 13.53 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.005029/0.02359, allocations: 1.637 MB / 277.9 MB, free: 11.83 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.275e-05/0.02368, allocations: 88.8 kB / 278 MB, free: 11.72 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004107/0.02409, allocations: 297.7 kB / 278.3 MB, free: 11.41 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.791e-05/0.02414, allocations: 33.7 kB / 278.4 MB, free: 11.38 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001591/0.0243, allocations: 199.5 kB / 278.5 MB, free: 11.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001637/0.02446, allocations: 162.7 kB / 278.7 MB, free: 11.02 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000176/0.02464, allocations: 95.8 kB / 278.8 MB, free: 10.91 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003022/0.02494, allocations: 0.5157 MB / 279.3 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003978/0.02534, allocations: 144.9 kB / 279.5 MB, free: 10.24 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004765/0.02581, allocations: 257.2 kB / 279.7 MB, free: 9.961 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007599/0.02657, allocations: 338.3 kB / 280 MB, free: 9.609 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.02657, allocations: 0 / 280 MB, free: 9.609 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00123/0.0278, allocations: 0.5243 MB / 280.6 MB, free: 9.074 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.378e-05/0.02783, allocations: 11.92 kB / 280.6 MB, free: 9.062 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.02783, allocations: 0 / 280.6 MB, free: 9.062 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008361/0.02867, allocations: 255.6 kB / 280.8 MB, free: 8.809 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002412/0.02891, allocations: 43.97 kB / 280.9 MB, free: 8.766 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005149/0.03406, allocations: 3.346 MB / 284.2 MB, free: 5.293 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002615/0.03432, allocations: 20 kB / 284.2 MB, free: 5.273 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.093e-05/0.03437, allocations: 23.92 kB / 284.3 MB, free: 5.25 MB / 266.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.0002387/0.03461, allocations: 196.5 kB / 284.5 MB, free: 5.047 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.03472, allocations: 47.73 kB / 284.5 MB, free: 5 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001137/0.03483, allocations: 42.98 kB / 284.5 MB, free: 4.961 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.03484, allocations: 4 kB / 284.5 MB, free: 4.957 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.03484, allocations: 0 / 284.5 MB, free: 4.957 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.03485, allocations: 0 / 284.5 MB, free: 4.957 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002152/0.037, allocations: 1.014 MB / 285.6 MB, free: 3.895 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.037, allocations: 0 / 285.6 MB, free: 3.895 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002345/0.03724, allocations: 43.91 kB / 285.6 MB, free: 3.852 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007728/0.03801, allocations: 235.5 kB / 285.8 MB, free: 3.617 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.279e-05/0.03805, allocations: 15.98 kB / 285.8 MB, free: 3.602 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00478/0.04283, allocations: 3.303 MB / 289.1 MB, free: 184 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.04283, allocations: 0 / 289.1 MB, free: 184 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1097/0.1526, allocations: 0.8182 MB / 290 MB, free: 31.73 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001649/0.1527, allocations: 64.25 kB / 290 MB, free: 31.73 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.729e-05/0.1528, allocations: 8.031 kB / 290 MB, free: 31.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002463/0.153, allocations: 21.48 kB / 290.1 MB, free: 31.73 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002153/0.1532, allocations: 62.05 kB / 290.1 MB, free: 31.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.585e-05/0.1533, allocations: 16.09 kB / 290.1 MB, free: 31.73 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002087/0.1535, allocations: 214.8 kB / 290.3 MB, free: 31.61 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1535, allocations: 0 / 290.3 MB, free: 31.61 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006174/0.1541, allocations: 140.3 kB / 290.5 MB, free: 31.61 MB / 266.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.0002241/0.1543, allocations: 147 kB / 290.6 MB, free: 31.52 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0012/0.1555, allocations: 0.6594 MB / 291.3 MB, free: 31.3 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1555, allocations: 0 / 291.3 MB, free: 31.3 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006837/0.1562, allocations: 498 kB / 291.8 MB, free: 31.1 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004163/0.1566, allocations: 56.64 kB / 291.8 MB, free: 31.1 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001127/0.1578, allocations: 0.6341 MB / 292.5 MB, free: 30.84 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001517/0.1579, allocations: 170.9 kB / 292.6 MB, free: 30.76 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001597/0.1581, allocations: 45.38 kB / 292.7 MB, free: 30.75 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.321e-05/0.1581, allocations: 30.09 kB / 292.7 MB, free: 30.75 MB / 266.7 MB Notification: Performance of SimCode: time 5.51e-07/0.1581, allocations: 4 kB / 292.7 MB, free: 30.75 MB / 266.7 MB Notification: Performance of Templates: time 0.01251/0.1707, allocations: 6.646 MB / 299.4 MB, free: 29.11 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.790085265995003]