Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.0007559/0.0007559, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009977/0.001754, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0006983/0.0006983, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008332/0.001532, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.9882/0.9882, allocations: 177.2 MB / 189.6 MB, free: 5.305 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07551/1.064, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_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_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.026e-05/1.155e-05, allocations: 12.86 kB / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002312/0.002324, allocations: 2.589 MB / 247.1 MB, free: 11.71 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.003642, allocations: 1.142 MB / 248.3 MB, free: 10.57 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.003746, allocations: 7.938 kB / 248.3 MB, free: 10.56 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001708/0.003917, allocations: 75.31 kB / 248.3 MB, free: 10.48 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002983/0.004215, allocations: 166.6 kB / 248.5 MB, free: 10.32 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002925/0.004508, allocations: 183.6 kB / 248.7 MB, free: 10.14 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007048/0.005212, allocations: 0.5217 MB / 249.2 MB, free: 9.621 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.005337, allocations: 67.09 kB / 249.3 MB, free: 9.551 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003583/0.005696, allocations: 348.1 kB / 249.6 MB, free: 9.211 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002192/0.005915, allocations: 227.5 kB / 249.8 MB, free: 8.988 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.817e-05/0.005963, allocations: 44 kB / 249.9 MB, free: 8.945 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001903/0.006153, allocations: 139.8 kB / 250 MB, free: 8.809 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.118e-05/0.006234, allocations: 79.8 kB / 250.1 MB, free: 8.73 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.227e-05/0.006327, allocations: 111.8 kB / 250.2 MB, free: 8.621 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003703/0.006697, allocations: 394.7 kB / 250.6 MB, free: 8.234 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.205e-05/0.006709, allocations: 0 / 250.6 MB, free: 8.234 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.006711, allocations: 4 kB / 250.6 MB, free: 8.23 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.224e-05/0.006723, allocations: 0 / 250.6 MB, free: 8.23 MB / 250.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.0008444/0.007567, allocations: 0.6748 MB / 251.3 MB, free: 7.531 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.982e-05/0.007597, allocations: 12.03 kB / 251.3 MB, free: 7.52 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002579/0.007855, allocations: 154 kB / 251.4 MB, free: 7.352 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000276/0.008131, allocations: 225.9 kB / 251.6 MB, free: 7.102 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.111e-05/0.008222, allocations: 148 kB / 251.8 MB, free: 6.934 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.313e-05/0.008275, allocations: 32.33 kB / 251.8 MB, free: 6.902 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003571/0.008633, allocations: 349.4 kB / 252.2 MB, free: 6.539 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.008644, allocations: 0 / 252.2 MB, free: 6.539 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.408e-05/0.008668, allocations: 16 kB / 252.2 MB, free: 6.523 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.595e-06/0.008675, allocations: 8 kB / 252.2 MB, free: 6.516 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002429/0.008918, allocations: 191.2 kB / 252.4 MB, free: 6.328 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007996/0.009718, allocations: 0.5906 MB / 253 MB, free: 5.719 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002735/0.009991, allocations: 201.2 kB / 253.2 MB, free: 5.516 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.01009, allocations: 86.33 kB / 253.2 MB, free: 5.43 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.86e-05/0.01012, allocations: 12.44 kB / 253.2 MB, free: 5.414 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.957e-05/0.01014, allocations: 39.06 kB / 253.3 MB, free: 5.367 MB / 250.7 MB Notification: Performance of pre-optimization done (n=49): time 1.233e-06/0.01014, allocations: 0 / 253.3 MB, free: 5.367 MB / 250.7 MB Notification: Performance of matching and sorting (n=55): time 0.001895/0.01204, allocations: 1.283 MB / 254.6 MB, free: 4.035 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.487e-05/0.01206, allocations: 63.84 kB / 254.6 MB, free: 3.961 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001236/0.01219, allocations: 213.1 kB / 254.8 MB, free: 3.734 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.021e-05/0.01222, allocations: 41.7 kB / 254.9 MB, free: 3.688 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.441e-05/0.01226, allocations: 125.1 kB / 255 MB, free: 3.562 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001/0.01236, allocations: 198.3 kB / 255.2 MB, free: 3.367 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.022e-05/0.01245, allocations: 94.08 kB / 255.3 MB, free: 3.266 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.223e-05/0.01252, allocations: 338.8 kB / 255.6 MB, free: 2.926 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.269e-05/0.01262, allocations: 67.8 kB / 255.7 MB, free: 2.859 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001132/0.01273, allocations: 137.7 kB / 255.8 MB, free: 2.711 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004405/0.01317, allocations: 205.2 kB / 256 MB, free: 2.5 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.01317, allocations: 4.031 kB / 256 MB, free: 2.496 MB / 250.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0003102/0.01348, allocations: 306.8 kB / 256.3 MB, free: 2.191 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/0.01349, allocations: 4 kB / 256.3 MB, free: 2.188 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.247e-06/0.0135, allocations: 0 / 256.3 MB, free: 2.188 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003397/0.01384, allocations: 214.5 kB / 256.5 MB, free: 1.977 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001726/0.01401, allocations: 79.88 kB / 256.6 MB, free: 1.898 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001629/0.01564, allocations: 2.079 MB / 258.7 MB, free: 15.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001472/0.01579, allocations: 23.94 kB / 258.7 MB, free: 15.71 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.837e-05/0.01582, allocations: 16 kB / 258.7 MB, free: 15.7 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.0001232/0.01594, allocations: 132.6 kB / 258.9 MB, free: 15.55 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.927e-05/0.01601, allocations: 39.97 kB / 258.9 MB, free: 15.52 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.324e-05/0.01607, allocations: 47.3 kB / 258.9 MB, free: 15.47 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.01608, allocations: 7.938 kB / 259 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.993e-06/0.01608, allocations: 7.938 kB / 259 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.01609, allocations: 3.984 kB / 259 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001031/0.01712, allocations: 0.6637 MB / 259.6 MB, free: 14.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.01712, allocations: 7.969 kB / 259.6 MB, free: 14.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001999/0.01732, allocations: 75.94 kB / 259.7 MB, free: 14.67 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.768e-05/0.01741, allocations: 55.75 kB / 259.8 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003203/0.01773, allocations: 212.1 kB / 260 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.11e-05/0.01775, allocations: 11.98 kB / 260 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001434/0.01918, allocations: 2.033 MB / 262 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.01918, allocations: 0 / 262 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004769/0.01966, allocations: 0.5025 MB / 262.5 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.415e-05/0.01969, allocations: 15.94 kB / 262.5 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000122/0.01982, allocations: 19.98 kB / 262.6 MB, free: 11.72 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.01992, allocations: 76.42 kB / 262.6 MB, free: 11.65 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.952e-05/0.01994, allocations: 11.98 kB / 262.6 MB, free: 11.64 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.81e-05/0.01999, allocations: 71.02 kB / 262.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.01999, allocations: 0 / 262.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003273/0.02032, allocations: 147.9 kB / 262.9 MB, free: 11.42 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.001217/0.02154, allocations: 0.51 MB / 263.4 MB, free: 11.14 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004715/0.02201, allocations: 469.4 kB / 263.8 MB, free: 10.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/0.02202, allocations: 11.98 kB / 263.8 MB, free: 10.65 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002978/0.02232, allocations: 378 kB / 264.2 MB, free: 10.26 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002344/0.02255, allocations: 111.6 kB / 264.3 MB, free: 10.15 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002775/0.02533, allocations: 0.6678 MB / 265 MB, free: 9.449 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.607e-05/0.02539, allocations: 118.3 kB / 265.1 MB, free: 9.316 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001232/0.02552, allocations: 58.94 kB / 265.2 MB, free: 9.262 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001416/0.02566, allocations: 107.3 kB / 265.3 MB, free: 9.156 MB / 266.7 MB Notification: Performance of SimCode: time 6.72e-07/0.02566, allocations: 0 / 265.3 MB, free: 9.156 MB / 266.7 MB Notification: Performance of Templates: time 0.00982/0.03548, allocations: 8.318 MB / 273.6 MB, free: 0.8867 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.6534080114215612]