Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.0007546/0.0007546, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.0008589/0.0008589, allocations: 160.9 kB / 24.91 MB, free: 8.719 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.932/0.932, allocations: 177 MB / 205.2 MB, free: 5.035 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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.144e-06/2.144e-06, allocations: 0 / 273.4 MB, free: 1.078 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.56e-05/2.774e-05, allocations: 5.266 kB / 273.4 MB, free: 1.074 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004089/0.004117, allocations: 2.538 MB / 275.9 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002059/0.006176, allocations: 1.134 MB / 277 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001626/0.006339, allocations: 7.938 kB / 277 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003093/0.006648, allocations: 63.44 kB / 277.1 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000516/0.007164, allocations: 183.8 kB / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003498/0.007514, allocations: 183.5 kB / 277.5 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005634/0.008077, allocations: 0.5256 MB / 278 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001828/0.00826, allocations: 71.08 kB / 278.1 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005119/0.008772, allocations: 319.4 kB / 278.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004542/0.009226, allocations: 227.5 kB / 278.6 MB, free: 11.81 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.831e-05/0.009315, allocations: 44 kB / 278.6 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002629/0.009577, allocations: 131.8 kB / 278.8 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001369/0.009714, allocations: 127.6 kB / 278.9 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000156/0.00987, allocations: 147.7 kB / 279 MB, free: 11.37 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005927/0.01046, allocations: 442.5 kB / 279.5 MB, free: 10.94 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.01047, allocations: 0 / 279.5 MB, free: 10.94 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.01047, allocations: 0 / 279.5 MB, free: 10.94 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.01047, allocations: 4 kB / 279.5 MB, free: 10.93 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.001038/0.01151, allocations: 0.6008 MB / 280.1 MB, free: 10.31 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.01155, allocations: 11.98 kB / 280.1 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002959/0.01185, allocations: 88.86 kB / 280.2 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000384/0.01223, allocations: 229.9 kB / 280.4 MB, free: 9.957 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001549/0.01238, allocations: 144 kB / 280.5 MB, free: 9.793 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.236e-05/0.01246, allocations: 32.33 kB / 280.6 MB, free: 9.762 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005175/0.01297, allocations: 330 kB / 280.9 MB, free: 9.418 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.01299, allocations: 4.188 kB / 280.9 MB, free: 9.414 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.645e-05/0.01303, allocations: 12.12 kB / 280.9 MB, free: 9.402 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.01304, allocations: 12 kB / 280.9 MB, free: 9.391 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004264/0.01347, allocations: 203.2 kB / 281.1 MB, free: 9.191 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001285/0.01475, allocations: 0.5673 MB / 281.7 MB, free: 8.605 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004274/0.01518, allocations: 213.1 kB / 281.9 MB, free: 8.391 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000174/0.01536, allocations: 102.2 kB / 282 MB, free: 8.289 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.638e-05/0.01539, allocations: 8.5 kB / 282 MB, free: 8.277 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.01542, allocations: 39.06 kB / 282 MB, free: 8.23 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 2.034e-06/0.01542, allocations: 0 / 282 MB, free: 8.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.002966/0.01839, allocations: 1.283 MB / 283.3 MB, free: 6.898 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.746e-05/0.01844, allocations: 85.61 kB / 283.4 MB, free: 6.797 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001972/0.01863, allocations: 209.1 kB / 283.6 MB, free: 6.574 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.028e-05/0.01868, allocations: 37.7 kB / 283.6 MB, free: 6.531 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.972e-05/0.01874, allocations: 133.1 kB / 283.8 MB, free: 6.398 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001428/0.01889, allocations: 190.4 kB / 284 MB, free: 6.211 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001451/0.01903, allocations: 94.12 kB / 284.1 MB, free: 6.109 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.01915, allocations: 350.7 kB / 284.4 MB, free: 5.758 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000167/0.01931, allocations: 63.8 kB / 284.5 MB, free: 5.695 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001827/0.0195, allocations: 141.7 kB / 284.6 MB, free: 5.547 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003212/0.01982, allocations: 209.1 kB / 284.8 MB, free: 5.332 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.01982, allocations: 0 / 284.8 MB, free: 5.332 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0005352/0.02036, allocations: 302.9 kB / 285.1 MB, free: 5.027 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.02037, allocations: 8.031 kB / 285.1 MB, free: 5.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.02038, allocations: 0 / 285.1 MB, free: 5.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005312/0.02091, allocations: 218.5 kB / 285.3 MB, free: 4.805 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002368/0.02115, allocations: 59.95 kB / 285.4 MB, free: 4.746 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002656/0.0238, allocations: 2.059 MB / 287.4 MB, free: 2.598 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001977/0.024, allocations: 23.98 kB / 287.5 MB, free: 2.574 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.558e-05/0.02405, allocations: 15.98 kB / 287.5 MB, free: 2.559 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.0001604/0.02421, allocations: 144.4 kB / 287.6 MB, free: 2.41 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.678e-05/0.02429, allocations: 35.97 kB / 287.7 MB, free: 2.375 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.761e-05/0.02436, allocations: 47.3 kB / 287.7 MB, free: 2.332 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.02437, allocations: 8 kB / 287.7 MB, free: 2.324 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.02437, allocations: 0 / 287.7 MB, free: 2.324 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.02438, allocations: 4.031 kB / 287.7 MB, free: 2.32 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001275/0.02565, allocations: 0.6675 MB / 288.4 MB, free: 1.617 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.02566, allocations: 0 / 288.4 MB, free: 1.617 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000256/0.02591, allocations: 67.89 kB / 288.4 MB, free: 1.551 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000509/0.02642, allocations: 219.4 kB / 288.7 MB, free: 1.332 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.9e-05/0.02646, allocations: 19.92 kB / 288.7 MB, free: 1.312 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1305/0.157, allocations: 1.994 MB / 290.7 MB, free: 23.86 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.157, allocations: 0 / 290.7 MB, free: 23.86 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007231/0.1577, allocations: 0.5022 MB / 291.2 MB, free: 23.71 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001061/0.1578, allocations: 51.41 kB / 291.2 MB, free: 23.71 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.217e-05/0.1579, allocations: 12.73 kB / 291.2 MB, free: 23.71 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001619/0.158, allocations: 20.73 kB / 291.3 MB, free: 23.71 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.1582, allocations: 72.5 kB / 291.3 MB, free: 23.71 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.668e-05/0.1582, allocations: 18.64 kB / 291.3 MB, free: 23.71 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.048e-05/0.1583, allocations: 67.19 kB / 291.4 MB, free: 23.7 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1583, allocations: 1.078 kB / 291.4 MB, free: 23.7 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004859/0.1588, allocations: 152.2 kB / 291.6 MB, free: 23.7 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.001025/0.1598, allocations: 453.9 kB / 292 MB, free: 23.6 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006736/0.1605, allocations: 479.8 kB / 292.5 MB, free: 23.45 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.1605, allocations: 1.062 kB / 292.5 MB, free: 23.45 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003478/0.1608, allocations: 377.8 kB / 292.8 MB, free: 23.3 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002509/0.1611, allocations: 75.61 kB / 292.9 MB, free: 23.3 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001072/0.1621, allocations: 0.6785 MB / 293.6 MB, free: 22.99 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000106/0.1623, allocations: 114.6 kB / 293.7 MB, free: 22.91 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001362/0.1624, allocations: 61.83 kB / 293.8 MB, free: 22.91 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001592/0.1626, allocations: 102.3 kB / 293.9 MB, free: 22.86 MB / 266.7 MB Notification: Performance of SimCode: time 8.62e-07/0.1626, allocations: 0 / 293.9 MB, free: 22.86 MB / 266.7 MB Notification: Performance of Templates: time 0.01201/0.1746, allocations: 8.232 MB / 302.1 MB, free: 20.6 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.8653491591103375]