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.0009583/0.0009583, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001073/0.001073, allocations: 162.8 kB / 24.99 MB, free: 8.746 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.9383/0.9383, allocations: 177.1 MB / 205.3 MB, free: 5.59 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 2.254e-06/2.254e-06, allocations: 0 / 273 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.829e-05/3.055e-05, allocations: 2.312 kB / 273 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004542/0.004572, allocations: 2.562 MB / 275.6 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001457/0.006029, allocations: 1.104 MB / 276.7 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001283/0.006157, allocations: 7.938 kB / 276.7 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002669/0.006424, allocations: 71.41 kB / 276.8 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003607/0.006785, allocations: 183.1 kB / 277 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002716/0.007057, allocations: 187.5 kB / 277.1 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003723/0.007429, allocations: 0.5334 MB / 277.7 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001792/0.007608, allocations: 57.12 kB / 277.7 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003077/0.007916, allocations: 315.4 kB / 278 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002142/0.00813, allocations: 235.5 kB / 278.3 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.655e-05/0.008177, allocations: 44 kB / 278.3 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001565/0.008333, allocations: 135.8 kB / 278.4 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.008436, allocations: 119.7 kB / 278.6 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001099/0.008545, allocations: 151.6 kB / 278.7 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004133/0.008959, allocations: 442.5 kB / 279.1 MB, free: 11.71 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.008961, allocations: 0 / 279.1 MB, free: 11.71 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.008963, allocations: 0 / 279.1 MB, free: 11.71 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.008968, allocations: 3.938 kB / 279.2 MB, free: 11.7 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.0008396/0.009808, allocations: 0.7296 MB / 279.9 MB, free: 10.94 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.00984, allocations: 8.031 kB / 279.9 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002787/0.01012, allocations: 92.67 kB / 280 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003153/0.01043, allocations: 268.7 kB / 280.2 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/0.01054, allocations: 144 kB / 280.4 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.783e-05/0.01059, allocations: 36.33 kB / 280.4 MB, free: 10.35 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004391/0.01103, allocations: 356.8 kB / 280.8 MB, free: 9.977 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.01104, allocations: 8.125 kB / 280.8 MB, free: 9.969 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.851e-05/0.01107, allocations: 16.12 kB / 280.8 MB, free: 9.953 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.01108, allocations: 8 kB / 280.8 MB, free: 9.945 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003879/0.01147, allocations: 271.6 kB / 281.1 MB, free: 9.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009703/0.01244, allocations: 0.7643 MB / 281.8 MB, free: 8.879 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004214/0.01286, allocations: 258.5 kB / 282.1 MB, free: 8.617 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001751/0.01304, allocations: 125.1 kB / 282.2 MB, free: 8.492 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.973e-05/0.01307, allocations: 12.5 kB / 282.2 MB, free: 8.477 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.137e-05/0.01309, allocations: 37.89 kB / 282.2 MB, free: 8.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 1.533e-06/0.01309, allocations: 0 / 282.2 MB, free: 8.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.002438/0.01553, allocations: 1.5 MB / 283.7 MB, free: 6.871 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.632e-05/0.01556, allocations: 85.61 kB / 283.8 MB, free: 6.77 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001735/0.01574, allocations: 282.6 kB / 284.1 MB, free: 6.473 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.156e-05/0.01577, allocations: 37.7 kB / 284.1 MB, free: 6.43 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.961e-05/0.01584, allocations: 184 kB / 284.3 MB, free: 6.246 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.01594, allocations: 194.3 kB / 284.5 MB, free: 6.055 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.01604, allocations: 95.83 kB / 284.6 MB, free: 5.953 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.01615, allocations: 0.5157 MB / 285.1 MB, free: 5.426 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001652/0.01632, allocations: 96.94 kB / 285.2 MB, free: 5.328 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002486/0.01657, allocations: 182.2 kB / 285.4 MB, free: 5.133 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003265/0.01689, allocations: 241.2 kB / 285.6 MB, free: 4.891 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.01689, allocations: 0 / 285.6 MB, free: 4.891 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0005794/0.01747, allocations: 437.7 kB / 286.1 MB, free: 4.453 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.01749, allocations: 6.656 kB / 286.1 MB, free: 4.449 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.01749, allocations: 0 / 286.1 MB, free: 4.449 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000468/0.01796, allocations: 233.4 kB / 286.3 MB, free: 4.219 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001971/0.01816, allocations: 67.89 kB / 286.4 MB, free: 4.152 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002266/0.02043, allocations: 2.911 MB / 289.3 MB, free: 1.117 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000132/0.02056, allocations: 27.98 kB / 289.3 MB, free: 1.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.111e-05/0.02059, allocations: 19.98 kB / 289.3 MB, free: 1.07 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.0001171/0.02071, allocations: 176.5 kB / 289.5 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.268e-05/0.02078, allocations: 47.81 kB / 289.5 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.143e-05/0.02083, allocations: 55.33 kB / 289.6 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.02083, allocations: 8 kB / 289.6 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.02084, allocations: 3.938 kB / 289.6 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.02084, allocations: 3.984 kB / 289.6 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1124/0.1332, allocations: 0.9656 MB / 290.6 MB, free: 27.22 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.912e-06/0.1332, allocations: 0 / 290.6 MB, free: 27.22 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003004/0.1335, allocations: 64.5 kB / 290.6 MB, free: 27.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005379/0.134, allocations: 224.7 kB / 290.9 MB, free: 27.21 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.125e-05/0.1341, allocations: 17.92 kB / 290.9 MB, free: 27.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002506/0.1366, allocations: 2.863 MB / 293.7 MB, free: 25.26 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1366, allocations: 2.438 kB / 293.7 MB, free: 25.26 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001039/0.1376, allocations: 0.702 MB / 294.4 MB, free: 25.05 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001497/0.1378, allocations: 80.31 kB / 294.5 MB, free: 25.05 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.343e-05/0.1378, allocations: 14.08 kB / 294.5 MB, free: 25.05 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001993/0.138, allocations: 20.55 kB / 294.6 MB, free: 25.05 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001729/0.1382, allocations: 79.25 kB / 294.6 MB, free: 25.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.906e-05/0.1382, allocations: 23.08 kB / 294.7 MB, free: 25.05 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001278/0.1384, allocations: 199.1 kB / 294.8 MB, free: 24.93 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1384, allocations: 1.219 kB / 294.8 MB, free: 24.93 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006075/0.139, allocations: 151.5 kB / 295 MB, free: 24.93 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.0008784/0.1399, allocations: 365.4 kB / 295.4 MB, free: 24.82 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009077/0.1408, allocations: 0.5825 MB / 295.9 MB, free: 24.61 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1408, allocations: 0 / 295.9 MB, free: 24.61 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005144/0.1413, allocations: 468.7 kB / 296.4 MB, free: 24.4 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004137/0.1417, allocations: 74.55 kB / 296.5 MB, free: 24.39 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001362/0.1431, allocations: 0.7202 MB / 297.2 MB, free: 24.05 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.928e-05/0.1432, allocations: 113.6 kB / 297.3 MB, free: 23.97 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002078/0.1434, allocations: 76.31 kB / 297.4 MB, free: 23.95 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.1435, allocations: 40.92 kB / 297.4 MB, free: 23.95 MB / 266.7 MB Notification: Performance of SimCode: time 7.51e-07/0.1435, allocations: 1.562 kB / 297.4 MB, free: 23.95 MB / 266.7 MB Notification: Performance of Templates: time 0.01142/0.1549, allocations: 7.648 MB / 305.1 MB, free: 21.43 MB / 266.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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] 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","",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.8932970829773694]