Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001029/0.001029, allocations: 79.69 kB / 21.7 MB, free: 2.852 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00108/0.00108, allocations: 161 kB / 24.99 MB, free: 8.805 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9262/0.9262, allocations: 177 MB / 205.2 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.498e-06/4.498e-06, allocations: 3.984 kB / 273 MB, free: 1.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.132e-05/2.582e-05, allocations: 2.312 kB / 273 MB, free: 1.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00297/0.002996, allocations: 2.469 MB / 275.4 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001245/0.004241, allocations: 1.03 MB / 276.5 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.004343, allocations: 7.938 kB / 276.5 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002401/0.004583, allocations: 63.38 kB / 276.5 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003259/0.004909, allocations: 161.3 kB / 276.7 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002689/0.005178, allocations: 171.6 kB / 276.9 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003502/0.005528, allocations: 482.5 kB / 277.3 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.005647, allocations: 51.55 kB / 277.4 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002348/0.005881, allocations: 271.5 kB / 277.7 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002187/0.0061, allocations: 211.5 kB / 277.9 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.656e-05/0.006147, allocations: 40 kB / 277.9 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001689/0.006316, allocations: 119.8 kB / 278 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001053/0.006421, allocations: 119.7 kB / 278.1 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.682e-05/0.006518, allocations: 131.7 kB / 278.3 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004105/0.006928, allocations: 406.6 kB / 278.7 MB, free: 12.1 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.006931, allocations: 4 kB / 278.7 MB, free: 12.09 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.006932, allocations: 0 / 278.7 MB, free: 12.09 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.518e-06/0.006936, allocations: 0 / 278.7 MB, free: 12.09 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.0007966/0.007733, allocations: 0.6906 MB / 279.4 MB, free: 11.37 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.007767, allocations: 11.98 kB / 279.4 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002348/0.008001, allocations: 76.67 kB / 279.4 MB, free: 11.28 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003072/0.008309, allocations: 257.6 kB / 279.7 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001117/0.00842, allocations: 144 kB / 279.8 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.256e-05/0.008463, allocations: 24.38 kB / 279.9 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000438/0.008901, allocations: 344.2 kB / 280.2 MB, free: 10.44 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.008914, allocations: 8.078 kB / 280.2 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.808e-05/0.008942, allocations: 20.12 kB / 280.2 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.00895, allocations: 12 kB / 280.2 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003416/0.009292, allocations: 239.6 kB / 280.5 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00133/0.01062, allocations: 1.12 MB / 281.6 MB, free: 8.996 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003896/0.01101, allocations: 238.8 kB / 281.8 MB, free: 8.75 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001571/0.01117, allocations: 107.6 kB / 281.9 MB, free: 8.641 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.735e-05/0.0112, allocations: 8 kB / 281.9 MB, free: 8.633 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.33e-05/0.01122, allocations: 41.39 kB / 282 MB, free: 8.582 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.533e-06/0.01122, allocations: 0 / 282 MB, free: 8.582 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.002403/0.01362, allocations: 1.336 MB / 283.3 MB, free: 7.18 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.231e-05/0.01367, allocations: 96.73 kB / 283.4 MB, free: 7.066 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000186/0.01385, allocations: 257.9 kB / 283.7 MB, free: 6.797 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.715e-05/0.01388, allocations: 33.7 kB / 283.7 MB, free: 6.758 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.029e-05/0.01396, allocations: 199.4 kB / 283.9 MB, free: 6.555 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.239e-05/0.01404, allocations: 150.9 kB / 284 MB, free: 6.406 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.922e-05/0.01414, allocations: 91.83 kB / 284.1 MB, free: 6.309 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.01426, allocations: 0.504 MB / 284.6 MB, free: 5.793 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000156/0.01441, allocations: 92.94 kB / 284.7 MB, free: 5.699 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001913/0.01461, allocations: 201.2 kB / 284.9 MB, free: 5.473 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002933/0.0149, allocations: 234.3 kB / 285.1 MB, free: 5.223 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.0149, allocations: 0 / 285.1 MB, free: 5.223 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005385/0.01544, allocations: 413.1 kB / 285.5 MB, free: 4.812 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.01545, allocations: 7.938 kB / 285.6 MB, free: 4.805 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.01546, allocations: 4 kB / 285.6 MB, free: 4.801 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000438/0.0159, allocations: 235.4 kB / 285.8 MB, free: 4.566 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001427/0.01604, allocations: 59.89 kB / 285.8 MB, free: 4.508 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002219/0.01826, allocations: 2.88 MB / 288.7 MB, free: 1.508 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000119/0.01838, allocations: 16 kB / 288.7 MB, free: 1.492 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.967e-05/0.01841, allocations: 15.98 kB / 288.8 MB, free: 1.477 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.01852, allocations: 180.5 kB / 288.9 MB, free: 1.289 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.679e-05/0.01859, allocations: 47.83 kB / 289 MB, free: 1.242 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.807e-05/0.01864, allocations: 42.98 kB / 289 MB, free: 1.199 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.818e-06/0.01865, allocations: 4 kB / 289 MB, free: 1.195 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.464e-06/0.01865, allocations: 0 / 289 MB, free: 1.195 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.01865, allocations: 3.984 kB / 289 MB, free: 1.191 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009606/0.01962, allocations: 0.8497 MB / 289.9 MB, free: 304 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.01962, allocations: 4 kB / 289.9 MB, free: 300 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001299/0.01975, allocations: 39.97 kB / 289.9 MB, free: 260 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003631/0.02011, allocations: 223.5 kB / 290.1 MB, free: 32 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.493e-05/0.02014, allocations: 15.98 kB / 290.2 MB, free: 16 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002114/0.02225, allocations: 2.863 MB / 293 MB, free: 13.04 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.02225, allocations: 3.938 kB / 293 MB, free: 13.04 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007481/0.023, allocations: 0.6234 MB / 293.6 MB, free: 12.39 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.354e-05/0.02309, allocations: 71.73 kB / 293.7 MB, free: 12.32 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.448e-05/0.02313, allocations: 8 kB / 293.7 MB, free: 12.31 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001247/0.02325, allocations: 19.98 kB / 293.7 MB, free: 12.29 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001179/0.02337, allocations: 59.86 kB / 293.8 MB, free: 12.23 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.273e-05/0.02339, allocations: 19.98 kB / 293.8 MB, free: 12.21 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001079/0.0235, allocations: 192.1 kB / 294 MB, free: 12.02 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0235, allocations: 0 / 294 MB, free: 12.02 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003921/0.02389, allocations: 144 kB / 294.1 MB, free: 11.88 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.0008285/0.02472, allocations: 350.2 kB / 294.5 MB, free: 11.62 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008676/0.02559, allocations: 0.5546 MB / 295 MB, free: 11.05 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.02559, allocations: 0 / 295 MB, free: 11.05 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004943/0.02609, allocations: 436.1 kB / 295.5 MB, free: 10.6 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003882/0.02647, allocations: 67.95 kB / 295.5 MB, free: 10.54 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001269/0.02774, allocations: 0.6202 MB / 296.2 MB, free: 9.883 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.515e-05/0.02784, allocations: 109.2 kB / 296.3 MB, free: 9.758 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001797/0.02802, allocations: 66.92 kB / 296.3 MB, free: 9.695 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.653e-05/0.02811, allocations: 40.47 kB / 296.4 MB, free: 9.656 MB / 282.7 MB Notification: Performance of SimCode: time 6.51e-07/0.02812, allocations: 0 / 296.4 MB, free: 9.656 MB / 282.7 MB Notification: Performance of Templates: time 0.01083/0.03895, allocations: 7.129 MB / 303.5 MB, free: 2.566 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.9760132550727576]