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.0008012/0.0008012, allocations: 80.8 kB / 22.28 MB, free: 2.207 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.0009079/0.0009079, allocations: 171.8 kB / 25.7 MB, free: 8.434 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.8608/0.8608, allocations: 158.6 MB / 187.6 MB, free: 2.777 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.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.693e-06/1.693e-06, allocations: 0 / 251.5 MB, free: 7.293 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.373e-05/1.542e-05, allocations: 2.312 kB / 251.5 MB, free: 7.289 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002528/0.002544, allocations: 2.433 MB / 253.9 MB, free: 4.84 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001423/0.003967, allocations: 1.003 MB / 254.9 MB, free: 3.82 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001255/0.004093, allocations: 7.938 kB / 255 MB, free: 3.812 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000189/0.004282, allocations: 47.58 kB / 255 MB, free: 3.766 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004466/0.004728, allocations: 170.9 kB / 255.2 MB, free: 3.598 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002627/0.004991, allocations: 187.6 kB / 255.4 MB, free: 3.414 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003728/0.005364, allocations: 482.3 kB / 255.8 MB, free: 2.938 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001256/0.005489, allocations: 71.02 kB / 255.9 MB, free: 2.871 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002874/0.005777, allocations: 279.4 kB / 256.2 MB, free: 2.598 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002131/0.00599, allocations: 211.5 kB / 256.4 MB, free: 2.391 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.425e-05/0.006044, allocations: 36 kB / 256.4 MB, free: 2.355 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001657/0.00621, allocations: 115.9 kB / 256.5 MB, free: 2.242 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.945e-05/0.006309, allocations: 115.7 kB / 256.6 MB, free: 2.129 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.729e-05/0.006407, allocations: 135.6 kB / 256.8 MB, free: 1.996 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003503/0.006757, allocations: 402.7 kB / 257.2 MB, free: 1.602 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.853e-06/0.006759, allocations: 0 / 257.2 MB, free: 1.602 MB / 234.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.006759, allocations: 0 / 257.2 MB, free: 1.602 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.838e-06/0.006763, allocations: 0 / 257.2 MB, free: 1.602 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.0007063/0.00747, allocations: 0.5699 MB / 257.7 MB, free: 1.008 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.982e-05/0.007499, allocations: 11.98 kB / 257.7 MB, free: 0.9961 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001881/0.007687, allocations: 76.83 kB / 257.8 MB, free: 0.9219 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002555/0.007943, allocations: 229.8 kB / 258 MB, free: 0.668 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001214/0.008064, allocations: 144 kB / 258.2 MB, free: 0.5039 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.061e-05/0.008105, allocations: 28.38 kB / 258.2 MB, free: 488 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003324/0.008437, allocations: 322 kB / 258.5 MB, free: 144 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.00845, allocations: 8.078 kB / 258.5 MB, free: 136 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.008474, allocations: 24.12 kB / 258.6 MB, free: 112 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.008481, allocations: 11.98 kB / 258.6 MB, free: 100 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002378/0.008719, allocations: 187.2 kB / 258.7 MB, free: 15.92 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008375/0.009556, allocations: 0.5752 MB / 259.3 MB, free: 15.32 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002617/0.009818, allocations: 197.2 kB / 259.5 MB, free: 15.12 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/0.009926, allocations: 98.27 kB / 259.6 MB, free: 15.03 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.785e-05/0.009954, allocations: 12.48 kB / 259.6 MB, free: 15.02 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.036e-05/0.009975, allocations: 39.06 kB / 259.7 MB, free: 14.97 MB / 250.7 MB Notification: Performance of pre-optimization done (n=49): time 1.292e-06/0.009976, allocations: 0 / 259.7 MB, free: 14.97 MB / 250.7 MB Notification: Performance of matching and sorting (n=55): time 0.001995/0.01197, allocations: 1.29 MB / 261 MB, free: 13.62 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.555e-05/0.01201, allocations: 89.59 kB / 261 MB, free: 13.52 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000118/0.01212, allocations: 200 kB / 261.2 MB, free: 13.31 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.814e-05/0.01215, allocations: 37.69 kB / 261.3 MB, free: 13.27 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.423e-05/0.0122, allocations: 129.1 kB / 261.4 MB, free: 13.14 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.628e-05/0.01228, allocations: 186.4 kB / 261.6 MB, free: 12.95 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.092e-05/0.01237, allocations: 98.08 kB / 261.7 MB, free: 12.85 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.506e-05/0.01245, allocations: 342.7 kB / 262 MB, free: 12.51 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.525e-05/0.01254, allocations: 71.8 kB / 262.1 MB, free: 12.43 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001128/0.01266, allocations: 137.7 kB / 262.2 MB, free: 12.29 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001956/0.01285, allocations: 213.1 kB / 262.4 MB, free: 12.07 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.01285, allocations: 0 / 262.4 MB, free: 12.07 MB / 250.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.000319/0.01317, allocations: 314.9 kB / 262.7 MB, free: 11.75 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.052e-05/0.01318, allocations: 4 kB / 262.7 MB, free: 11.75 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.01319, allocations: 0 / 262.7 MB, free: 11.75 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003205/0.01351, allocations: 193.9 kB / 262.9 MB, free: 11.56 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.01365, allocations: 63.89 kB / 263 MB, free: 11.5 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001799/0.01545, allocations: 2.036 MB / 265 MB, free: 9.371 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001124/0.01556, allocations: 24.03 kB / 265 MB, free: 9.348 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.521e-05/0.01558, allocations: 23.97 kB / 265.1 MB, free: 9.324 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 9.924e-05/0.01568, allocations: 140.5 kB / 265.2 MB, free: 9.176 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.841e-05/0.01573, allocations: 35.97 kB / 265.2 MB, free: 9.141 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.091e-05/0.01577, allocations: 47.31 kB / 265.3 MB, free: 9.094 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.01578, allocations: 16.02 kB / 265.3 MB, free: 9.078 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-06/0.01578, allocations: 0 / 265.3 MB, free: 9.078 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.01578, allocations: 0 / 265.3 MB, free: 9.078 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007522/0.01654, allocations: 0.6597 MB / 266 MB, free: 8.387 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.01654, allocations: 4 kB / 266 MB, free: 8.383 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001462/0.01668, allocations: 59.89 kB / 266 MB, free: 8.324 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002808/0.01697, allocations: 192.6 kB / 266.2 MB, free: 8.133 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.301e-05/0.01699, allocations: 19.92 kB / 266.2 MB, free: 8.113 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001422/0.01841, allocations: 1.998 MB / 268.2 MB, free: 6.031 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01841, allocations: 0 / 268.2 MB, free: 6.031 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004872/0.0189, allocations: 0.5192 MB / 268.8 MB, free: 5.492 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.019, allocations: 39.83 kB / 268.8 MB, free: 5.453 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.715e-05/0.01905, allocations: 19.88 kB / 268.8 MB, free: 5.434 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001244/0.01917, allocations: 19.98 kB / 268.8 MB, free: 5.414 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.01928, allocations: 68.36 kB / 268.9 MB, free: 5.348 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/0.0193, allocations: 12 kB / 268.9 MB, free: 5.336 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.925e-05/0.01936, allocations: 68.81 kB / 269 MB, free: 5.266 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01936, allocations: 0 / 269 MB, free: 5.266 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003441/0.0197, allocations: 151.9 kB / 269.1 MB, free: 5.117 MB / 250.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.0001516/0.01985, allocations: 136.3 kB / 269.3 MB, free: 4.973 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005796/0.02043, allocations: 468.7 kB / 269.7 MB, free: 4.5 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.02044, allocations: 0 / 269.7 MB, free: 4.5 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003069/0.02074, allocations: 374 kB / 270.1 MB, free: 4.121 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002133/0.02096, allocations: 55.72 kB / 270.1 MB, free: 4.066 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009192/0.02188, allocations: 0.6653 MB / 270.8 MB, free: 3.363 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.184e-05/0.02196, allocations: 118.3 kB / 270.9 MB, free: 3.227 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 9.074e-05/0.02205, allocations: 34.97 kB / 270.9 MB, free: 3.195 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/0.02218, allocations: 95.34 kB / 271 MB, free: 3.102 MB / 250.7 MB Notification: Performance of SimCode: time 6.61e-07/0.02218, allocations: 4 kB / 271 MB, free: 3.098 MB / 250.7 MB Notification: Performance of Templates: time 0.009241/0.03142, allocations: 7.623 MB / 278.7 MB, free: 11.5 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","",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.667677120771259]