Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.0009464/0.0009464, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.0009633/0.0009633, allocations: 167.4 kB / 24.82 MB, free: 9.266 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9791/0.9791, allocations: 177.1 MB / 205.3 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.844e-06/1.844e-06, allocations: 0 / 273.4 MB, free: 1.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.264e-05/2.449e-05, allocations: 2.312 kB / 273.4 MB, free: 1.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004177/0.004201, allocations: 2.448 MB / 275.8 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001982/0.006183, allocations: 1.022 MB / 276.9 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001717/0.006355, allocations: 7.938 kB / 276.9 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003188/0.006674, allocations: 71.36 kB / 276.9 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005144/0.007188, allocations: 155.3 kB / 277.1 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004127/0.007601, allocations: 163.6 kB / 277.2 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005766/0.008178, allocations: 482.5 kB / 277.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001626/0.00834, allocations: 44.91 kB / 277.8 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005214/0.008862, allocations: 279.5 kB / 278 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004335/0.009295, allocations: 203.6 kB / 278.2 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.277e-05/0.009388, allocations: 40 kB / 278.3 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002934/0.009681, allocations: 139.7 kB / 278.4 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001498/0.009831, allocations: 111.7 kB / 278.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001289/0.00996, allocations: 127.7 kB / 278.6 MB, free: 12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006153/0.01058, allocations: 406.7 kB / 279 MB, free: 11.6 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.01058, allocations: 0 / 279 MB, free: 11.6 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.01058, allocations: 0 / 279 MB, free: 11.6 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.01059, allocations: 0 / 279 MB, free: 11.6 MB / 266.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.001093/0.01168, allocations: 0.6944 MB / 279.7 MB, free: 10.87 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.01173, allocations: 12.03 kB / 279.7 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003205/0.01205, allocations: 72.67 kB / 279.8 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003931/0.01244, allocations: 257.6 kB / 280.1 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001505/0.01259, allocations: 140 kB / 280.2 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.4e-05/0.01266, allocations: 32.38 kB / 280.2 MB, free: 10.31 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005053/0.01316, allocations: 328.1 kB / 280.6 MB, free: 9.961 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.01318, allocations: 4.141 kB / 280.6 MB, free: 9.957 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.135e-05/0.01321, allocations: 16.12 kB / 280.6 MB, free: 9.941 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.01322, allocations: 8 kB / 280.6 MB, free: 9.934 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003769/0.0136, allocations: 200.3 kB / 280.8 MB, free: 9.738 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001552/0.01515, allocations: 1.089 MB / 281.9 MB, free: 8.605 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003414/0.01549, allocations: 194.9 kB / 282.1 MB, free: 8.402 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001566/0.01565, allocations: 103.7 kB / 282.2 MB, free: 8.297 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.998e-05/0.01568, allocations: 15.94 kB / 282.2 MB, free: 8.281 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.408e-05/0.0157, allocations: 37.39 kB / 282.2 MB, free: 8.234 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.733e-06/0.0157, allocations: 4 kB / 282.2 MB, free: 8.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.002038/0.01774, allocations: 1.196 MB / 283.4 MB, free: 6.969 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/0.01778, allocations: 88.8 kB / 283.5 MB, free: 6.863 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001716/0.01796, allocations: 270 kB / 283.8 MB, free: 6.582 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.107e-05/0.01799, allocations: 33.7 kB / 283.8 MB, free: 6.543 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.238e-05/0.01807, allocations: 191.5 kB / 284 MB, free: 6.348 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.295e-05/0.01815, allocations: 158.7 kB / 284.1 MB, free: 6.191 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.675e-05/0.01825, allocations: 91.8 kB / 284.2 MB, free: 6.094 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.01839, allocations: 0.5117 MB / 284.7 MB, free: 5.57 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.01849, allocations: 68.94 kB / 284.8 MB, free: 5.5 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001485/0.01864, allocations: 169.2 kB / 285 MB, free: 5.305 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002142/0.01886, allocations: 206.3 kB / 285.2 MB, free: 5.082 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.01886, allocations: 0 / 285.2 MB, free: 5.082 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0004257/0.01928, allocations: 372.9 kB / 285.5 MB, free: 4.707 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.0193, allocations: 8 kB / 285.5 MB, free: 4.699 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.01931, allocations: 0 / 285.5 MB, free: 4.699 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003971/0.0197, allocations: 224.2 kB / 285.8 MB, free: 4.477 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.01984, allocations: 55.89 kB / 285.8 MB, free: 4.422 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002079/0.02192, allocations: 2.786 MB / 288.6 MB, free: 1.523 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001233/0.02204, allocations: 24.02 kB / 288.6 MB, free: 1.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.843e-05/0.02207, allocations: 16 kB / 288.6 MB, free: 1.484 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.0001186/0.02219, allocations: 176.5 kB / 288.8 MB, free: 1.301 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.671e-05/0.02225, allocations: 43.86 kB / 288.9 MB, free: 1.258 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.214e-05/0.0223, allocations: 42.98 kB / 288.9 MB, free: 1.215 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.0223, allocations: 7.938 kB / 288.9 MB, free: 1.207 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.948e-06/0.02231, allocations: 0 / 288.9 MB, free: 1.207 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.789e-06/0.02232, allocations: 3.984 kB / 288.9 MB, free: 1.203 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009265/0.02325, allocations: 0.7916 MB / 289.7 MB, free: 384 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.02325, allocations: 0 / 289.7 MB, free: 384 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001246/0.02337, allocations: 39.97 kB / 289.7 MB, free: 344 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003532/0.02373, allocations: 207.5 kB / 289.9 MB, free: 132 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.314e-05/0.02375, allocations: 19.98 kB / 290 MB, free: 112 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002061/0.02581, allocations: 2.784 MB / 292.8 MB, free: 13.22 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.02581, allocations: 0 / 292.8 MB, free: 13.22 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005682/0.02638, allocations: 0.557 MB / 293.3 MB, free: 12.64 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001011/0.02648, allocations: 71.73 kB / 293.4 MB, free: 12.57 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.025e-05/0.02651, allocations: 15.94 kB / 293.4 MB, free: 12.55 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001175/0.02663, allocations: 20.05 kB / 293.4 MB, free: 12.53 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.02673, allocations: 63.88 kB / 293.5 MB, free: 12.47 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.92e-05/0.02675, allocations: 11.98 kB / 293.5 MB, free: 12.46 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.825e-05/0.02684, allocations: 184.3 kB / 293.7 MB, free: 12.28 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.02684, allocations: 0 / 293.7 MB, free: 12.28 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004142/0.02726, allocations: 135.9 kB / 293.8 MB, free: 12.14 MB / 282.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.0009291/0.02818, allocations: 360.6 kB / 294.2 MB, free: 11.9 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006121/0.0288, allocations: 0.5115 MB / 294.7 MB, free: 11.38 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.0288, allocations: 0 / 294.7 MB, free: 11.38 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003242/0.02912, allocations: 420.4 kB / 295.1 MB, free: 10.94 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003006/0.02942, allocations: 67.89 kB / 295.1 MB, free: 10.88 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009544/0.03038, allocations: 0.62 MB / 295.8 MB, free: 10.22 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.526e-05/0.03045, allocations: 105.3 kB / 295.9 MB, free: 10.1 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000119/0.03057, allocations: 58.92 kB / 295.9 MB, free: 10.04 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001383/0.03071, allocations: 122.2 kB / 296 MB, free: 9.922 MB / 282.7 MB Notification: Performance of SimCode: time 8.61e-07/0.03071, allocations: 0 / 296 MB, free: 9.922 MB / 282.7 MB Notification: Performance of Templates: time 0.009642/0.04035, allocations: 7.788 MB / 303.8 MB, free: 2.191 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.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.789048126898706]