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.0009677/0.0009677, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001267/0.001267, allocations: 161 kB / 24.56 MB, free: 16 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 0.9528/0.9528, allocations: 177.1 MB / 205 MB, free: 5.586 MB / 186.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.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.503e-06/1.503e-06, allocations: 0 / 273 MB, free: 1.516 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.472e-05/2.622e-05, allocations: 2.312 kB / 273 MB, free: 1.512 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00305/0.003077, allocations: 2.485 MB / 275.5 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001346/0.004423, allocations: 1.018 MB / 276.5 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000119/0.004542, allocations: 4 kB / 276.5 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002725/0.004814, allocations: 75.36 kB / 276.5 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003742/0.005188, allocations: 155.3 kB / 276.7 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003131/0.005501, allocations: 163.7 kB / 276.9 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003927/0.005894, allocations: 486.5 kB / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.006029, allocations: 40.91 kB / 277.4 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002562/0.006285, allocations: 283.4 kB / 277.7 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002566/0.006541, allocations: 207.6 kB / 277.9 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.194e-05/0.006593, allocations: 36 kB / 277.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001853/0.006779, allocations: 131.8 kB / 278 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000101/0.00688, allocations: 107.7 kB / 278.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.513e-05/0.006975, allocations: 131.7 kB / 278.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004689/0.007444, allocations: 410.7 kB / 278.7 MB, free: 11.8 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.007449, allocations: 3.984 kB / 278.7 MB, free: 11.8 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.00745, allocations: 0 / 278.7 MB, free: 11.8 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.007456, allocations: 0 / 278.7 MB, free: 11.8 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.0008534/0.008309, allocations: 0.6906 MB / 279.3 MB, free: 11.07 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.008351, allocations: 12.03 kB / 279.4 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004519/0.008802, allocations: 72.72 kB / 279.4 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003449/0.009147, allocations: 269.5 kB / 279.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001195/0.009267, allocations: 140 kB / 279.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.243e-05/0.009319, allocations: 24.38 kB / 279.9 MB, free: 10.51 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004475/0.009767, allocations: 340.3 kB / 280.2 MB, free: 10.15 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.009783, allocations: 8.141 kB / 280.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.718e-05/0.00981, allocations: 24.11 kB / 280.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.009821, allocations: 8 kB / 280.2 MB, free: 10.11 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003551/0.01018, allocations: 243.6 kB / 280.5 MB, free: 9.871 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001449/0.01162, allocations: 1.128 MB / 281.6 MB, free: 8.691 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000369/0.01199, allocations: 222.9 kB / 281.8 MB, free: 8.461 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001611/0.01215, allocations: 111.6 kB / 281.9 MB, free: 8.348 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.076e-05/0.01219, allocations: 11.94 kB / 281.9 MB, free: 8.336 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.73e-05/0.01221, allocations: 41.39 kB / 282 MB, free: 8.285 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.483e-06/0.01221, allocations: 0 / 282 MB, free: 8.285 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.002529/0.01474, allocations: 1.34 MB / 283.3 MB, free: 6.879 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.891e-05/0.0148, allocations: 92.8 kB / 283.4 MB, free: 6.77 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002113/0.01501, allocations: 265.6 kB / 283.7 MB, free: 6.492 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.928e-05/0.01504, allocations: 33.7 kB / 283.7 MB, free: 6.453 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.01514, allocations: 195.5 kB / 283.9 MB, free: 6.254 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.13e-05/0.01524, allocations: 150.9 kB / 284 MB, free: 6.105 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.01534, allocations: 91.83 kB / 284.1 MB, free: 6.008 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.01549, allocations: 0.504 MB / 284.6 MB, free: 5.492 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001557/0.01565, allocations: 96.94 kB / 284.7 MB, free: 5.395 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001961/0.01584, allocations: 193.2 kB / 284.9 MB, free: 5.176 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002923/0.01613, allocations: 234.2 kB / 285.1 MB, free: 4.926 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.01614, allocations: 0 / 285.1 MB, free: 4.926 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005444/0.01668, allocations: 413 kB / 285.5 MB, free: 4.512 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.0167, allocations: 7.938 kB / 285.5 MB, free: 4.504 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.01671, allocations: 4 kB / 285.6 MB, free: 4.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004718/0.01718, allocations: 236.2 kB / 285.8 MB, free: 4.266 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000159/0.01734, allocations: 55.91 kB / 285.8 MB, free: 4.211 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002547/0.01988, allocations: 2.876 MB / 288.7 MB, free: 1.215 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.02001, allocations: 19.98 kB / 288.7 MB, free: 1.195 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.19e-05/0.02004, allocations: 15.98 kB / 288.7 MB, free: 1.18 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.0001302/0.02017, allocations: 184.5 kB / 288.9 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.3e-05/0.02023, allocations: 39.8 kB / 289 MB, free: 0.9492 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.458e-05/0.02028, allocations: 46.98 kB / 289 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.02028, allocations: 8 kB / 289 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.02028, allocations: 0 / 289 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.02029, allocations: 0 / 289 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001075/0.02136, allocations: 0.8574 MB / 289.9 MB, free: 15.99 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.02137, allocations: 0 / 289.9 MB, free: 15.99 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001397/0.02151, allocations: 55.84 kB / 289.9 MB, free: 15.94 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003649/0.02187, allocations: 215.5 kB / 290.1 MB, free: 15.72 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.576e-05/0.0219, allocations: 15.98 kB / 290.2 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002079/0.02398, allocations: 2.857 MB / 293 MB, free: 12.73 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.02398, allocations: 0 / 293 MB, free: 12.73 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009086/0.02488, allocations: 0.6234 MB / 293.6 MB, free: 12.09 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.469e-05/0.02498, allocations: 71.73 kB / 293.7 MB, free: 12.02 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.179e-05/0.02501, allocations: 12 kB / 293.7 MB, free: 12 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001177/0.02513, allocations: 11.98 kB / 293.7 MB, free: 11.99 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/0.02524, allocations: 63.88 kB / 293.8 MB, free: 11.93 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.947e-05/0.02526, allocations: 11.98 kB / 293.8 MB, free: 11.92 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000108/0.02537, allocations: 199.2 kB / 294 MB, free: 11.72 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.02537, allocations: 0 / 294 MB, free: 11.72 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004002/0.02577, allocations: 135.9 kB / 294.1 MB, free: 11.59 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.0008133/0.02658, allocations: 357.7 kB / 294.5 MB, free: 11.35 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007119/0.0273, allocations: 0.5508 MB / 295 MB, free: 10.78 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.0273, allocations: 0 / 295 MB, free: 10.78 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003638/0.02766, allocations: 432.1 kB / 295.5 MB, free: 10.34 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002939/0.02796, allocations: 80 kB / 295.5 MB, free: 10.26 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/0.029, allocations: 0.624 MB / 296.2 MB, free: 9.602 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.089e-05/0.02908, allocations: 109.2 kB / 296.3 MB, free: 9.473 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001304/0.02921, allocations: 66.92 kB / 296.3 MB, free: 9.41 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.978e-05/0.02929, allocations: 40.47 kB / 296.4 MB, free: 9.371 MB / 282.7 MB Notification: Performance of SimCode: time 9.92e-07/0.02929, allocations: 0 / 296.4 MB, free: 9.371 MB / 282.7 MB Notification: Performance of Templates: time 0.009566/0.03886, allocations: 7.122 MB / 303.5 MB, free: 2.297 MB / 282.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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1403288929723203]