Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.001333/0.001333, 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.001397/0.001397, allocations: 163.6 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.9273/0.9273, allocations: 177.1 MB / 205.3 MB, free: 5.629 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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 273 MB, free: 1.855 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.513e-05/1.65e-05, allocations: 2.312 kB / 273 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.006293/0.00631, allocations: 2.48 MB / 275.5 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004367/0.01068, allocations: 1.018 MB / 276.5 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00012/0.0108, allocations: 8 kB / 276.5 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002379/0.01103, allocations: 71.36 kB / 276.6 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000298/0.01133, allocations: 155.3 kB / 276.8 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002296/0.01156, allocations: 163.6 kB / 276.9 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003234/0.01189, allocations: 478.5 kB / 277.4 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.01201, allocations: 48.84 kB / 277.4 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002049/0.01221, allocations: 275.5 kB / 277.7 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002161/0.01243, allocations: 211.6 kB / 277.9 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.392e-05/0.01247, allocations: 36 kB / 278 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001497/0.01262, allocations: 131.8 kB / 278.1 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.938e-05/0.01271, allocations: 103.7 kB / 278.2 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.879e-05/0.0128, allocations: 139.7 kB / 278.3 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003553/0.01315, allocations: 406.6 kB / 278.7 MB, free: 12.16 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.01316, allocations: 4 kB / 278.7 MB, free: 12.15 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.01316, allocations: 0 / 278.7 MB, free: 12.15 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.038e-06/0.01316, allocations: 0 / 278.7 MB, free: 12.15 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0007553/0.01392, allocations: 0.6944 MB / 279.4 MB, free: 11.42 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.019e-05/0.01395, allocations: 8.031 kB / 279.4 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002236/0.01417, allocations: 76.73 kB / 279.5 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003068/0.01448, allocations: 257.5 kB / 279.7 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.826e-05/0.01458, allocations: 144 kB / 279.9 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.157e-05/0.01462, allocations: 28.38 kB / 279.9 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000395/0.01501, allocations: 344.3 kB / 280.3 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.01503, allocations: 12.08 kB / 280.3 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.536e-05/0.01505, allocations: 16.12 kB / 280.3 MB, free: 10.47 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.01506, allocations: 8 kB / 280.3 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003372/0.0154, allocations: 247.7 kB / 280.5 MB, free: 10.22 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001151/0.01655, allocations: 1.12 MB / 281.7 MB, free: 9.047 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003354/0.01689, allocations: 229.9 kB / 281.9 MB, free: 8.812 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001523/0.01704, allocations: 111.6 kB / 282 MB, free: 8.699 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.519e-05/0.01706, allocations: 11.94 kB / 282 MB, free: 8.688 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.154e-05/0.01708, allocations: 37.39 kB / 282 MB, free: 8.641 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.262e-06/0.01709, allocations: 0 / 282 MB, free: 8.641 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.002508/0.01959, allocations: 1.348 MB / 283.4 MB, free: 7.227 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.734e-05/0.01963, allocations: 92.8 kB / 283.5 MB, free: 7.117 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001759/0.01981, allocations: 261.6 kB / 283.7 MB, free: 6.844 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.797e-05/0.01983, allocations: 37.7 kB / 283.8 MB, free: 6.801 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.384e-05/0.01991, allocations: 187.5 kB / 283.9 MB, free: 6.609 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.83e-05/0.01999, allocations: 154.9 kB / 284.1 MB, free: 6.457 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.555e-05/0.02008, allocations: 91.83 kB / 284.2 MB, free: 6.359 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.0202, allocations: 0.5118 MB / 284.7 MB, free: 5.836 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001485/0.02034, allocations: 84.94 kB / 284.8 MB, free: 5.75 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001827/0.02053, allocations: 197.2 kB / 285 MB, free: 5.527 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002781/0.02081, allocations: 234.3 kB / 285.2 MB, free: 5.277 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.02081, allocations: 4 kB / 285.2 MB, free: 5.273 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005253/0.02133, allocations: 405 kB / 285.6 MB, free: 4.867 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.02135, allocations: 11.94 kB / 285.6 MB, free: 4.855 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.02135, allocations: 0 / 285.6 MB, free: 4.855 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004172/0.02177, allocations: 244.2 kB / 285.9 MB, free: 4.613 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.0219, allocations: 47.91 kB / 285.9 MB, free: 4.566 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002112/0.02401, allocations: 2.876 MB / 288.8 MB, free: 1.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001159/0.02413, allocations: 19.98 kB / 288.8 MB, free: 1.551 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.821e-05/0.02416, allocations: 23.98 kB / 288.8 MB, free: 1.527 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.0001033/0.02426, allocations: 176.5 kB / 289 MB, free: 1.344 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.88e-05/0.02433, allocations: 47.8 kB / 289 MB, free: 1.297 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.347e-05/0.02437, allocations: 42.98 kB / 289.1 MB, free: 1.254 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.02437, allocations: 4 kB / 289.1 MB, free: 1.25 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.02438, allocations: 0 / 289.1 MB, free: 1.25 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.02438, allocations: 3.984 kB / 289.1 MB, free: 1.246 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0012/0.02558, allocations: 0.8613 MB / 289.9 MB, free: 348 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.02558, allocations: 4 kB / 290 MB, free: 344 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001285/0.02571, allocations: 47.91 kB / 290 MB, free: 296 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000352/0.02606, allocations: 219.5 kB / 290.2 MB, free: 72 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.347e-05/0.02609, allocations: 11.98 kB / 290.2 MB, free: 60 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002/0.02809, allocations: 2.859 MB / 293.1 MB, free: 13.09 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.02809, allocations: 4 kB / 293.1 MB, free: 13.08 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006805/0.02877, allocations: 0.6157 MB / 293.7 MB, free: 12.44 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.025e-05/0.02886, allocations: 71.73 kB / 293.8 MB, free: 12.37 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.433e-05/0.02889, allocations: 12 kB / 293.8 MB, free: 12.36 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001246/0.02902, allocations: 19.97 kB / 293.8 MB, free: 12.34 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.02913, allocations: 67.86 kB / 293.9 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.988e-05/0.02915, allocations: 16.05 kB / 293.9 MB, free: 12.26 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001006/0.02925, allocations: 191.1 kB / 294.1 MB, free: 12.07 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02925, allocations: 0 / 294.1 MB, free: 12.07 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003556/0.0296, allocations: 131.9 kB / 294.2 MB, free: 11.94 MB / 282.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.0006731/0.03028, allocations: 371.3 kB / 294.6 MB, free: 11.68 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006213/0.0309, allocations: 0.5467 MB / 295.1 MB, free: 11.12 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.0309, allocations: 0 / 295.1 MB, free: 11.12 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003568/0.03126, allocations: 436.4 kB / 295.5 MB, free: 10.67 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002635/0.03152, allocations: 79.45 kB / 295.6 MB, free: 10.6 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008918/0.03241, allocations: 0.6201 MB / 296.2 MB, free: 9.945 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.665e-05/0.03248, allocations: 113.2 kB / 296.3 MB, free: 9.812 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001298/0.03261, allocations: 66.91 kB / 296.4 MB, free: 9.75 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.42e-05/0.03268, allocations: 40.47 kB / 296.5 MB, free: 9.711 MB / 282.7 MB Notification: Performance of SimCode: time 5.81e-07/0.03268, allocations: 0 / 296.5 MB, free: 9.711 MB / 282.7 MB Notification: Performance of Templates: time 0.008171/0.04085, allocations: 7.122 MB / 303.6 MB, free: 2.637 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.896591997006908]