Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001013/0.001013, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001583/0.001583, allocations: 160.5 kB / 24.55 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9438/0.9438, allocations: 177 MB / 204.8 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 272.9 MB, free: 1.488 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.493e-05/1.617e-05, allocations: 6.312 kB / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002542/0.002558, allocations: 2.476 MB / 275.4 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001248/0.003806, allocations: 1.034 MB / 276.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001143/0.00392, allocations: 7.938 kB / 276.4 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002629/0.004183, allocations: 63.38 kB / 276.5 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003631/0.004546, allocations: 165.2 kB / 276.6 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002949/0.004841, allocations: 163.6 kB / 276.8 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003562/0.005197, allocations: 482.5 kB / 277.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.005315, allocations: 51.7 kB / 277.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000229/0.005544, allocations: 279.5 kB / 277.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002134/0.005757, allocations: 211.5 kB / 277.8 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.501e-05/0.005802, allocations: 40 kB / 277.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000164/0.005966, allocations: 119.9 kB / 278 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001046/0.006071, allocations: 115.7 kB / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.982e-05/0.006161, allocations: 127.7 kB / 278.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004276/0.006588, allocations: 410.6 kB / 278.6 MB, free: 11.76 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.006592, allocations: 4 kB / 278.6 MB, free: 11.76 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.006593, allocations: 0 / 278.6 MB, free: 11.76 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.006597, allocations: 0 / 278.6 MB, free: 11.76 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.0008078/0.007405, allocations: 0.6906 MB / 279.3 MB, free: 11.03 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.007439, allocations: 11.98 kB / 279.3 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002196/0.007658, allocations: 76.73 kB / 279.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005507/0.008209, allocations: 253.6 kB / 279.6 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001027/0.008312, allocations: 148 kB / 279.8 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.264e-05/0.008354, allocations: 28.38 kB / 279.8 MB, free: 10.47 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004121/0.008767, allocations: 348.1 kB / 280.1 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.008781, allocations: 8.141 kB / 280.1 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.416e-05/0.008805, allocations: 12.12 kB / 280.2 MB, free: 10.08 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.008814, allocations: 8 kB / 280.2 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003265/0.009141, allocations: 243.6 kB / 280.4 MB, free: 9.832 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0012/0.01034, allocations: 1.124 MB / 281.5 MB, free: 8.656 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003402/0.01068, allocations: 231.1 kB / 281.7 MB, free: 8.418 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/0.01083, allocations: 111.6 kB / 281.9 MB, free: 8.305 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.604e-05/0.01086, allocations: 8 kB / 281.9 MB, free: 8.297 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.421e-05/0.01088, allocations: 41.39 kB / 281.9 MB, free: 8.246 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.693e-06/0.01088, allocations: 0 / 281.9 MB, free: 8.246 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.002305/0.01319, allocations: 1.344 MB / 283.3 MB, free: 6.836 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.815e-05/0.01323, allocations: 88.8 kB / 283.3 MB, free: 6.73 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000174/0.0134, allocations: 257.9 kB / 283.6 MB, free: 6.461 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.692e-05/0.01343, allocations: 41.64 kB / 283.6 MB, free: 6.414 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.767e-05/0.01351, allocations: 191.5 kB / 283.8 MB, free: 6.219 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.803e-05/0.01358, allocations: 154.7 kB / 284 MB, free: 6.066 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.588e-05/0.01368, allocations: 91.83 kB / 284.1 MB, free: 5.969 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.0138, allocations: 0.5079 MB / 284.6 MB, free: 5.449 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001571/0.01395, allocations: 88.94 kB / 284.7 MB, free: 5.359 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001859/0.01414, allocations: 193.2 kB / 284.8 MB, free: 5.141 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002796/0.01442, allocations: 238.3 kB / 285.1 MB, free: 4.887 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.01442, allocations: 0 / 285.1 MB, free: 4.887 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005388/0.01496, allocations: 409 kB / 285.5 MB, free: 4.48 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/0.01498, allocations: 16.06 kB / 285.5 MB, free: 4.465 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.01499, allocations: 0 / 285.5 MB, free: 4.465 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004563/0.01544, allocations: 243.3 kB / 285.7 MB, free: 4.223 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001397/0.01558, allocations: 51.89 kB / 285.8 MB, free: 4.172 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002488/0.01807, allocations: 2.876 MB / 288.7 MB, free: 1.176 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001174/0.01819, allocations: 16 kB / 288.7 MB, free: 1.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.278e-05/0.01822, allocations: 23.98 kB / 288.7 MB, free: 1.137 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.0001159/0.01834, allocations: 176.4 kB / 288.9 MB, free: 0.957 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.815e-05/0.0184, allocations: 47.8 kB / 288.9 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.055e-05/0.01845, allocations: 42.98 kB / 289 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.01845, allocations: 4 kB / 289 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.01845, allocations: 0 / 289 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.01846, allocations: 8.016 kB / 289 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009487/0.01941, allocations: 0.8535 MB / 289.8 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.01941, allocations: 0 / 289.8 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001239/0.01953, allocations: 43.97 kB / 289.9 MB, free: 15.91 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003595/0.01989, allocations: 219.5 kB / 290.1 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.406e-05/0.01991, allocations: 15.98 kB / 290.1 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002035/0.02195, allocations: 2.866 MB / 293 MB, free: 12.7 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.02195, allocations: 0 / 293 MB, free: 12.7 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006814/0.02263, allocations: 0.6195 MB / 293.6 MB, free: 12.05 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.014e-05/0.02272, allocations: 71.73 kB / 293.6 MB, free: 11.98 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.279e-05/0.02276, allocations: 16.06 kB / 293.7 MB, free: 11.97 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001195/0.02287, allocations: 15.98 kB / 293.7 MB, free: 11.95 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003692/0.02324, allocations: 63.86 kB / 293.7 MB, free: 11.89 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.209e-05/0.02327, allocations: 19.98 kB / 293.8 MB, free: 11.87 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001106/0.02338, allocations: 192.1 kB / 293.9 MB, free: 11.68 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02338, allocations: 0 / 293.9 MB, free: 11.68 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003938/0.02377, allocations: 139.9 kB / 294.1 MB, free: 11.55 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.0008157/0.02459, allocations: 353.9 kB / 294.4 MB, free: 11.29 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006729/0.02526, allocations: 0.5467 MB / 295 MB, free: 10.72 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.02526, allocations: 0 / 295 MB, free: 10.72 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003493/0.02561, allocations: 444.4 kB / 295.4 MB, free: 10.26 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002801/0.02589, allocations: 63.95 kB / 295.5 MB, free: 10.2 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009754/0.02687, allocations: 0.6201 MB / 296.1 MB, free: 9.547 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.647e-05/0.02693, allocations: 109.2 kB / 296.2 MB, free: 9.422 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001265/0.02706, allocations: 70.92 kB / 296.3 MB, free: 9.355 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.515e-05/0.02713, allocations: 36.47 kB / 296.3 MB, free: 9.32 MB / 282.7 MB Notification: Performance of SimCode: time 8.41e-07/0.02714, allocations: 0 / 296.3 MB, free: 9.32 MB / 282.7 MB Notification: Performance of Templates: time 0.01051/0.03765, allocations: 7.691 MB / 304 MB, free: 1.676 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.8601238620467484]