Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001561/0.001561, allocations: 80.8 kB / 22.29 MB, free: 2.207 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.001674/0.001674, allocations: 168.1 kB / 25.7 MB, free: 8.449 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9825/0.9825, allocations: 158.6 MB / 187.6 MB, free: 2.777 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.774e-06/1.774e-06, allocations: 0 / 251.5 MB, free: 7.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.583e-05/2.76e-05, allocations: 2.312 kB / 251.6 MB, free: 7.25 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004817/0.004845, allocations: 2.48 MB / 254 MB, free: 4.754 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001988/0.006832, allocations: 1.003 MB / 255 MB, free: 3.73 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001364/0.006969, allocations: 7.938 kB / 255 MB, free: 3.723 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001895/0.007158, allocations: 47.56 kB / 255.1 MB, free: 3.676 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004347/0.007593, allocations: 158.9 kB / 255.2 MB, free: 3.52 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000267/0.00786, allocations: 187.6 kB / 255.4 MB, free: 3.336 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003601/0.00822, allocations: 486.3 kB / 255.9 MB, free: 2.859 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001303/0.00835, allocations: 67.03 kB / 256 MB, free: 2.797 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002891/0.008639, allocations: 283.4 kB / 256.2 MB, free: 2.52 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002256/0.008865, allocations: 207.5 kB / 256.4 MB, free: 2.316 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.812e-05/0.008913, allocations: 40 kB / 256.5 MB, free: 2.277 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002199/0.009133, allocations: 131.9 kB / 256.6 MB, free: 2.148 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.009246, allocations: 111.7 kB / 256.7 MB, free: 2.039 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.541e-05/0.009341, allocations: 135.6 kB / 256.9 MB, free: 1.906 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003973/0.009738, allocations: 398.7 kB / 257.2 MB, free: 1.516 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.009743, allocations: 0 / 257.2 MB, free: 1.516 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.009744, allocations: 0 / 257.2 MB, free: 1.516 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.009749, allocations: 7.938 kB / 257.3 MB, free: 1.508 MB / 234.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.0006917/0.01044, allocations: 0.5583 MB / 257.8 MB, free: 0.9258 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.01049, allocations: 15.97 kB / 257.8 MB, free: 0.9102 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002213/0.01071, allocations: 76.83 kB / 257.9 MB, free: 0.8359 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002942/0.011, allocations: 225.8 kB / 258.1 MB, free: 0.5859 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.482e-05/0.0111, allocations: 140 kB / 258.3 MB, free: 436 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.624e-05/0.01114, allocations: 36.38 kB / 258.3 MB, free: 400 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000358/0.0115, allocations: 329.9 kB / 258.6 MB, free: 48 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.01151, allocations: 8.125 kB / 258.6 MB, free: 40 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.328e-05/0.01154, allocations: 16.12 kB / 258.6 MB, free: 24 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.01155, allocations: 8 kB / 258.6 MB, free: 16 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003152/0.01186, allocations: 195.2 kB / 258.8 MB, free: 15.83 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000816/0.01268, allocations: 0.5674 MB / 259.4 MB, free: 15.24 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002768/0.01295, allocations: 197.2 kB / 259.6 MB, free: 15.04 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.01307, allocations: 102.2 kB / 259.7 MB, free: 14.94 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.0131, allocations: 12.48 kB / 259.7 MB, free: 14.93 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/0.01312, allocations: 47 kB / 259.8 MB, free: 14.88 MB / 250.7 MB Notification: Performance of pre-optimization done (n=49): time 1.352e-06/0.01312, allocations: 0 / 259.8 MB, free: 14.88 MB / 250.7 MB Notification: Performance of matching and sorting (n=55): time 0.001982/0.0151, allocations: 1.282 MB / 261 MB, free: 13.54 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.957e-05/0.01514, allocations: 89.61 kB / 261.1 MB, free: 13.43 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001454/0.01529, allocations: 204 kB / 261.3 MB, free: 13.22 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.136e-05/0.01532, allocations: 37.7 kB / 261.4 MB, free: 13.18 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.796e-05/0.01538, allocations: 129.1 kB / 261.5 MB, free: 13.05 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/0.01548, allocations: 190.3 kB / 261.7 MB, free: 12.86 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001201/0.0156, allocations: 90.11 kB / 261.8 MB, free: 12.77 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.0157, allocations: 346.7 kB / 262.1 MB, free: 12.42 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.01581, allocations: 71.8 kB / 262.2 MB, free: 12.34 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001278/0.01593, allocations: 141.6 kB / 262.3 MB, free: 12.19 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002167/0.01615, allocations: 213.2 kB / 262.5 MB, free: 11.98 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.01615, allocations: 0 / 262.5 MB, free: 11.98 MB / 250.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0003386/0.01649, allocations: 302.9 kB / 262.8 MB, free: 11.67 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.01651, allocations: 7.984 kB / 262.8 MB, free: 11.66 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.01651, allocations: 0 / 262.8 MB, free: 11.66 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003572/0.01687, allocations: 201.9 kB / 263 MB, free: 11.46 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001674/0.01704, allocations: 71.89 kB / 263.1 MB, free: 11.39 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001747/0.01878, allocations: 2.048 MB / 265.1 MB, free: 9.258 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001162/0.0189, allocations: 23.92 kB / 265.2 MB, free: 9.234 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.666e-05/0.01893, allocations: 15.98 kB / 265.2 MB, free: 9.219 MB / 250.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.0001095/0.01904, allocations: 136.7 kB / 265.3 MB, free: 9.074 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.301e-05/0.01909, allocations: 39.91 kB / 265.3 MB, free: 9.035 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.754e-05/0.01914, allocations: 47.31 kB / 265.4 MB, free: 8.988 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.01914, allocations: 4 kB / 265.4 MB, free: 8.984 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-06/0.01914, allocations: 0 / 265.4 MB, free: 8.984 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.01915, allocations: 7.922 kB / 265.4 MB, free: 8.977 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000822/0.01997, allocations: 0.6637 MB / 266.1 MB, free: 8.281 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.01997, allocations: 0 / 266.1 MB, free: 8.281 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001627/0.02014, allocations: 67.89 kB / 266.1 MB, free: 8.215 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003001/0.02044, allocations: 196.5 kB / 266.3 MB, free: 8.02 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.451e-05/0.02046, allocations: 15.98 kB / 266.3 MB, free: 8.004 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001606/0.02207, allocations: 2.005 MB / 268.3 MB, free: 5.918 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/0.02207, allocations: 7.922 kB / 268.4 MB, free: 5.91 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005548/0.02263, allocations: 0.5191 MB / 268.9 MB, free: 5.371 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.427e-05/0.02271, allocations: 43.83 kB / 268.9 MB, free: 5.328 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.348e-05/0.02274, allocations: 12 kB / 268.9 MB, free: 5.316 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001219/0.02287, allocations: 20.05 kB / 269 MB, free: 5.297 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.02299, allocations: 76.3 kB / 269 MB, free: 5.223 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.235e-05/0.02301, allocations: 15.98 kB / 269 MB, free: 5.207 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.413e-05/0.02307, allocations: 56.89 kB / 269.1 MB, free: 5.148 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.02307, allocations: 0 / 269.1 MB, free: 5.148 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004257/0.0235, allocations: 159.9 kB / 269.3 MB, free: 4.992 MB / 250.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.0001977/0.0237, allocations: 128.3 kB / 269.4 MB, free: 4.855 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005756/0.02427, allocations: 468.7 kB / 269.8 MB, free: 4.383 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.169e-06/0.02428, allocations: 4 kB / 269.8 MB, free: 4.379 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003328/0.02461, allocations: 370.1 kB / 270.2 MB, free: 4.004 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002357/0.02485, allocations: 59.72 kB / 270.3 MB, free: 3.945 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001026/0.02587, allocations: 0.6574 MB / 270.9 MB, free: 3.25 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.868e-05/0.02595, allocations: 118.3 kB / 271 MB, free: 3.117 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001009/0.02605, allocations: 42.97 kB / 271.1 MB, free: 3.078 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.02618, allocations: 95.34 kB / 271.2 MB, free: 2.984 MB / 250.7 MB Notification: Performance of SimCode: time 6.12e-07/0.02619, allocations: 0 / 271.2 MB, free: 2.984 MB / 250.7 MB Notification: Performance of Templates: time 0.009643/0.03583, allocations: 7.637 MB / 278.8 MB, free: 11.37 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.822105802129954]