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.00103/0.00103, allocations: 84.39 kB / 22.21 MB, free: 2.289 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.001162/0.001162, allocations: 166.1 kB / 25.6 MB, free: 8.598 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.9584/0.9584, allocations: 158.6 MB / 187.5 MB, free: 2.809 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.293e-06/1.293e-06, allocations: 0 / 251.5 MB, free: 7.133 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.817e-05/1.947e-05, allocations: 2.312 kB / 251.5 MB, free: 7.129 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002783/0.002803, allocations: 2.421 MB / 253.9 MB, free: 4.691 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00142/0.004223, allocations: 0.9956 MB / 254.9 MB, free: 3.68 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001573/0.00438, allocations: 4 kB / 254.9 MB, free: 3.676 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001903/0.00457, allocations: 51.5 kB / 254.9 MB, free: 3.625 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004352/0.005005, allocations: 159 kB / 255.1 MB, free: 3.469 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002691/0.005275, allocations: 195.5 kB / 255.3 MB, free: 3.277 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003828/0.005657, allocations: 478.3 kB / 255.7 MB, free: 2.809 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001304/0.005788, allocations: 61.12 kB / 255.8 MB, free: 2.75 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003189/0.006107, allocations: 279.5 kB / 256.1 MB, free: 2.477 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000249/0.006356, allocations: 215.5 kB / 256.3 MB, free: 2.266 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.388e-05/0.00641, allocations: 36 kB / 256.3 MB, free: 2.23 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000187/0.006597, allocations: 127.8 kB / 256.4 MB, free: 2.105 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.006706, allocations: 115.7 kB / 256.6 MB, free: 1.992 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001048/0.006811, allocations: 131.7 kB / 256.7 MB, free: 1.863 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003934/0.007204, allocations: 398.8 kB / 257.1 MB, free: 1.473 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.007207, allocations: 0 / 257.1 MB, free: 1.473 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.007208, allocations: 0 / 257.1 MB, free: 1.473 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.007213, allocations: 3.938 kB / 257.1 MB, free: 1.469 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.0007727/0.007985, allocations: 0.6985 MB / 257.8 MB, free: 0.7344 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.008021, allocations: 15.98 kB / 257.8 MB, free: 0.7188 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002198/0.008241, allocations: 80.69 kB / 257.9 MB, free: 0.6406 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002875/0.008529, allocations: 256.5 kB / 258.1 MB, free: 368 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.272e-05/0.008621, allocations: 144 kB / 258.3 MB, free: 200 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.602e-05/0.008667, allocations: 32.36 kB / 258.3 MB, free: 168 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004031/0.00907, allocations: 328.8 kB / 258.6 MB, free: 15.82 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.009083, allocations: 192 / 258.6 MB, free: 15.82 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/0.009109, allocations: 16.12 kB / 258.6 MB, free: 15.8 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.009118, allocations: 8 kB / 258.6 MB, free: 15.8 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002883/0.009406, allocations: 216.2 kB / 258.9 MB, free: 15.59 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001303/0.01071, allocations: 0.7181 MB / 259.6 MB, free: 14.84 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003182/0.01103, allocations: 229.6 kB / 259.8 MB, free: 14.61 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/0.01115, allocations: 113.1 kB / 259.9 MB, free: 14.49 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.309e-05/0.01118, allocations: 8.5 kB / 259.9 MB, free: 14.48 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/0.01121, allocations: 41.89 kB / 260 MB, free: 14.43 MB / 250.7 MB Notification: Performance of pre-optimization done (n=49): time 1.363e-06/0.01121, allocations: 4 kB / 260 MB, free: 14.43 MB / 250.7 MB Notification: Performance of matching and sorting (n=55): time 0.002241/0.01345, allocations: 1.34 MB / 261.3 MB, free: 13.03 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.139e-05/0.01349, allocations: 89.61 kB / 261.4 MB, free: 12.92 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001584/0.01365, allocations: 249.5 kB / 261.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.817e-05/0.01368, allocations: 37.7 kB / 261.7 MB, free: 12.62 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.02e-05/0.01376, allocations: 191.8 kB / 261.9 MB, free: 12.43 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.822e-05/0.01386, allocations: 186.4 kB / 262 MB, free: 12.24 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.01396, allocations: 99.72 kB / 262.1 MB, free: 12.14 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.01408, allocations: 0.5195 MB / 262.7 MB, free: 11.61 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001269/0.01421, allocations: 76.94 kB / 262.7 MB, free: 11.53 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001471/0.01435, allocations: 166.1 kB / 262.9 MB, free: 11.35 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002209/0.01458, allocations: 205.2 kB / 263.1 MB, free: 11.14 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.01458, allocations: 0 / 263.1 MB, free: 11.14 MB / 250.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0004213/0.015, allocations: 381.7 kB / 263.5 MB, free: 10.76 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.01501, allocations: 8 kB / 263.5 MB, free: 10.75 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.01502, allocations: 4.031 kB / 263.5 MB, free: 10.75 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003559/0.01537, allocations: 204.7 kB / 263.7 MB, free: 10.55 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001494/0.01552, allocations: 59.89 kB / 263.7 MB, free: 10.49 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001968/0.01749, allocations: 2.818 MB / 266.6 MB, free: 7.555 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001247/0.01762, allocations: 31.91 kB / 266.6 MB, free: 7.523 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.546e-05/0.01764, allocations: 12 kB / 266.6 MB, free: 7.512 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.0003433/0.01799, allocations: 176.5 kB / 266.8 MB, free: 7.328 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.982e-05/0.01805, allocations: 47.81 kB / 266.8 MB, free: 7.281 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.92e-05/0.01809, allocations: 47.3 kB / 266.9 MB, free: 7.23 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.0181, allocations: 8 kB / 266.9 MB, free: 7.223 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.0181, allocations: 0 / 266.9 MB, free: 7.223 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.01811, allocations: 8.016 kB / 266.9 MB, free: 7.215 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009313/0.01904, allocations: 0.8782 MB / 267.8 MB, free: 6.297 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.01904, allocations: 0 / 267.8 MB, free: 6.297 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001662/0.01921, allocations: 59.89 kB / 267.8 MB, free: 6.238 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003175/0.01952, allocations: 203.4 kB / 268 MB, free: 6.035 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.483e-05/0.01955, allocations: 19.98 kB / 268 MB, free: 6.016 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001831/0.02138, allocations: 2.767 MB / 270.8 MB, free: 3.137 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.02138, allocations: 0 / 270.8 MB, free: 3.137 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006145/0.02199, allocations: 0.6346 MB / 271.4 MB, free: 2.477 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/0.0221, allocations: 67.81 kB / 271.5 MB, free: 2.41 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.178e-05/0.02213, allocations: 15.94 kB / 271.5 MB, free: 2.395 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001254/0.02225, allocations: 19.98 kB / 271.5 MB, free: 2.375 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/0.02236, allocations: 72.3 kB / 271.6 MB, free: 2.305 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.052e-05/0.02238, allocations: 15.98 kB / 271.6 MB, free: 2.289 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.943e-05/0.02248, allocations: 176.4 kB / 271.8 MB, free: 2.117 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02248, allocations: 0 / 271.8 MB, free: 2.117 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000425/0.02291, allocations: 151.9 kB / 271.9 MB, free: 1.969 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.0001786/0.02309, allocations: 147.1 kB / 272.1 MB, free: 1.816 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005897/0.02368, allocations: 0.5377 MB / 272.6 MB, free: 1.258 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.02368, allocations: 0 / 272.6 MB, free: 1.258 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003797/0.02406, allocations: 448.2 kB / 273.1 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002883/0.02435, allocations: 67.61 kB / 273.1 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001049/0.0254, allocations: 0.6748 MB / 273.8 MB, free: 16 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003293/0.02573, allocations: 110.3 kB / 273.9 MB, free: 15.89 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001019/0.02583, allocations: 42.95 kB / 273.9 MB, free: 15.85 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001432/0.02597, allocations: 122.1 kB / 274.1 MB, free: 15.73 MB / 266.7 MB Notification: Performance of SimCode: time 8.71e-07/0.02597, allocations: 0 / 274.1 MB, free: 15.73 MB / 266.7 MB Notification: Performance of Templates: time 0.01024/0.03622, allocations: 7.763 MB / 281.8 MB, free: 7.996 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.897789563983679]