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.001363/0.001363, allocations: 85.05 kB / 21.5 MB, free: 2.984 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.001069/0.001069, allocations: 141.6 kB / 24.89 MB, free: 8.781 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.9528/0.9528, allocations: 173.4 MB / 201.5 MB, free: 9.164 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.583e-06/1.583e-06, allocations: 0 / 268.5 MB, free: 6.137 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.844e-05/2.003e-05, allocations: 2.312 kB / 268.5 MB, free: 6.133 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002618/0.002638, allocations: 2.395 MB / 270.9 MB, free: 3.719 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001361/0.003999, allocations: 0.9127 MB / 271.8 MB, free: 2.801 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001437/0.004142, allocations: 7.938 kB / 271.8 MB, free: 2.793 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002138/0.004356, allocations: 47.58 kB / 271.9 MB, free: 2.746 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004056/0.004762, allocations: 131.1 kB / 272 MB, free: 2.617 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002656/0.005027, allocations: 175.6 kB / 272.2 MB, free: 2.445 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003281/0.005355, allocations: 430.6 kB / 272.6 MB, free: 2.023 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.005469, allocations: 46.88 kB / 272.6 MB, free: 1.977 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002219/0.005691, allocations: 251.5 kB / 272.9 MB, free: 1.73 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002075/0.005899, allocations: 187.6 kB / 273.1 MB, free: 1.547 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.983e-05/0.005938, allocations: 32 kB / 273.1 MB, free: 1.516 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002061/0.006144, allocations: 131.8 kB / 273.2 MB, free: 1.387 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.084e-05/0.006235, allocations: 95.7 kB / 273.3 MB, free: 1.293 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.347e-05/0.006319, allocations: 123.7 kB / 273.4 MB, free: 1.172 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003433/0.006662, allocations: 362.9 kB / 273.8 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.006665, allocations: 4 kB / 273.8 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.006666, allocations: 0 / 273.8 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.00667, allocations: 3.938 kB / 273.8 MB, free: 0.8086 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.0006594/0.00733, allocations: 0.5271 MB / 274.3 MB, free: 264 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.007362, allocations: 8.922 kB / 274.3 MB, free: 256 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002179/0.00758, allocations: 76.81 kB / 274.4 MB, free: 180 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003026/0.007882, allocations: 214.2 kB / 274.6 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003415/0.008224, allocations: 140 kB / 274.7 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.762e-05/0.008262, allocations: 24.38 kB / 274.8 MB, free: 15.75 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003311/0.008593, allocations: 311.7 kB / 275.1 MB, free: 15.42 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.008607, allocations: 4.141 kB / 275.1 MB, free: 15.41 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.21e-05/0.008629, allocations: 20.12 kB / 275.1 MB, free: 15.39 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.008637, allocations: 12 kB / 275.1 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000217/0.008854, allocations: 179.2 kB / 275.3 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009565/0.00981, allocations: 0.8123 MB / 276.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002325/0.01004, allocations: 177.4 kB / 276.3 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.027e-05/0.01013, allocations: 85.48 kB / 276.4 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.01016, allocations: 8 kB / 276.4 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.226e-05/0.01018, allocations: 38.52 kB / 276.4 MB, free: 14.04 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.583e-06/0.01018, allocations: 4 kB / 276.4 MB, free: 14.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.001753/0.01193, allocations: 1.129 MB / 277.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.546e-05/0.01197, allocations: 89.09 kB / 277.6 MB, free: 12.75 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.01211, allocations: 211.9 kB / 277.8 MB, free: 12.53 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.662e-05/0.01213, allocations: 41.62 kB / 277.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.005e-05/0.01218, allocations: 128.8 kB / 278 MB, free: 12.35 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.178e-05/0.01226, allocations: 158.7 kB / 278.1 MB, free: 12.19 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.43e-05/0.01234, allocations: 82.14 kB / 278.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.373e-05/0.01241, allocations: 334.8 kB / 278.6 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.164e-05/0.01251, allocations: 63.8 kB / 278.6 MB, free: 11.7 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001124/0.01262, allocations: 152.2 kB / 278.8 MB, free: 11.53 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001918/0.01281, allocations: 213.7 kB / 279 MB, free: 11.3 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.01281, allocations: 0 / 279 MB, free: 11.3 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0003256/0.01314, allocations: 290.1 kB / 279.3 MB, free: 11.01 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.01315, allocations: 10.97 kB / 279.3 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.01316, allocations: 4.125 kB / 279.3 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003315/0.01349, allocations: 200.5 kB / 279.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001294/0.01362, allocations: 59.89 kB / 279.5 MB, free: 10.74 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001733/0.01535, allocations: 2.023 MB / 281.6 MB, free: 8.625 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001053/0.01546, allocations: 19.92 kB / 281.6 MB, free: 8.605 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.434e-05/0.01548, allocations: 12 kB / 281.6 MB, free: 8.594 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.0003534/0.01584, allocations: 132.7 kB / 281.7 MB, free: 8.453 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.806e-05/0.01588, allocations: 35.97 kB / 281.7 MB, free: 8.418 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.455e-05/0.01593, allocations: 46.92 kB / 281.8 MB, free: 8.371 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.01593, allocations: 4 kB / 281.8 MB, free: 8.367 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-06/0.01593, allocations: 0 / 281.8 MB, free: 8.367 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.01594, allocations: 0 / 281.8 MB, free: 8.367 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006587/0.0166, allocations: 0.5712 MB / 282.4 MB, free: 7.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.0166, allocations: 0 / 282.4 MB, free: 7.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001159/0.01671, allocations: 51.84 kB / 282.4 MB, free: 7.719 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000289/0.017, allocations: 184.8 kB / 282.6 MB, free: 7.535 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.008e-05/0.01702, allocations: 15.98 kB / 282.6 MB, free: 7.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00151/0.01853, allocations: 2.016 MB / 284.6 MB, free: 5.422 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.01853, allocations: 0 / 284.6 MB, free: 5.422 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000448/0.01898, allocations: 466.8 kB / 285.1 MB, free: 4.949 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.851e-05/0.01905, allocations: 39.8 kB / 285.1 MB, free: 4.91 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.791e-05/0.01908, allocations: 16.05 kB / 285.1 MB, free: 4.895 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.01918, allocations: 19.94 kB / 285.2 MB, free: 4.875 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.01929, allocations: 59.86 kB / 285.2 MB, free: 4.816 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.0193, allocations: 8 kB / 285.2 MB, free: 4.809 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.976e-05/0.01936, allocations: 68.67 kB / 285.3 MB, free: 4.738 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01936, allocations: 3.938 kB / 285.3 MB, free: 4.734 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003639/0.01973, allocations: 135.9 kB / 285.4 MB, free: 4.602 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.0001714/0.0199, allocations: 136.3 kB / 285.6 MB, free: 4.461 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000486/0.02038, allocations: 434.2 kB / 286 MB, free: 4.023 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.02039, allocations: 3.938 kB / 286 MB, free: 4.02 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002851/0.02067, allocations: 346.6 kB / 286.3 MB, free: 3.664 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002135/0.02089, allocations: 55.86 kB / 286.4 MB, free: 3.609 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008361/0.02172, allocations: 0.5705 MB / 287 MB, free: 3.008 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.025e-05/0.02179, allocations: 105.3 kB / 287.1 MB, free: 2.887 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.68e-05/0.02188, allocations: 30.98 kB / 287.1 MB, free: 2.859 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.02199, allocations: 103.3 kB / 287.2 MB, free: 2.758 MB / 266.7 MB Notification: Performance of SimCode: time 9.32e-07/0.02199, allocations: 0 / 287.2 MB, free: 2.758 MB / 266.7 MB Notification: Performance of Templates: time 0.1011/0.123, allocations: 7.101 MB / 294.3 MB, free: 29.11 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 -s gbode -gbm=radauIIA3 -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.6529208538122475]