Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.0009346/0.0009346, allocations: 72.08 kB / 21.69 MB, free: 2.859 MB / 18.57 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.001077/0.001077, allocations: 142.1 kB / 24.97 MB, free: 8.316 MB / 18.57 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 0.9647/0.9647, allocations: 173.3 MB / 201.5 MB, free: 9.312 MB / 186.7 MB " [Timeout remaining time 179] 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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 268 MB, free: 6.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.268e-05/1.403e-05, allocations: 6.25 kB / 268.1 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002396/0.00241, allocations: 2.447 MB / 270.5 MB, free: 4.262 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001222/0.003633, allocations: 0.9518 MB / 271.5 MB, free: 3.305 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001185/0.003751, allocations: 4 kB / 271.5 MB, free: 3.301 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000191/0.003942, allocations: 51.5 kB / 271.5 MB, free: 3.25 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004233/0.004365, allocations: 166.9 kB / 271.7 MB, free: 3.086 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002514/0.004617, allocations: 183.6 kB / 271.8 MB, free: 2.906 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003488/0.004965, allocations: 482.3 kB / 272.3 MB, free: 2.434 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001387/0.005104, allocations: 65 kB / 272.4 MB, free: 2.363 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002761/0.00538, allocations: 283.5 kB / 272.7 MB, free: 2.086 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002153/0.005595, allocations: 215.5 kB / 272.9 MB, free: 1.875 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.375e-05/0.005639, allocations: 40 kB / 272.9 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001516/0.005791, allocations: 119.9 kB / 273 MB, free: 1.719 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003431/0.006134, allocations: 111.7 kB / 273.1 MB, free: 1.609 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.006237, allocations: 135.6 kB / 273.3 MB, free: 1.477 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003863/0.006623, allocations: 398.7 kB / 273.7 MB, free: 1.086 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.006625, allocations: 4 kB / 273.7 MB, free: 1.082 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.006626, allocations: 0 / 273.7 MB, free: 1.082 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.548e-06/0.006631, allocations: 0 / 273.7 MB, free: 1.082 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.0008615/0.007492, allocations: 0.6947 MB / 274.4 MB, free: 360 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.007531, allocations: 12.92 kB / 274.4 MB, free: 348 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002486/0.00778, allocations: 80.69 kB / 274.4 MB, free: 268 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003397/0.00812, allocations: 276.5 kB / 274.7 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.646e-05/0.008216, allocations: 140 kB / 274.9 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.654e-05/0.008263, allocations: 36.33 kB / 274.9 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004349/0.008698, allocations: 352.9 kB / 275.2 MB, free: 15.4 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.008711, allocations: 192 / 275.2 MB, free: 15.4 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.723e-05/0.008738, allocations: 24.12 kB / 275.3 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.928e-06/0.008748, allocations: 8 kB / 275.3 MB, free: 15.37 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003658/0.009114, allocations: 271.6 kB / 275.5 MB, free: 15.11 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000967/0.01008, allocations: 0.7682 MB / 276.3 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003973/0.01048, allocations: 261.7 kB / 276.6 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001753/0.01065, allocations: 137.1 kB / 276.7 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.01068, allocations: 12.44 kB / 276.7 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.406e-05/0.0107, allocations: 45.89 kB / 276.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 1.262e-06/0.0107, allocations: 0 / 276.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.002392/0.0131, allocations: 1.531 MB / 278.3 MB, free: 12.24 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.434e-05/0.01313, allocations: 85.61 kB / 278.4 MB, free: 12.14 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000167/0.0133, allocations: 273.5 kB / 278.6 MB, free: 11.85 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.782e-05/0.01332, allocations: 33.7 kB / 278.7 MB, free: 11.81 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.234e-05/0.0134, allocations: 191.8 kB / 278.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.951e-05/0.0135, allocations: 190.4 kB / 279 MB, free: 11.43 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/0.0136, allocations: 99.78 kB / 279.1 MB, free: 11.33 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.01371, allocations: 0.5079 MB / 279.6 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000168/0.01388, allocations: 104.9 kB / 279.7 MB, free: 10.71 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001903/0.01407, allocations: 190.2 kB / 279.9 MB, free: 10.5 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005327/0.0146, allocations: 253.2 kB / 280.2 MB, free: 10.25 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.0146, allocations: 0 / 280.2 MB, free: 10.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0005381/0.01514, allocations: 441.8 kB / 280.6 MB, free: 9.801 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/0.01515, allocations: 4 kB / 280.6 MB, free: 9.797 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.01516, allocations: 4 kB / 280.6 MB, free: 9.793 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000406/0.01557, allocations: 229.4 kB / 280.8 MB, free: 9.566 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001525/0.01572, allocations: 55.95 kB / 280.9 MB, free: 9.512 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002151/0.01787, allocations: 2.9 MB / 283.8 MB, free: 6.484 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001218/0.01799, allocations: 24.02 kB / 283.8 MB, free: 6.461 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.981e-05/0.01802, allocations: 19.98 kB / 283.8 MB, free: 6.441 MB / 266.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.0001124/0.01813, allocations: 180.5 kB / 284 MB, free: 6.254 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.255e-05/0.0182, allocations: 43.81 kB / 284.1 MB, free: 6.211 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.996e-05/0.01825, allocations: 51.3 kB / 284.1 MB, free: 6.164 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.01825, allocations: 8 kB / 284.1 MB, free: 6.156 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.01825, allocations: 3.938 kB / 284.1 MB, free: 6.152 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.01826, allocations: 0 / 284.1 MB, free: 6.152 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/0.01932, allocations: 0.9752 MB / 285.1 MB, free: 5.129 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.01932, allocations: 0 / 285.1 MB, free: 5.129 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001674/0.01949, allocations: 67.89 kB / 285.2 MB, free: 5.062 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000344/0.01983, allocations: 207.5 kB / 285.4 MB, free: 4.855 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.523e-05/0.01986, allocations: 15.98 kB / 285.4 MB, free: 4.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002269/0.02213, allocations: 2.849 MB / 288.2 MB, free: 1.879 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.02213, allocations: 4 kB / 288.2 MB, free: 1.875 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007853/0.02291, allocations: 0.7168 MB / 288.9 MB, free: 1.129 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.603e-05/0.02301, allocations: 75.81 kB / 289 MB, free: 1.055 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.516e-05/0.02304, allocations: 12 kB / 289 MB, free: 1.043 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001366/0.02318, allocations: 23.98 kB / 289.1 MB, free: 1.02 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.02329, allocations: 68.36 kB / 289.1 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.213e-05/0.02332, allocations: 15.98 kB / 289.1 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001058/0.02342, allocations: 203.9 kB / 289.3 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.02342, allocations: 0 / 289.3 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003786/0.0238, allocations: 151.9 kB / 289.5 MB, free: 0.5898 MB / 266.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.0001636/0.02396, allocations: 163 kB / 289.6 MB, free: 428 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.08664/0.1106, allocations: 0.582 MB / 290.2 MB, free: 32.01 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.1106, allocations: 1.562 kB / 290.2 MB, free: 32.01 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005732/0.1112, allocations: 472.1 kB / 290.7 MB, free: 31.8 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003338/0.1115, allocations: 64.84 kB / 290.8 MB, free: 31.8 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/0.1126, allocations: 0.6866 MB / 291.4 MB, free: 31.5 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.102e-05/0.1127, allocations: 117.1 kB / 291.6 MB, free: 31.43 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000124/0.1128, allocations: 54.02 kB / 291.6 MB, free: 31.43 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.523e-05/0.1129, allocations: 35.16 kB / 291.6 MB, free: 31.43 MB / 266.7 MB Notification: Performance of SimCode: time 1.092e-06/0.1129, allocations: 0 / 291.6 MB, free: 31.43 MB / 266.7 MB Notification: Performance of Templates: time 0.009101/0.122, allocations: 7.223 MB / 298.9 MB, free: 29.76 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.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.900042659137398]