Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.0008814/0.0008814, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.003271/0.003271, allocations: 160.2 kB / 24.7 MB, free: 9.418 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.9267/0.9267, allocations: 177.1 MB / 205 MB, free: 5.715 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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.67e-05/2.844e-05, allocations: 2.281 kB / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002712/0.00274, allocations: 2.425 MB / 328.2 MB, free: 13 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001346/0.004086, allocations: 1.084 MB / 329.3 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001329/0.004219, allocations: 7.938 kB / 329.3 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000272/0.004491, allocations: 67.47 kB / 329.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004057/0.004897, allocations: 178.7 kB / 329.6 MB, free: 11.67 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003276/0.005224, allocations: 187.5 kB / 329.8 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003834/0.005608, allocations: 0.5334 MB / 330.3 MB, free: 10.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001582/0.005766, allocations: 60.86 kB / 330.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003627/0.006129, allocations: 319.3 kB / 330.7 MB, free: 10.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002323/0.006361, allocations: 231.5 kB / 330.9 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.762e-05/0.006409, allocations: 44 kB / 330.9 MB, free: 10.3 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001934/0.006602, allocations: 135.8 kB / 331.1 MB, free: 10.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001063/0.006708, allocations: 123.6 kB / 331.2 MB, free: 10.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.636e-05/0.006805, allocations: 143.7 kB / 331.3 MB, free: 9.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005057/0.007311, allocations: 0.5842 MB / 331.9 MB, free: 9.324 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.007314, allocations: 4 kB / 331.9 MB, free: 9.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.007316, allocations: 0 / 331.9 MB, free: 9.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.007322, allocations: 0 / 331.9 MB, free: 9.32 MB / 298.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.000896/0.008218, allocations: 0.6452 MB / 332.6 MB, free: 8.645 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.008255, allocations: 8.031 kB / 332.6 MB, free: 8.637 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002455/0.0085, allocations: 64.67 kB / 332.6 MB, free: 8.574 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003945/0.008895, allocations: 260.9 kB / 332.9 MB, free: 8.293 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001133/0.009008, allocations: 140 kB / 333 MB, free: 8.133 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.817e-05/0.009056, allocations: 36.33 kB / 333.1 MB, free: 8.098 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000542/0.009598, allocations: 443.2 kB / 333.5 MB, free: 7.645 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.009613, allocations: 4.188 kB / 333.5 MB, free: 7.641 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.085e-05/0.009644, allocations: 20.12 kB / 333.5 MB, free: 7.621 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.009653, allocations: 11.94 kB / 333.5 MB, free: 7.609 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006008/0.01025, allocations: 458.3 kB / 334 MB, free: 7.164 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001072/0.01133, allocations: 0.8039 MB / 334.8 MB, free: 6.328 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005551/0.01188, allocations: 359.7 kB / 335.1 MB, free: 5.969 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002794/0.01216, allocations: 206.3 kB / 335.3 MB, free: 5.766 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.774e-05/0.01219, allocations: 4.5 kB / 335.3 MB, free: 5.762 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.424e-05/0.01221, allocations: 43.19 kB / 335.4 MB, free: 5.711 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.194e-06/0.01221, allocations: 4 kB / 335.4 MB, free: 5.707 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.003152/0.01537, allocations: 1.91 MB / 337.3 MB, free: 3.746 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.654e-05/0.01541, allocations: 81.61 kB / 337.4 MB, free: 3.648 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002145/0.01563, allocations: 255.7 kB / 337.6 MB, free: 3.387 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.248e-05/0.01566, allocations: 41.7 kB / 337.7 MB, free: 3.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.638e-05/0.01574, allocations: 145.2 kB / 337.8 MB, free: 3.191 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.01584, allocations: 194.3 kB / 338 MB, free: 3 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.01594, allocations: 90.17 kB / 338.1 MB, free: 2.898 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.708e-05/0.01604, allocations: 338.8 kB / 338.4 MB, free: 2.559 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002632/0.0163, allocations: 192.9 kB / 338.6 MB, free: 2.371 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002859/0.01659, allocations: 265.7 kB / 338.9 MB, free: 2.098 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004922/0.01708, allocations: 391.6 kB / 339.2 MB, free: 1.707 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.01708, allocations: 0 / 339.2 MB, free: 1.707 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0007608/0.01784, allocations: 0.5887 MB / 339.8 MB, free: 1.109 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.01786, allocations: 11.94 kB / 339.8 MB, free: 1.098 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.01787, allocations: 0 / 339.8 MB, free: 1.098 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005187/0.01839, allocations: 307.4 kB / 340.1 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001679/0.01856, allocations: 75.94 kB / 340.2 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002578/0.02113, allocations: 2.751 MB / 343 MB, free: 13.87 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000171/0.0213, allocations: 32 kB / 343 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.369e-05/0.02134, allocations: 19.98 kB / 343 MB, free: 13.82 MB / 314.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.0001678/0.02151, allocations: 161.8 kB / 343.2 MB, free: 13.65 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.336e-05/0.02156, allocations: 31.81 kB / 343.2 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.235e-05/0.02161, allocations: 47.31 kB / 343.2 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.02161, allocations: 4 kB / 343.3 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.02162, allocations: 15.86 kB / 343.3 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.02162, allocations: 0 / 343.3 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001494/0.02312, allocations: 1.138 MB / 344.4 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.02312, allocations: 0 / 344.4 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001846/0.02331, allocations: 67.89 kB / 344.5 MB, free: 12.31 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004023/0.02371, allocations: 280.6 kB / 344.7 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.549e-05/0.02373, allocations: 19.98 kB / 344.8 MB, free: 12.01 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002602/0.02634, allocations: 2.673 MB / 347.4 MB, free: 9.238 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.02634, allocations: 0 / 347.4 MB, free: 9.238 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001133/0.02747, allocations: 0.941 MB / 348.4 MB, free: 8.273 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.02759, allocations: 83.77 kB / 348.5 MB, free: 8.191 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.56e-05/0.02762, allocations: 15.98 kB / 348.5 MB, free: 8.176 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001453/0.02777, allocations: 32.09 kB / 348.5 MB, free: 8.145 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001426/0.02791, allocations: 76.34 kB / 348.6 MB, free: 8.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.391e-05/0.02794, allocations: 19.98 kB / 348.6 MB, free: 8.051 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001349/0.02807, allocations: 185.5 kB / 348.8 MB, free: 7.871 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02807, allocations: 0 / 348.8 MB, free: 7.871 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004577/0.02853, allocations: 151.9 kB / 348.9 MB, free: 7.723 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.0007124/0.02924, allocations: 426.7 kB / 349.3 MB, free: 7.457 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000949/0.03019, allocations: 0.6679 MB / 350 MB, free: 6.773 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.03019, allocations: 0 / 350 MB, free: 6.773 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000466/0.03066, allocations: 460.4 kB / 350.5 MB, free: 6.312 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003778/0.03104, allocations: 46.84 kB / 350.5 MB, free: 6.27 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001091/0.03213, allocations: 0.7842 MB / 351.3 MB, free: 5.449 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001327/0.03226, allocations: 194.8 kB / 351.5 MB, free: 5.234 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.03237, allocations: 44.47 kB / 351.5 MB, free: 5.191 MB / 314.7 MB Notification: Performance of SimCode: time 1.493e-06/0.03237, allocations: 0 / 351.5 MB, free: 5.191 MB / 314.7 MB Notification: Performance of Templates: time 0.007217/0.03959, allocations: 6.803 MB / 358.3 MB, free: 14.39 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 4.544188645668328]