Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.001949/0.001949, allocations: 80.88 kB / 20.68 MB, free: 1.023 MB / 14.72 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.002127/0.002127, allocations: 146 kB / 23.94 MB, free: 4.156 MB / 14.72 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 1.42/1.42, allocations: 173.4 MB / 200.4 MB, free: 12.86 MB / 190.1 MB " [Timeout remaining time 178] 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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.625e-06/2.625e-06, allocations: 0.6094 kB / 318.9 MB, free: 3.547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.497e-05/2.759e-05, allocations: 2.281 kB / 318.9 MB, free: 3.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004943/0.004971, allocations: 2.204 MB / 321.1 MB, free: 2.062 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002487/0.007458, allocations: 0.892 MB / 322 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001985/0.007656, allocations: 7.688 kB / 322 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002625/0.007919, allocations: 43.33 kB / 322.1 MB, free: 1.434 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007259/0.008645, allocations: 140.1 kB / 322.2 MB, free: 1.355 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006449/0.00929, allocations: 172.3 kB / 322.4 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006559/0.009945, allocations: 435.3 kB / 322.8 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001821/0.01013, allocations: 47.97 kB / 322.8 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004478/0.01058, allocations: 258.7 kB / 323.1 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004443/0.01102, allocations: 183.5 kB / 323.3 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.671e-05/0.01112, allocations: 32.41 kB / 323.3 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003445/0.01146, allocations: 115.7 kB / 323.4 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001694/0.01163, allocations: 110.4 kB / 323.5 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002056/0.01184, allocations: 112.3 kB / 323.6 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008657/0.0127, allocations: 490.5 kB / 324.1 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.01271, allocations: 5.969 kB / 324.1 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.01271, allocations: 4 kB / 324.1 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.336e-05/0.01272, allocations: 0 / 324.1 MB, free: 0.5664 MB / 286.1 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.001657/0.01438, allocations: 0.5565 MB / 324.7 MB, free: 160 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.01442, allocations: 10.52 kB / 324.7 MB, free: 160 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005227/0.01494, allocations: 52.88 kB / 324.7 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000702/0.01564, allocations: 245.6 kB / 325 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002508/0.0159, allocations: 141.2 kB / 325.1 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.833e-05/0.01599, allocations: 26.25 kB / 325.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00122/0.01721, allocations: 407.7 kB / 325.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.937e-05/0.01724, allocations: 5.297 kB / 325.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.227e-05/0.0173, allocations: 19.5 kB / 325.6 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.01732, allocations: 6.344 kB / 325.6 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001424/0.01874, allocations: 412.5 kB / 326 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002973/0.02171, allocations: 1.068 MB / 327 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001005/0.02272, allocations: 341 kB / 327.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005416/0.02326, allocations: 165.1 kB / 327.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.599e-05/0.02331, allocations: 4.844 kB / 327.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.982e-05/0.02335, allocations: 37.16 kB / 327.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.355e-06/0.02335, allocations: 0 / 327.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.006061/0.02941, allocations: 1.687 MB / 329.3 MB, free: 13.81 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.962e-05/0.02948, allocations: 91.38 kB / 329.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003537/0.02983, allocations: 241.3 kB / 329.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.407e-05/0.02989, allocations: 36.92 kB / 329.6 MB, free: 13.53 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.03001, allocations: 133.3 kB / 329.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001461/0.03015, allocations: 157.6 kB / 329.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001652/0.03032, allocations: 91.88 kB / 330 MB, free: 13.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.03048, allocations: 333.3 kB / 330.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004326/0.03091, allocations: 170.7 kB / 330.5 MB, free: 12.85 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004769/0.03139, allocations: 261.7 kB / 330.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007616/0.03215, allocations: 342.2 kB / 331.1 MB, free: 12.55 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.03216, allocations: 0.9062 kB / 331.1 MB, free: 12.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001241/0.0334, allocations: 0.5435 MB / 331.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.03342, allocations: 9.5 kB / 331.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.03343, allocations: 1.188 kB / 331.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008202/0.03425, allocations: 245.3 kB / 331.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002798/0.03453, allocations: 53.67 kB / 331.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004271/0.0388, allocations: 2.728 MB / 334.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003056/0.0391, allocations: 18.98 kB / 334.7 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.453e-05/0.03915, allocations: 20.36 kB / 334.7 MB, free: 10.05 MB / 302.1 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.0002199/0.03937, allocations: 153 kB / 334.8 MB, free: 9.914 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.486e-05/0.03945, allocations: 32.12 kB / 334.9 MB, free: 9.895 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001115/0.03956, allocations: 51.11 kB / 334.9 MB, free: 9.848 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.03957, allocations: 5.5 kB / 334.9 MB, free: 9.848 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.03957, allocations: 0 / 334.9 MB, free: 9.848 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.03958, allocations: 0 / 334.9 MB, free: 9.848 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001895/0.04147, allocations: 0.9531 MB / 335.9 MB, free: 9.219 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.04148, allocations: 0 / 335.9 MB, free: 9.219 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002377/0.04171, allocations: 44.47 kB / 335.9 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007632/0.04248, allocations: 243.9 kB / 336.2 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.877e-05/0.04252, allocations: 15.08 kB / 336.2 MB, free: 9.082 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004041/0.04656, allocations: 2.666 MB / 338.8 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.04656, allocations: 0 / 338.8 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001644/0.0482, allocations: 0.8052 MB / 339.7 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001602/0.04836, allocations: 67.91 kB / 339.7 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.489e-05/0.04843, allocations: 16 kB / 339.7 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002747/0.0487, allocations: 23.91 kB / 339.8 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001776/0.04888, allocations: 63.88 kB / 339.8 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.298e-05/0.04891, allocations: 12 kB / 339.8 MB, free: 6.164 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002486/0.04916, allocations: 184.2 kB / 340 MB, free: 5.984 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.04916, allocations: 0 / 340 MB, free: 5.984 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006677/0.04983, allocations: 135.9 kB / 340.1 MB, free: 5.852 MB / 302.1 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.0002923/0.05012, allocations: 150.5 kB / 340.3 MB, free: 5.699 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001424/0.05154, allocations: 0.6021 MB / 340.9 MB, free: 5.086 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.05155, allocations: 0 / 340.9 MB, free: 5.086 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007961/0.05234, allocations: 414.1 kB / 341.3 MB, free: 4.664 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004378/0.05278, allocations: 39.91 kB / 341.3 MB, free: 4.625 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001467/0.05425, allocations: 0.6513 MB / 342 MB, free: 3.953 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001987/0.05445, allocations: 171.8 kB / 342.2 MB, free: 3.766 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001913/0.05464, allocations: 58.94 kB / 342.2 MB, free: 3.707 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.05474, allocations: 28.48 kB / 342.2 MB, free: 3.676 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.05474, allocations: 4 kB / 342.2 MB, free: 3.672 MB / 302.1 MB Notification: Performance of Templates: time 0.01418/0.06893, allocations: 6.508 MB / 348.8 MB, free: 13.21 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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: 4.489029828459024]