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.001464/0.001464, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.001447/0.001447, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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.9574/0.9574, allocations: 173.4 MB / 201.1 MB, free: 9.352 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.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 1.383e-06/1.383e-06, allocations: 0 / 268 MB, free: 6.477 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.431e-05/1.569e-05, allocations: 2.312 kB / 268 MB, free: 6.473 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002394/0.002409, allocations: 2.373 MB / 270.3 MB, free: 4.086 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001197/0.003606, allocations: 0.9013 MB / 271.2 MB, free: 3.18 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.994e-05/0.003706, allocations: 7.938 kB / 271.3 MB, free: 3.172 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001783/0.003884, allocations: 47.52 kB / 271.3 MB, free: 3.125 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003972/0.004281, allocations: 143.1 kB / 271.4 MB, free: 2.984 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002482/0.00453, allocations: 171.6 kB / 271.6 MB, free: 2.816 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000378/0.004907, allocations: 430.5 kB / 272 MB, free: 2.395 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000115/0.005023, allocations: 48.84 kB / 272.1 MB, free: 2.344 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000204/0.005227, allocations: 251.6 kB / 272.3 MB, free: 2.098 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002179/0.005444, allocations: 187.6 kB / 272.5 MB, free: 1.914 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.403e-05/0.005488, allocations: 32 kB / 272.5 MB, free: 1.883 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001559/0.005644, allocations: 123.8 kB / 272.7 MB, free: 1.762 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.546e-05/0.00574, allocations: 95.7 kB / 272.8 MB, free: 1.668 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.089e-05/0.005831, allocations: 123.7 kB / 272.9 MB, free: 1.547 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003501/0.006181, allocations: 366.8 kB / 273.2 MB, free: 1.188 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.006183, allocations: 0 / 273.2 MB, free: 1.188 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.006184, allocations: 0 / 273.2 MB, free: 1.188 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.548e-06/0.006189, allocations: 0 / 273.2 MB, free: 1.188 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.0008599/0.007048, allocations: 0.6519 MB / 273.9 MB, free: 0.5 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.007081, allocations: 8.922 kB / 273.9 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002186/0.0073, allocations: 72.73 kB / 274 MB, free: 432 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002956/0.007595, allocations: 272.7 kB / 274.2 MB, free: 128 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/0.007699, allocations: 140 kB / 274.4 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.043e-05/0.007739, allocations: 28.33 kB / 274.4 MB, free: 15.94 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003943/0.008133, allocations: 348.2 kB / 274.7 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.008145, allocations: 192 / 274.7 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.488e-05/0.008169, allocations: 16.12 kB / 274.8 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.008177, allocations: 4 kB / 274.8 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003251/0.008502, allocations: 259.6 kB / 275 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00114/0.009642, allocations: 1.116 MB / 276.1 MB, free: 14.13 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003132/0.009955, allocations: 241.7 kB / 276.4 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001412/0.0101, allocations: 116.3 kB / 276.5 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.398e-05/0.01012, allocations: 8 kB / 276.5 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.395e-05/0.01014, allocations: 45.34 kB / 276.5 MB, free: 13.7 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.373e-06/0.01015, allocations: 0 / 276.5 MB, free: 13.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.002441/0.01259, allocations: 1.368 MB / 277.9 MB, free: 12.27 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/0.01263, allocations: 92.78 kB / 278 MB, free: 12.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001636/0.01279, allocations: 277.6 kB / 278.3 MB, free: 11.87 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.596e-05/0.01281, allocations: 37.64 kB / 278.3 MB, free: 11.83 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.123e-05/0.01289, allocations: 183.6 kB / 278.5 MB, free: 11.64 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.136e-05/0.01297, allocations: 158.8 kB / 278.6 MB, free: 11.48 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.022e-05/0.01306, allocations: 91.77 kB / 278.7 MB, free: 11.39 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.01317, allocations: 0.5079 MB / 279.2 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001452/0.01331, allocations: 92.94 kB / 279.3 MB, free: 10.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001732/0.01348, allocations: 201.2 kB / 279.5 MB, free: 10.55 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002635/0.01375, allocations: 246.3 kB / 279.8 MB, free: 10.29 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.01375, allocations: 0 / 279.8 MB, free: 10.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0004894/0.01424, allocations: 425 kB / 280.2 MB, free: 9.859 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.01425, allocations: 11.94 kB / 280.2 MB, free: 9.848 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.01426, allocations: 0 / 280.2 MB, free: 9.848 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003948/0.01465, allocations: 215.5 kB / 280.4 MB, free: 9.633 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/0.01478, allocations: 51.91 kB / 280.4 MB, free: 9.582 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002164/0.01694, allocations: 2.87 MB / 283.3 MB, free: 6.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/0.01706, allocations: 15.98 kB / 283.3 MB, free: 6.574 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.54e-05/0.01708, allocations: 16 kB / 283.3 MB, free: 6.559 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.0001106/0.01719, allocations: 176.6 kB / 283.5 MB, free: 6.375 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.675e-05/0.01725, allocations: 51.73 kB / 283.6 MB, free: 6.324 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.022e-05/0.01729, allocations: 42.98 kB / 283.6 MB, free: 6.281 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.01729, allocations: 7.984 kB / 283.6 MB, free: 6.273 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-06/0.01729, allocations: 0 / 283.6 MB, free: 6.273 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.0173, allocations: 3.984 kB / 283.6 MB, free: 6.27 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00123/0.01853, allocations: 0.8421 MB / 284.5 MB, free: 5.383 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.01853, allocations: 0 / 284.5 MB, free: 5.383 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001222/0.01865, allocations: 43.91 kB / 284.5 MB, free: 5.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003384/0.01899, allocations: 199.5 kB / 284.7 MB, free: 5.141 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.569e-05/0.01902, allocations: 11.98 kB / 284.7 MB, free: 5.129 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002122/0.02114, allocations: 2.861 MB / 287.6 MB, free: 2.145 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.02114, allocations: 0 / 287.6 MB, free: 2.145 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006452/0.02179, allocations: 0.6395 MB / 288.2 MB, free: 1.48 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.964e-05/0.02187, allocations: 59.8 kB / 288.3 MB, free: 1.422 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.786e-05/0.02189, allocations: 8 kB / 288.3 MB, free: 1.414 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/0.022, allocations: 19.98 kB / 288.3 MB, free: 1.395 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.02211, allocations: 59.81 kB / 288.4 MB, free: 1.336 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.079e-05/0.02213, allocations: 19.98 kB / 288.4 MB, free: 1.316 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001008/0.02224, allocations: 200.2 kB / 288.6 MB, free: 1.121 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02224, allocations: 4.031 kB / 288.6 MB, free: 1.117 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003578/0.02259, allocations: 135.9 kB / 288.7 MB, free: 0.9844 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.0001675/0.02276, allocations: 143.2 kB / 288.8 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007111/0.02347, allocations: 0.5626 MB / 289.4 MB, free: 260 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.02347, allocations: 4 kB / 289.4 MB, free: 256 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1174/0.1408, allocations: 430 kB / 289.8 MB, free: 29.07 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003755/0.1412, allocations: 47.75 kB / 289.9 MB, free: 29.07 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001113/0.1423, allocations: 0.5995 MB / 290.5 MB, free: 28.81 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.075e-05/0.1424, allocations: 105.6 kB / 290.6 MB, free: 28.74 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001121/0.1425, allocations: 52.23 kB / 290.6 MB, free: 28.74 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.634e-05/0.1426, allocations: 30.61 kB / 290.7 MB, free: 28.74 MB / 266.7 MB Notification: Performance of SimCode: time 1.152e-06/0.1426, allocations: 1.094 kB / 290.7 MB, free: 28.74 MB / 266.7 MB Notification: Performance of Templates: time 0.009691/0.1523, allocations: 7.064 MB / 297.7 MB, free: 27.44 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] 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","",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.8887882297858596]