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.002543/0.002543, allocations: 95.61 kB / 20.96 MB, free: 3.457 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.003078/0.003078, allocations: 161.3 kB / 24.27 MB, free: 152 kB / 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 1.603/1.603, allocations: 177.1 MB / 204.6 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 178] 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.363e-06/1.363e-06, allocations: 0 / 272.3 MB, free: 1.879 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.199e-05/2.335e-05, allocations: 2.312 kB / 272.3 MB, free: 1.875 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004442/0.004465, allocations: 2.45 MB / 274.7 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001988/0.006453, allocations: 1.03 MB / 275.8 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001069/0.00656, allocations: 4 kB / 275.8 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002746/0.006834, allocations: 63.38 kB / 275.8 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004161/0.00725, allocations: 155.4 kB / 276 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000383/0.007633, allocations: 163.6 kB / 276.2 MB, free: 14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006326/0.008266, allocations: 482.5 kB / 276.6 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000188/0.008454, allocations: 48.89 kB / 276.7 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004468/0.008901, allocations: 275.5 kB / 276.9 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003788/0.00928, allocations: 215.5 kB / 277.2 MB, free: 13 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.729e-05/0.009367, allocations: 40 kB / 277.2 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002612/0.009628, allocations: 119.9 kB / 277.3 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001563/0.009784, allocations: 107.7 kB / 277.4 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001777/0.009962, allocations: 135.7 kB / 277.5 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007496/0.01071, allocations: 0.5334 MB / 278.1 MB, free: 12.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.01071, allocations: 4 kB / 278.1 MB, free: 12.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.01072, allocations: 0 / 278.1 MB, free: 12.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.01072, allocations: 3.938 kB / 278.1 MB, free: 12.06 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.001361/0.01208, allocations: 0.6904 MB / 278.8 MB, free: 11.34 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.01212, allocations: 12.02 kB / 278.8 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003871/0.01251, allocations: 76.69 kB / 278.9 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005265/0.01303, allocations: 261.6 kB / 279.1 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001871/0.01322, allocations: 136 kB / 279.3 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.653e-05/0.01329, allocations: 32.38 kB / 279.3 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008181/0.01411, allocations: 408.3 kB / 279.7 MB, free: 10.35 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.13e-05/0.01413, allocations: 4.141 kB / 279.7 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.471e-05/0.01417, allocations: 16.12 kB / 279.7 MB, free: 10.33 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.01418, allocations: 8 kB / 279.7 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009212/0.0151, allocations: 374.3 kB / 280.1 MB, free: 9.957 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002419/0.01752, allocations: 1.235 MB / 281.3 MB, free: 8.668 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007515/0.01827, allocations: 311 kB / 281.6 MB, free: 8.352 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006298/0.0189, allocations: 168.3 kB / 281.8 MB, free: 8.184 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.961e-05/0.01894, allocations: 4 kB / 281.8 MB, free: 8.18 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.257e-05/0.01899, allocations: 49.28 kB / 281.8 MB, free: 8.121 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.453e-06/0.01899, allocations: 0 / 281.8 MB, free: 8.121 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.00505/0.02404, allocations: 1.617 MB / 283.4 MB, free: 6.438 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.741e-05/0.02411, allocations: 92.8 kB / 283.5 MB, free: 6.328 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004019/0.02452, allocations: 297.6 kB / 283.8 MB, free: 6.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.679e-05/0.02456, allocations: 33.7 kB / 283.9 MB, free: 5.98 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001537/0.02472, allocations: 195.5 kB / 284.1 MB, free: 5.785 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/0.02488, allocations: 158.9 kB / 284.2 MB, free: 5.629 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001851/0.02506, allocations: 103.7 kB / 284.3 MB, free: 5.52 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002977/0.02536, allocations: 0.5196 MB / 284.8 MB, free: 4.988 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003838/0.02575, allocations: 144.9 kB / 285 MB, free: 4.848 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004915/0.02624, allocations: 257.2 kB / 285.2 MB, free: 4.562 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007637/0.027, allocations: 334.3 kB / 285.5 MB, free: 4.215 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.027, allocations: 0 / 285.5 MB, free: 4.215 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00128/0.02828, allocations: 0.5284 MB / 286.1 MB, free: 3.676 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.0283, allocations: 7.938 kB / 286.1 MB, free: 3.668 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.02831, allocations: 0 / 286.1 MB, free: 3.668 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008613/0.02917, allocations: 272.1 kB / 286.3 MB, free: 3.398 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002701/0.02944, allocations: 51.97 kB / 286.4 MB, free: 3.348 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1082/0.1376, allocations: 3.358 MB / 289.8 MB, free: 26.85 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003378/0.138, allocations: 17.94 kB / 289.8 MB, free: 26.85 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.177e-05/0.138, allocations: 20.64 kB / 289.8 MB, free: 26.85 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.0001661/0.1382, allocations: 191.4 kB / 290 MB, free: 26.69 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.1383, allocations: 47.86 kB / 290 MB, free: 26.69 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001029/0.1384, allocations: 41.86 kB / 290.1 MB, free: 26.68 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.1384, allocations: 4.406 kB / 290.1 MB, free: 26.68 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.1384, allocations: 3.75 kB / 290.1 MB, free: 26.68 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.1384, allocations: 1.719 kB / 290.1 MB, free: 26.68 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001755/0.1402, allocations: 1.026 MB / 291.1 MB, free: 26.39 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.1402, allocations: 0.875 kB / 291.1 MB, free: 26.39 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002392/0.1404, allocations: 49.91 kB / 291.2 MB, free: 26.39 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000676/0.1411, allocations: 252.4 kB / 291.4 MB, free: 26.38 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.616e-05/0.1411, allocations: 16.95 kB / 291.4 MB, free: 26.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003253/0.1444, allocations: 3.312 MB / 294.7 MB, free: 24.05 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1444, allocations: 0.625 kB / 294.7 MB, free: 24.05 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001443/0.1458, allocations: 0.8375 MB / 295.6 MB, free: 23.63 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001668/0.146, allocations: 74.45 kB / 295.6 MB, free: 23.6 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.786e-05/0.146, allocations: 12.14 kB / 295.7 MB, free: 23.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002463/0.1463, allocations: 15.28 kB / 295.7 MB, free: 23.59 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001773/0.1465, allocations: 68.28 kB / 295.7 MB, free: 23.58 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.586e-05/0.1465, allocations: 21.45 kB / 295.8 MB, free: 23.57 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001966/0.1467, allocations: 210.5 kB / 296 MB, free: 23.43 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1467, allocations: 5.844 kB / 296 MB, free: 23.43 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005957/0.1473, allocations: 135 kB / 296.1 MB, free: 23.41 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.002456/0.1497, allocations: 406.1 kB / 296.5 MB, free: 23.31 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001244/0.151, allocations: 0.6626 MB / 297.2 MB, free: 22.96 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.151, allocations: 0 / 297.2 MB, free: 22.96 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007479/0.1517, allocations: 0.4883 MB / 297.6 MB, free: 22.68 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000501/0.1522, allocations: 74.92 kB / 297.7 MB, free: 22.66 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001245/0.1535, allocations: 0.6449 MB / 298.4 MB, free: 22.3 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001953/0.1537, allocations: 171.6 kB / 298.5 MB, free: 22.21 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.00022/0.1539, allocations: 72.55 kB / 298.6 MB, free: 22.19 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001285/0.154, allocations: 42.03 kB / 298.6 MB, free: 22.18 MB / 266.7 MB Notification: Performance of SimCode: time 8.81e-07/0.154, allocations: 0 / 298.6 MB, free: 22.18 MB / 266.7 MB Notification: Performance of Templates: time 0.01189/0.1659, allocations: 7.124 MB / 305.8 MB, free: 19.61 MB / 266.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.799862960004248]