Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.0008599/0.0008599, allocations: 84 kB / 21.43 MB, free: 3.129 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.003704/0.003704, allocations: 144.4 kB / 24.68 MB, free: 9.426 MB / 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 0.8362/0.8362, allocations: 173.4 MB / 201.2 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 319.7 MB, free: 5.871 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.766e-05/2.937e-05, allocations: 10.22 kB / 319.7 MB, free: 5.859 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002398/0.002427, allocations: 2.298 MB / 322 MB, free: 3.547 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001296/0.003723, allocations: 0.9323 MB / 322.9 MB, free: 2.609 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001062/0.00383, allocations: 3.938 kB / 322.9 MB, free: 2.605 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001976/0.004027, allocations: 55.52 kB / 323 MB, free: 2.551 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004091/0.004436, allocations: 162.9 kB / 323.1 MB, free: 2.391 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002277/0.004664, allocations: 187.5 kB / 323.3 MB, free: 2.207 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003329/0.004997, allocations: 478.3 kB / 323.8 MB, free: 1.738 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001515/0.005148, allocations: 69.05 kB / 323.8 MB, free: 1.664 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000266/0.005414, allocations: 287.4 kB / 324.1 MB, free: 1.383 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002073/0.005621, allocations: 215.5 kB / 324.3 MB, free: 1.172 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.758e-05/0.005669, allocations: 36 kB / 324.4 MB, free: 1.137 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001449/0.005814, allocations: 111.9 kB / 324.5 MB, free: 1.027 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001108/0.005925, allocations: 119.6 kB / 324.6 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.264e-05/0.006017, allocations: 127.7 kB / 324.7 MB, free: 0.7852 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004453/0.006463, allocations: 0.5336 MB / 325.2 MB, free: 256 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.335e-06/0.006465, allocations: 0 / 325.2 MB, free: 256 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.006466, allocations: 0 / 325.2 MB, free: 256 kB / 282.7 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.006472, allocations: 4 kB / 325.3 MB, free: 252 kB / 282.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.0008412/0.007313, allocations: 0.5987 MB / 325.8 MB, free: 15.62 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.00735, allocations: 12.92 kB / 325.9 MB, free: 15.61 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000198/0.007548, allocations: 52.69 kB / 325.9 MB, free: 15.55 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003616/0.00791, allocations: 269 kB / 326.2 MB, free: 15.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001199/0.00803, allocations: 144 kB / 326.3 MB, free: 15.1 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.188e-05/0.008081, allocations: 36.33 kB / 326.4 MB, free: 15.07 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005234/0.008605, allocations: 439.2 kB / 326.8 MB, free: 14.62 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.00862, allocations: 192 / 326.8 MB, free: 14.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.927e-05/0.008649, allocations: 24.06 kB / 326.8 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.008656, allocations: 4 kB / 326.8 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000542/0.009198, allocations: 470.2 kB / 327.3 MB, free: 14.13 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009716/0.01017, allocations: 0.769 MB / 328 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005253/0.01069, allocations: 379.1 kB / 328.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002657/0.01096, allocations: 214.2 kB / 328.6 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.473e-05/0.01099, allocations: 4.5 kB / 328.6 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.051e-05/0.01101, allocations: 43.19 kB / 328.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.844e-06/0.01101, allocations: 0 / 328.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.002916/0.01392, allocations: 1.937 MB / 330.6 MB, free: 10.7 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.241e-05/0.01397, allocations: 81.61 kB / 330.7 MB, free: 10.6 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001762/0.01414, allocations: 239.7 kB / 330.9 MB, free: 10.35 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.925e-05/0.01417, allocations: 37.7 kB / 331 MB, free: 10.31 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.798e-05/0.01424, allocations: 145.1 kB / 331.1 MB, free: 10.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.724e-05/0.01434, allocations: 186.4 kB / 331.3 MB, free: 9.98 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.01444, allocations: 90.12 kB / 331.4 MB, free: 9.887 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.638e-05/0.01452, allocations: 342.8 kB / 331.7 MB, free: 9.543 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002553/0.01478, allocations: 200.8 kB / 331.9 MB, free: 9.348 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002792/0.01506, allocations: 269.7 kB / 332.2 MB, free: 9.066 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004697/0.01553, allocations: 399.5 kB / 332.5 MB, free: 8.672 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.01553, allocations: 0 / 332.5 MB, free: 8.672 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0007011/0.01623, allocations: 0.5888 MB / 333.1 MB, free: 8.074 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.01625, allocations: 8 kB / 333.1 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.01625, allocations: 0 / 333.1 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004325/0.01669, allocations: 266.5 kB / 333.4 MB, free: 7.805 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001518/0.01684, allocations: 55.95 kB / 333.5 MB, free: 7.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00246/0.0193, allocations: 2.775 MB / 336.2 MB, free: 4.871 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001384/0.01944, allocations: 27.97 kB / 336.3 MB, free: 4.844 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.157e-05/0.01947, allocations: 19.98 kB / 336.3 MB, free: 4.824 MB / 298.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.0001389/0.01961, allocations: 153.8 kB / 336.4 MB, free: 4.664 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.171e-05/0.01966, allocations: 31.81 kB / 336.5 MB, free: 4.633 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.985e-05/0.01971, allocations: 51.3 kB / 336.5 MB, free: 4.586 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.01971, allocations: 8.062 kB / 336.5 MB, free: 4.578 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.01971, allocations: 3.938 kB / 336.5 MB, free: 4.574 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.01972, allocations: 3.984 kB / 336.5 MB, free: 4.57 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001241/0.02096, allocations: 1.111 MB / 337.6 MB, free: 3.414 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.02096, allocations: 0 / 337.6 MB, free: 3.414 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001576/0.02112, allocations: 67.88 kB / 337.7 MB, free: 3.348 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003506/0.02147, allocations: 241.3 kB / 337.9 MB, free: 3.109 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.372e-05/0.02149, allocations: 15.98 kB / 338 MB, free: 3.094 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002188/0.02368, allocations: 2.664 MB / 340.6 MB, free: 336 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.02368, allocations: 0 / 340.6 MB, free: 336 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.02474, allocations: 0.9529 MB / 341.6 MB, free: 15.35 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.645e-05/0.02483, allocations: 71.78 kB / 341.6 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.098e-05/0.02486, allocations: 12 kB / 341.7 MB, free: 15.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001319/0.025, allocations: 27.97 kB / 341.7 MB, free: 15.24 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/0.02511, allocations: 72.36 kB / 341.8 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.999e-05/0.02513, allocations: 15.98 kB / 341.8 MB, free: 15.16 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001186/0.02525, allocations: 175.2 kB / 341.9 MB, free: 14.98 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02525, allocations: 0 / 341.9 MB, free: 14.98 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004029/0.02565, allocations: 160 kB / 342.1 MB, free: 14.83 MB / 314.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.0001947/0.02584, allocations: 147.1 kB / 342.2 MB, free: 14.67 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008635/0.02671, allocations: 0.6795 MB / 342.9 MB, free: 13.98 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.02671, allocations: 0 / 342.9 MB, free: 13.98 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004357/0.02714, allocations: 460.4 kB / 343.4 MB, free: 13.52 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002888/0.02743, allocations: 47.91 kB / 343.4 MB, free: 13.47 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001016/0.02845, allocations: 0.7835 MB / 344.2 MB, free: 12.65 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001306/0.02858, allocations: 190.8 kB / 344.4 MB, free: 12.45 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.528e-05/0.02867, allocations: 36.48 kB / 344.4 MB, free: 12.41 MB / 314.7 MB Notification: Performance of SimCode: time 7.32e-07/0.02867, allocations: 0 / 344.4 MB, free: 12.41 MB / 314.7 MB Notification: Performance of Templates: time 0.00574/0.03441, allocations: 6.096 MB / 350.5 MB, free: 6.328 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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: 5.555380671285093]