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.0007235/0.0007235, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009893/0.001713, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0006658/0.0006658, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008458/0.001512, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9402/0.9402, allocations: 177.2 MB / 189.8 MB, free: 5.246 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08525/1.025, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.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.764e-06/1.764e-06, allocations: 0 / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.222e-05/2.399e-05, allocations: 2.312 kB / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004025/0.004049, allocations: 2.511 MB / 247.2 MB, free: 11.7 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001693/0.005742, allocations: 1.064 MB / 248.3 MB, free: 10.62 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.005855, allocations: 4 kB / 248.3 MB, free: 10.62 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002149/0.00607, allocations: 71.36 kB / 248.3 MB, free: 10.55 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003514/0.006421, allocations: 154.7 kB / 248.5 MB, free: 10.4 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003442/0.006765, allocations: 163.6 kB / 248.7 MB, free: 10.24 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004974/0.007263, allocations: 474.6 kB / 249.1 MB, free: 9.777 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001316/0.007394, allocations: 54.73 kB / 249.2 MB, free: 9.723 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003814/0.007776, allocations: 307.5 kB / 249.5 MB, free: 9.422 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002893/0.008065, allocations: 203.6 kB / 249.7 MB, free: 9.223 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.392e-05/0.008129, allocations: 36 kB / 249.7 MB, free: 9.188 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002437/0.008373, allocations: 131.8 kB / 249.8 MB, free: 9.059 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001057/0.008478, allocations: 75.8 kB / 249.9 MB, free: 8.984 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001332/0.008612, allocations: 91.88 kB / 250 MB, free: 8.895 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00047/0.009082, allocations: 358.8 kB / 250.4 MB, free: 8.543 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.129e-05/0.009093, allocations: 0 / 250.4 MB, free: 8.543 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.31e-07/0.009094, allocations: 0 / 250.4 MB, free: 8.543 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.009105, allocations: 0 / 250.4 MB, free: 8.543 MB / 250.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.001053/0.01016, allocations: 0.6242 MB / 251 MB, free: 7.895 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.01019, allocations: 12.03 kB / 251 MB, free: 7.883 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003575/0.01055, allocations: 153.9 kB / 251.1 MB, free: 7.715 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003708/0.01092, allocations: 227.3 kB / 251.4 MB, free: 7.461 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001355/0.01106, allocations: 140 kB / 251.5 MB, free: 7.301 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.907e-05/0.01112, allocations: 24.38 kB / 251.5 MB, free: 7.277 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005133/0.01163, allocations: 327.6 kB / 251.8 MB, free: 6.93 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.01165, allocations: 4.188 kB / 251.8 MB, free: 6.926 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.386e-05/0.01168, allocations: 12.12 kB / 251.9 MB, free: 6.914 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.01169, allocations: 8 kB / 251.9 MB, free: 6.906 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003798/0.01207, allocations: 187.2 kB / 252 MB, free: 6.723 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001519/0.01359, allocations: 0.82 MB / 252.9 MB, free: 5.867 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003592/0.01395, allocations: 166.4 kB / 253 MB, free: 5.695 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001572/0.01411, allocations: 81.48 kB / 253.1 MB, free: 5.613 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.795e-05/0.01414, allocations: 15.95 kB / 253.1 MB, free: 5.598 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.851e-05/0.01417, allocations: 34.56 kB / 253.2 MB, free: 5.555 MB / 250.7 MB Notification: Performance of pre-optimization done (n=43): time 1.884e-06/0.01417, allocations: 0 / 253.2 MB, free: 5.555 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.005338/0.01951, allocations: 1.172 MB / 254.3 MB, free: 4.324 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.656e-05/0.01955, allocations: 63.16 kB / 254.4 MB, free: 4.25 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002126/0.01976, allocations: 208.5 kB / 254.6 MB, free: 4.031 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.085e-05/0.0198, allocations: 37.7 kB / 254.6 MB, free: 3.988 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.576e-05/0.01988, allocations: 132.8 kB / 254.8 MB, free: 3.855 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001139/0.01999, allocations: 158.7 kB / 254.9 MB, free: 3.699 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001309/0.02012, allocations: 82.14 kB / 255 MB, free: 3.613 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.02023, allocations: 338.8 kB / 255.3 MB, free: 3.273 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001476/0.02038, allocations: 59.75 kB / 255.4 MB, free: 3.215 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000173/0.02055, allocations: 148.3 kB / 255.5 MB, free: 3.043 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002932/0.02084, allocations: 209.7 kB / 255.7 MB, free: 2.824 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.02085, allocations: 3.984 kB / 255.7 MB, free: 2.82 MB / 250.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0004973/0.02134, allocations: 286.1 kB / 256 MB, free: 2.531 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.02136, allocations: 4 kB / 256 MB, free: 2.527 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.02137, allocations: 8.125 kB / 256 MB, free: 2.52 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005305/0.0219, allocations: 221.2 kB / 256.2 MB, free: 2.301 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002188/0.02212, allocations: 67.89 kB / 256.3 MB, free: 2.234 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00238/0.0245, allocations: 2.047 MB / 258.4 MB, free: 116 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001752/0.02467, allocations: 23.98 kB / 258.4 MB, free: 92 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.663e-05/0.02471, allocations: 12 kB / 258.4 MB, free: 80 kB / 250.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.0001405/0.02485, allocations: 132.7 kB / 258.5 MB, free: 15.94 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.028e-05/0.02492, allocations: 23.98 kB / 258.5 MB, free: 15.91 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.464e-05/0.02498, allocations: 50.92 kB / 258.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.02499, allocations: 11.94 kB / 258.6 MB, free: 15.85 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.02499, allocations: 0 / 258.6 MB, free: 15.85 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.025, allocations: 8.016 kB / 258.6 MB, free: 15.84 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001003/0.026, allocations: 0.5672 MB / 259.2 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.026, allocations: 0 / 259.2 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002093/0.02621, allocations: 67.81 kB / 259.3 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.02633, allocations: 47.81 kB / 259.3 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000478/0.02681, allocations: 215.7 kB / 259.5 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.481e-05/0.02684, allocations: 15.98 kB / 259.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001805/0.02865, allocations: 2.021 MB / 261.5 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.02865, allocations: 0 / 261.5 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004414/0.02909, allocations: 461.3 kB / 262 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.071e-05/0.02912, allocations: 8 kB / 262 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/0.02924, allocations: 23.92 kB / 262 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.02934, allocations: 63.8 kB / 262.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-05/0.02936, allocations: 19.97 kB / 262.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.142e-05/0.02942, allocations: 58.06 kB / 262.2 MB, free: 12.15 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02942, allocations: 0 / 262.2 MB, free: 12.15 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003485/0.02977, allocations: 131.9 kB / 262.3 MB, free: 12.02 MB / 266.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.001091/0.03086, allocations: 0.5106 MB / 262.8 MB, free: 11.74 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005167/0.03138, allocations: 450.2 kB / 263.2 MB, free: 11.29 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.283e-05/0.03139, allocations: 4 kB / 263.2 MB, free: 11.28 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003197/0.03171, allocations: 363.6 kB / 263.6 MB, free: 10.91 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000291/0.032, allocations: 252.5 kB / 263.9 MB, free: 10.63 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002257/0.03426, allocations: 0.5654 MB / 264.4 MB, free: 10.04 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.404e-05/0.03434, allocations: 109.9 kB / 264.5 MB, free: 9.91 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001197/0.03446, allocations: 58.92 kB / 264.6 MB, free: 9.848 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001356/0.03459, allocations: 103.3 kB / 264.7 MB, free: 9.746 MB / 266.7 MB Notification: Performance of SimCode: time 8.01e-07/0.03459, allocations: 0 / 264.7 MB, free: 9.746 MB / 266.7 MB Notification: Performance of Templates: time 0.01189/0.04648, allocations: 7.922 MB / 272.6 MB, free: 1.879 MB / 266.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.781732984818518]