Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006975/0.0006975, allocations: 92.39 kB / 17.31 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008313/0.0008313, allocations: 178.3 kB / 18.21 MB, free: 5.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.119/1.119, allocations: 223.3 MB / 242.3 MB, free: 216 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002009/0.0002009, allocations: 11.94 kB / 302.1 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0694/0.06961, allocations: 50.41 MB / 352.5 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.002204/0.07185, allocations: 2.394 MB / 354.9 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001366/0.07322, allocations: 1.084 MB / 356 MB, free: 216 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.07334, allocations: 7.938 kB / 356 MB, free: 208 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001748/0.07352, allocations: 55.62 kB / 356 MB, free: 152 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003744/0.07391, allocations: 158.5 kB / 356.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003105/0.07423, allocations: 223.6 kB / 356.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004479/0.07468, allocations: 0.6079 MB / 357 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001688/0.07486, allocations: 116 kB / 357.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002615/0.07513, allocations: 263 kB / 357.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002927/0.07543, allocations: 318.9 kB / 357.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.432e-05/0.07549, allocations: 28 kB / 357.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001657/0.07566, allocations: 107.9 kB / 357.8 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001189/0.07579, allocations: 115.6 kB / 357.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001798/0.07597, allocations: 256.4 kB / 358.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003529/0.07633, allocations: 459 kB / 358.6 MB, free: 13.53 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.07634, allocations: 4 kB / 358.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.07635, allocations: 4 kB / 358.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.01e-06/0.07636, allocations: 0 / 358.6 MB, free: 13.52 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001191/0.07756, allocations: 0.7215 MB / 359.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.676e-05/0.07759, allocations: 12.03 kB / 359.4 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002817/0.07788, allocations: 68.34 kB / 359.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003966/0.07828, allocations: 358.5 kB / 359.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001042/0.0784, allocations: 100.9 kB / 359.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.483e-05/0.07848, allocations: 44.31 kB / 359.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008966/0.07939, allocations: 0.5684 MB / 360.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.07941, allocations: 3.906 kB / 360.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.764e-05/0.07946, allocations: 19.98 kB / 360.5 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.07948, allocations: 8 kB / 360.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/0.08063, allocations: 0.648 MB / 361.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002016/0.08265, allocations: 1.318 MB / 362.5 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009747/0.08364, allocations: 0.5491 MB / 363 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005537/0.0842, allocations: 338.5 kB / 363.4 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.561e-05/0.08425, allocations: 12.44 kB / 363.4 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.313e-05/0.08428, allocations: 39.12 kB / 363.4 MB, free: 8.539 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 1.763e-06/0.08429, allocations: 0 / 363.4 MB, free: 8.539 MB / 302.1 MB Notification: Performance of matching and sorting (n=69): time 0.006046/0.09034, allocations: 2.969 MB / 366.4 MB, free: 5.449 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.213e-05/0.09039, allocations: 97.55 kB / 366.5 MB, free: 5.336 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003242/0.09072, allocations: 334.9 kB / 366.8 MB, free: 4.996 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.328e-05/0.09078, allocations: 41.7 kB / 366.9 MB, free: 4.949 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.376e-05/0.09087, allocations: 165.6 kB / 367 MB, free: 4.785 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.09103, allocations: 220.8 kB / 367.2 MB, free: 4.566 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.294e-05/0.09112, allocations: 57.69 kB / 367.3 MB, free: 4.504 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.926e-05/0.09122, allocations: 350.8 kB / 367.6 MB, free: 4.152 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005404/0.09177, allocations: 301.2 kB / 367.9 MB, free: 3.859 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005721/0.09235, allocations: 358.5 kB / 368.3 MB, free: 3.496 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009468/0.0933, allocations: 0.5382 MB / 368.8 MB, free: 2.949 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.09331, allocations: 0 / 368.8 MB, free: 2.949 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001524/0.09484, allocations: 0.8929 MB / 369.7 MB, free: 2.047 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.09487, allocations: 7.938 kB / 369.7 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.09488, allocations: 4 kB / 369.7 MB, free: 2.035 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009005/0.09578, allocations: 483.3 kB / 370.2 MB, free: 1.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003306/0.09612, allocations: 87.88 kB / 370.3 MB, free: 1.477 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00109/0.09723, allocations: 1.079 MB / 371.4 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004376/0.09768, allocations: 76 kB / 371.4 MB, free: 304 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.726e-05/0.09773, allocations: 27.98 kB / 371.5 MB, free: 276 kB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,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 (46): * Single equations (assignments): 45 * 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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0001963/0.09794, allocations: 189.6 kB / 371.6 MB, free: 76 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.753e-05/0.09802, allocations: 43.44 kB / 371.7 MB, free: 32 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1275/0.2255, allocations: 64.34 kB / 371.8 MB, free: 25.51 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.2255, allocations: 3.781 kB / 371.8 MB, free: 25.51 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.2255, allocations: 0.7188 kB / 371.8 MB, free: 25.51 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.2256, allocations: 6.328 kB / 371.8 MB, free: 25.51 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003461/0.229, allocations: 1.775 MB / 373.5 MB, free: 25.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.229, allocations: 3.812 kB / 373.5 MB, free: 25.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003541/0.2294, allocations: 92.83 kB / 373.6 MB, free: 25.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008939/0.2303, allocations: 441.5 kB / 374.1 MB, free: 25.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.223e-05/0.2304, allocations: 21.39 kB / 374.1 MB, free: 25.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001045/0.2314, allocations: 1.048 MB / 375.1 MB, free: 24.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.572e-06/0.2314, allocations: 0 / 375.1 MB, free: 24.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002125/0.2336, allocations: 1.322 MB / 376.5 MB, free: 24.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001913/0.2338, allocations: 185.1 kB / 376.6 MB, free: 24.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.104e-05/0.2339, allocations: 19.58 kB / 376.7 MB, free: 24.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004166/0.2343, allocations: 69.95 kB / 376.7 MB, free: 24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001672/0.2345, allocations: 82.2 kB / 376.8 MB, free: 23.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.449e-05/0.2345, allocations: 27.05 kB / 376.8 MB, free: 23.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002334/0.2348, allocations: 247.7 kB / 377.1 MB, free: 23.87 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2348, allocations: 3.828 kB / 377.1 MB, free: 23.87 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004409/0.2352, allocations: 146.7 kB / 377.2 MB, free: 23.85 MB / 302.1 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: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002009/0.2354, allocations: 154.3 kB / 377.4 MB, free: 23.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001323/0.2367, allocations: 0.7247 MB / 378.1 MB, free: 23.53 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2368, allocations: 1.469 kB / 378.1 MB, free: 23.53 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007312/0.2375, allocations: 397 kB / 378.5 MB, free: 23.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004329/0.2379, allocations: 53.22 kB / 378.5 MB, free: 23.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002255/0.2402, allocations: 1.446 MB / 380 MB, free: 22.63 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001955/0.2404, allocations: 0.8158 MB / 380.8 MB, free: 21.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001426/0.2406, allocations: 43.08 kB / 380.8 MB, free: 21.91 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2406, allocations: 0 / 380.8 MB, free: 21.91 MB / 302.1 MB Notification: Performance of Templates: time 0.009101/0.2497, allocations: 7.14 MB / 388 MB, free: 19.47 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode,time