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.001455/0.001455, allocations: 92.27 kB / 20.96 MB, free: 3.441 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.001609/0.001609, allocations: 156.9 kB / 24.26 MB, free: 148 kB / 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 1.532/1.532, allocations: 177 MB / 204.4 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 178] 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.315e-06/2.315e-06, allocations: 0 / 272.2 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.231e-05/4.462e-05, allocations: 2.312 kB / 272.2 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.007069/0.007113, allocations: 2.417 MB / 274.6 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00376/0.01087, allocations: 1.088 MB / 275.7 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002602/0.01113, allocations: 4 kB / 275.7 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004402/0.01157, allocations: 59.44 kB / 275.7 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008493/0.01242, allocations: 187 kB / 275.9 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007423/0.01316, allocations: 179.6 kB / 276.1 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001009/0.01417, allocations: 0.5334 MB / 276.6 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002817/0.01446, allocations: 65.11 kB / 276.7 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008211/0.01528, allocations: 319.3 kB / 277 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005744/0.01585, allocations: 231.5 kB / 277.2 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001309/0.01598, allocations: 44 kB / 277.3 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000424/0.01641, allocations: 131.8 kB / 277.4 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002543/0.01666, allocations: 127.6 kB / 277.5 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003003/0.01696, allocations: 147.6 kB / 277.7 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001304/0.01826, allocations: 0.5842 MB / 278.3 MB, free: 11.72 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.01827, allocations: 4 kB / 278.3 MB, free: 11.71 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.01827, allocations: 0 / 278.3 MB, free: 11.71 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.689e-06/0.01828, allocations: 0 / 278.3 MB, free: 11.71 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.002298/0.02058, allocations: 0.6336 MB / 278.9 MB, free: 11.05 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.435e-05/0.02064, allocations: 11.98 kB / 278.9 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007961/0.02144, allocations: 92.67 kB / 279 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009329/0.02237, allocations: 260.9 kB / 279.3 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003028/0.02268, allocations: 148 kB / 279.4 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001276/0.0228, allocations: 36.33 kB / 279.4 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001508/0.02431, allocations: 447.1 kB / 279.9 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.405e-05/0.02434, allocations: 4.188 kB / 279.9 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.703e-05/0.02441, allocations: 16.12 kB / 279.9 MB, free: 9.988 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.617e-05/0.02443, allocations: 8 kB / 279.9 MB, free: 9.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001909/0.02634, allocations: 474.2 kB / 280.4 MB, free: 9.52 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002915/0.02925, allocations: 0.8001 MB / 281.2 MB, free: 8.688 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001571/0.03082, allocations: 365.4 kB / 281.5 MB, free: 8.324 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000892/0.03171, allocations: 210.2 kB / 281.7 MB, free: 8.117 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.367e-05/0.03177, allocations: 8.5 kB / 281.7 MB, free: 8.109 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.657e-05/0.03183, allocations: 39.06 kB / 281.8 MB, free: 8.062 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 2.655e-06/0.03183, allocations: 4 kB / 281.8 MB, free: 8.059 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.00723/0.03906, allocations: 1.922 MB / 283.7 MB, free: 6.082 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.695e-05/0.03913, allocations: 81.61 kB / 283.8 MB, free: 5.984 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004254/0.03956, allocations: 255.8 kB / 284 MB, free: 5.723 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.453e-05/0.03963, allocations: 41.7 kB / 284.1 MB, free: 5.676 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00013/0.03976, allocations: 149.1 kB / 284.2 MB, free: 5.527 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002009/0.03997, allocations: 186.3 kB / 284.4 MB, free: 5.344 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002235/0.04019, allocations: 94.16 kB / 284.5 MB, free: 5.246 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001982/0.04039, allocations: 338.8 kB / 284.8 MB, free: 4.906 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005293/0.04092, allocations: 192.8 kB / 285 MB, free: 4.719 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005932/0.04151, allocations: 265.7 kB / 285.3 MB, free: 4.445 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00104/0.04255, allocations: 383.6 kB / 285.6 MB, free: 4.066 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.04255, allocations: 0 / 285.6 MB, free: 4.066 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001564/0.04412, allocations: 0.6199 MB / 286.3 MB, free: 3.434 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.04414, allocations: 4 kB / 286.3 MB, free: 3.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.367e-06/0.04415, allocations: 4 kB / 286.3 MB, free: 3.426 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009373/0.04508, allocations: 298.6 kB / 286.6 MB, free: 3.133 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003616/0.04544, allocations: 71.88 kB / 286.6 MB, free: 3.062 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004963/0.05041, allocations: 2.786 MB / 289.4 MB, free: 176 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003807/0.05079, allocations: 32 kB / 289.5 MB, free: 144 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.041e-05/0.05086, allocations: 19.98 kB / 289.5 MB, free: 124 kB / 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.114/0.1649, allocations: 155.2 kB / 289.6 MB, free: 28.16 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002507/0.1651, allocations: 47.47 kB / 289.7 MB, free: 28.16 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001806/0.1653, allocations: 48.53 kB / 289.7 MB, free: 28.15 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/0.1653, allocations: 5.781 kB / 289.7 MB, free: 28.15 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.916e-06/0.1653, allocations: 5.281 kB / 289.7 MB, free: 28.15 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.1653, allocations: 6.047 kB / 289.7 MB, free: 28.15 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002877/0.1682, allocations: 1.127 MB / 290.9 MB, free: 27.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.221e-06/0.1682, allocations: 0 / 290.9 MB, free: 27.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003963/0.1686, allocations: 72.11 kB / 290.9 MB, free: 27.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00105/0.1696, allocations: 289.3 kB / 291.2 MB, free: 27.9 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.927e-05/0.1697, allocations: 18.14 kB / 291.2 MB, free: 27.9 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004343/0.1741, allocations: 2.694 MB / 293.9 MB, free: 26.03 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.1741, allocations: 1.719 kB / 293.9 MB, free: 26.03 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002737/0.1768, allocations: 0.9584 MB / 294.9 MB, free: 25.58 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002713/0.1771, allocations: 76.06 kB / 295 MB, free: 25.55 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.504e-05/0.1772, allocations: 15.14 kB / 295 MB, free: 25.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003531/0.1775, allocations: 28.67 kB / 295 MB, free: 25.53 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002406/0.1777, allocations: 73.66 kB / 295.1 MB, free: 25.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.659e-05/0.1778, allocations: 23.84 kB / 295.1 MB, free: 25.51 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002841/0.1781, allocations: 190.2 kB / 295.3 MB, free: 25.41 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1781, allocations: 3.531 kB / 295.3 MB, free: 25.41 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007897/0.1789, allocations: 148.8 kB / 295.4 MB, free: 25.39 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.00177/0.1807, allocations: 395.2 kB / 295.8 MB, free: 25.29 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001692/0.1823, allocations: 0.6683 MB / 296.5 MB, free: 24.97 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.1823, allocations: 1.5 kB / 296.5 MB, free: 24.97 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00104/0.1834, allocations: 467 kB / 296.9 MB, free: 24.72 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005873/0.184, allocations: 78.92 kB / 297 MB, free: 24.7 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001929/0.1859, allocations: 0.7669 MB / 297.8 MB, free: 24.29 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002818/0.1862, allocations: 191 kB / 298 MB, free: 24.2 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002835/0.1865, allocations: 81 kB / 298.1 MB, free: 24.18 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001561/0.1866, allocations: 41.39 kB / 298.1 MB, free: 24.17 MB / 266.7 MB Notification: Performance of SimCode: time 1.363e-06/0.1866, allocations: 1 kB / 298.1 MB, free: 24.17 MB / 266.7 MB Notification: Performance of Templates: time 0.01502/0.2016, allocations: 7.564 MB / 305.7 MB, free: 20.89 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.717957390937954]