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.00132/0.00132, allocations: 75.77 kB / 22.45 MB, free: 2.098 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.001033/0.001033, allocations: 168.7 kB / 25.75 MB, free: 8.59 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.8209/0.8209, allocations: 158.6 MB / 187.6 MB, free: 2.949 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.002e-06/1.002e-06, allocations: 0 / 251.1 MB, free: 7.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.172e-05/2.272e-05, allocations: 2.312 kB / 251.1 MB, free: 7.816 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002622/0.002645, allocations: 2.452 MB / 253.5 MB, free: 5.348 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00132/0.003965, allocations: 0.9839 MB / 254.5 MB, free: 4.348 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.004082, allocations: 7.938 kB / 254.5 MB, free: 4.34 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001629/0.004244, allocations: 47.52 kB / 254.6 MB, free: 4.293 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000409/0.004653, allocations: 170.9 kB / 254.8 MB, free: 4.125 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002421/0.004896, allocations: 175.6 kB / 254.9 MB, free: 3.953 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003643/0.00526, allocations: 490.3 kB / 255.4 MB, free: 3.473 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/0.005395, allocations: 57.12 kB / 255.5 MB, free: 3.418 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003601/0.005755, allocations: 291.3 kB / 255.7 MB, free: 3.133 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002308/0.005986, allocations: 215.5 kB / 256 MB, free: 2.922 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.729e-05/0.006033, allocations: 36 kB / 256 MB, free: 2.887 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001558/0.006189, allocations: 115.9 kB / 256.1 MB, free: 2.773 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.695e-05/0.006286, allocations: 115.6 kB / 256.2 MB, free: 2.66 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.006389, allocations: 131.7 kB / 256.3 MB, free: 2.531 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006712/0.00706, allocations: 406.6 kB / 256.7 MB, free: 2.133 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.007064, allocations: 0 / 256.7 MB, free: 2.133 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.007066, allocations: 4 kB / 256.7 MB, free: 2.129 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.007072, allocations: 0 / 256.7 MB, free: 2.129 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.0009078/0.00798, allocations: 0.6908 MB / 257.4 MB, free: 1.398 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.00802, allocations: 11.98 kB / 257.4 MB, free: 1.387 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002524/0.008272, allocations: 88.69 kB / 257.5 MB, free: 1.301 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003531/0.008625, allocations: 268.5 kB / 257.8 MB, free: 1.008 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001133/0.008738, allocations: 140 kB / 257.9 MB, free: 0.8477 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.993e-05/0.008788, allocations: 36.38 kB / 258 MB, free: 0.8125 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004698/0.009258, allocations: 348.9 kB / 258.3 MB, free: 460 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.009273, allocations: 8.172 kB / 258.3 MB, free: 452 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.105e-05/0.009304, allocations: 16.12 kB / 258.3 MB, free: 436 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.009318, allocations: 15.94 kB / 258.3 MB, free: 420 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003673/0.009685, allocations: 271.6 kB / 258.6 MB, free: 152 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001028/0.01071, allocations: 0.7642 MB / 259.4 MB, free: 15.35 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00042/0.01113, allocations: 269.8 kB / 259.6 MB, free: 15.07 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001853/0.01132, allocations: 137.1 kB / 259.8 MB, free: 14.94 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.889e-05/0.01135, allocations: 8.5 kB / 259.8 MB, free: 14.93 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/0.01137, allocations: 50 kB / 259.8 MB, free: 14.87 MB / 250.7 MB Notification: Performance of pre-optimization done (n=49): time 1.733e-06/0.01138, allocations: 0 / 259.8 MB, free: 14.87 MB / 250.7 MB Notification: Performance of matching and sorting (n=55): time 0.002577/0.01395, allocations: 1.519 MB / 261.4 MB, free: 13.29 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/0.014, allocations: 93.61 kB / 261.4 MB, free: 13.18 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001866/0.01418, allocations: 277.5 kB / 261.7 MB, free: 12.89 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.072e-05/0.01421, allocations: 37.7 kB / 261.8 MB, free: 12.85 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.067e-05/0.01431, allocations: 183.9 kB / 261.9 MB, free: 12.66 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.01441, allocations: 194.4 kB / 262.1 MB, free: 12.47 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.01451, allocations: 91.83 kB / 262.2 MB, free: 12.38 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.01463, allocations: 0.5079 MB / 262.7 MB, free: 11.86 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001668/0.0148, allocations: 108.9 kB / 262.8 MB, free: 11.75 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001856/0.01499, allocations: 186.2 kB / 263 MB, free: 11.55 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002984/0.01528, allocations: 253.3 kB / 263.3 MB, free: 11.29 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.01529, allocations: 0 / 263.3 MB, free: 11.29 MB / 250.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0005258/0.01581, allocations: 449.7 kB / 263.7 MB, free: 10.85 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.01583, allocations: 8 kB / 263.7 MB, free: 10.84 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.01583, allocations: 0 / 263.7 MB, free: 10.84 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004254/0.01626, allocations: 212.7 kB / 263.9 MB, free: 10.63 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001585/0.01642, allocations: 63.91 kB / 264 MB, free: 10.57 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002197/0.01862, allocations: 2.9 MB / 266.9 MB, free: 7.543 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001211/0.01874, allocations: 23.92 kB / 266.9 MB, free: 7.52 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.813e-05/0.01877, allocations: 16 kB / 266.9 MB, free: 7.504 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.0001187/0.01888, allocations: 192.2 kB / 267.1 MB, free: 7.309 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.261e-05/0.01895, allocations: 47.8 kB / 267.1 MB, free: 7.262 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.041e-05/0.019, allocations: 51.31 kB / 267.2 MB, free: 7.207 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.019, allocations: 4 kB / 267.2 MB, free: 7.203 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.019, allocations: 3.938 kB / 267.2 MB, free: 7.199 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.01901, allocations: 3.984 kB / 267.2 MB, free: 7.195 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/0.02007, allocations: 0.9792 MB / 268.2 MB, free: 6.168 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.02007, allocations: 0 / 268.2 MB, free: 6.168 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001951/0.02027, allocations: 63.89 kB / 268.2 MB, free: 6.105 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003326/0.0206, allocations: 207.5 kB / 268.4 MB, free: 5.898 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.268e-05/0.02062, allocations: 12 kB / 268.5 MB, free: 5.887 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001945/0.02257, allocations: 2.857 MB / 271.3 MB, free: 2.91 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.02257, allocations: 4 kB / 271.3 MB, free: 2.906 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007516/0.02332, allocations: 0.7127 MB / 272 MB, free: 2.168 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.465e-05/0.02342, allocations: 75.72 kB / 272.1 MB, free: 2.094 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.424e-05/0.02345, allocations: 12 kB / 272.1 MB, free: 2.082 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001285/0.02358, allocations: 19.98 kB / 272.1 MB, free: 2.062 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001208/0.0237, allocations: 72.3 kB / 272.2 MB, free: 1.992 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.243e-05/0.02372, allocations: 20.06 kB / 272.2 MB, free: 1.973 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001144/0.02384, allocations: 191.1 kB / 272.4 MB, free: 1.785 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02384, allocations: 0 / 272.4 MB, free: 1.785 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004006/0.02424, allocations: 155.9 kB / 272.6 MB, free: 1.633 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.000198/0.02444, allocations: 143.1 kB / 272.7 MB, free: 1.484 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0007373/0.02517, allocations: 0.5963 MB / 273.3 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.02518, allocations: 0 / 273.3 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003743/0.02555, allocations: 468 kB / 273.8 MB, free: 400 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002844/0.02583, allocations: 59.78 kB / 273.8 MB, free: 340 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001149/0.02698, allocations: 0.6982 MB / 274.5 MB, free: 15.59 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.41e-05/0.02706, allocations: 114.3 kB / 274.6 MB, free: 15.46 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001257/0.02718, allocations: 54.94 kB / 274.7 MB, free: 15.41 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.932e-05/0.02725, allocations: 32.48 kB / 274.7 MB, free: 15.38 MB / 266.7 MB Notification: Performance of SimCode: time 7.81e-07/0.02725, allocations: 0 / 274.7 MB, free: 15.38 MB / 266.7 MB Notification: Performance of Templates: time 0.008859/0.03611, allocations: 7.216 MB / 281.9 MB, free: 8.18 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.930396317038685]