Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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.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_3.2.3_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_3.2.3_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.0008653/0.0008655, allocations: 98.12 kB / 17.3 MB, free: 6.344 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.0008069/0.0008068, allocations: 179.5 kB / 18.21 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.58/1.58, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005199/0.0005204, allocations: 12.42 kB / 281.4 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1197, allocations: 47.59 MB / 329 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003871/0.1237, allocations: 2.388 MB / 331.4 MB, free: 1.352 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002675/0.1264, allocations: 1.128 MB / 332.5 MB, free: 220 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002043/0.1266, allocations: 4 kB / 332.5 MB, free: 216 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002957/0.1269, allocations: 55.61 kB / 332.5 MB, free: 160 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007078/0.1277, allocations: 155.2 kB / 332.7 MB, free: 4 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005998/0.1283, allocations: 215.7 kB / 332.9 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006702/0.129, allocations: 0.6157 MB / 333.5 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002569/0.1292, allocations: 108 kB / 333.6 MB, free: 15.06 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004115/0.1296, allocations: 259.1 kB / 333.9 MB, free: 14.81 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004509/0.1301, allocations: 318.8 kB / 334.2 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.899e-05/0.1302, allocations: 28 kB / 334.2 MB, free: 14.47 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002891/0.1305, allocations: 103.9 kB / 334.3 MB, free: 14.37 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002165/0.1307, allocations: 119.6 kB / 334.4 MB, free: 14.25 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002789/0.131, allocations: 248.5 kB / 334.7 MB, free: 14 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008236/0.1318, allocations: 0.6075 MB / 335.3 MB, free: 13.39 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1318, allocations: 0 / 335.3 MB, free: 13.39 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.1319, allocations: 0 / 335.3 MB, free: 13.39 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.1319, allocations: 7.938 kB / 335.3 MB, free: 13.38 MB / 286.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.001558/0.1334, allocations: 0.7253 MB / 336 MB, free: 12.61 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.1335, allocations: 12.03 kB / 336 MB, free: 12.59 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003502/0.1338, allocations: 64.36 kB / 336.1 MB, free: 12.53 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005766/0.1344, allocations: 362.4 kB / 336.4 MB, free: 12.14 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001574/0.1346, allocations: 96.89 kB / 336.5 MB, free: 12.03 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.557e-05/0.1347, allocations: 40.38 kB / 336.6 MB, free: 11.99 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001129/0.1358, allocations: 0.5723 MB / 337.1 MB, free: 11.41 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.287e-05/0.1359, allocations: 0 / 337.1 MB, free: 11.41 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.508e-05/0.1359, allocations: 16 kB / 337.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.136, allocations: 8 kB / 337.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001344/0.1373, allocations: 0.6558 MB / 337.8 MB, free: 10.73 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002537/0.1399, allocations: 1.31 MB / 339.1 MB, free: 9.363 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001203/0.1411, allocations: 0.5599 MB / 339.7 MB, free: 8.797 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006304/0.1417, allocations: 338.5 kB / 340 MB, free: 8.465 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.609e-05/0.1418, allocations: 8.5 kB / 340 MB, free: 8.453 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.258e-05/0.1418, allocations: 39.12 kB / 340.1 MB, free: 8.406 MB / 286.1 MB Notification: Performance of pre-optimization done (n=61): time 1.913e-06/0.1418, allocations: 0 / 340.1 MB, free: 8.406 MB / 286.1 MB Notification: Performance of matching and sorting (n=69): time 0.007138/0.149, allocations: 2.973 MB / 343 MB, free: 5.312 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.752e-05/0.1491, allocations: 93.61 kB / 343.1 MB, free: 5.203 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004414/0.1495, allocations: 338.8 kB / 343.5 MB, free: 4.855 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.383e-05/0.1496, allocations: 41.7 kB / 343.5 MB, free: 4.809 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001395/0.1498, allocations: 161.6 kB / 343.7 MB, free: 4.648 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000197/0.15, allocations: 224.7 kB / 343.9 MB, free: 4.426 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.361e-05/0.1501, allocations: 61.69 kB / 343.9 MB, free: 4.359 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.1502, allocations: 346.8 kB / 344.3 MB, free: 4.012 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006377/0.1509, allocations: 305.2 kB / 344.6 MB, free: 3.715 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006485/0.1516, allocations: 350.5 kB / 344.9 MB, free: 3.359 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001093/0.1527, allocations: 0.5421 MB / 345.5 MB, free: 2.812 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.1527, allocations: 0 / 345.5 MB, free: 2.812 MB / 286.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001836/0.1545, allocations: 0.8968 MB / 346.4 MB, free: 1.906 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.1545, allocations: 7.938 kB / 346.4 MB, free: 1.898 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.1546, allocations: 8.031 kB / 346.4 MB, free: 1.891 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001126/0.1557, allocations: 469.6 kB / 346.8 MB, free: 1.43 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003825/0.1561, allocations: 83.89 kB / 346.9 MB, free: 1.348 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001355/0.1575, allocations: 1.091 MB / 348 MB, free: 236 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005095/0.158, allocations: 80 kB / 348.1 MB, free: 156 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.462e-05/0.158, allocations: 27.92 kB / 348.1 MB, free: 128 kB / 286.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.0003376/0.1584, allocations: 173.7 kB / 348.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.1585, allocations: 47.47 kB / 348.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001965/0.1587, allocations: 67.83 kB / 348.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.1587, allocations: 8 kB / 348.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.1587, allocations: 0 / 348.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.1588, allocations: 7.984 kB / 348.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003638/0.1624, allocations: 1.781 MB / 350.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.1624, allocations: 0 / 350.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003829/0.1628, allocations: 87.88 kB / 350.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009965/0.1638, allocations: 452.5 kB / 350.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.112e-05/0.1639, allocations: 19.98 kB / 350.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001368/0.1653, allocations: 1.04 MB / 351.8 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1653, allocations: 0 / 351.8 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002503/0.1678, allocations: 1.321 MB / 353.1 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000273/0.1681, allocations: 184.5 kB / 353.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.02e-05/0.1682, allocations: 23.94 kB / 353.3 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004557/0.1686, allocations: 75.94 kB / 353.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002215/0.1689, allocations: 80.42 kB / 353.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000109/0.169, allocations: 31.97 kB / 353.5 MB, free: 10.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003692/0.1694, allocations: 245.9 kB / 353.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1694, allocations: 0 / 353.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005722/0.1699, allocations: 144 kB / 353.9 MB, free: 10.21 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.0003464/0.1703, allocations: 147.1 kB / 354 MB, free: 10.06 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001579/0.1719, allocations: 0.7197 MB / 354.7 MB, free: 9.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.1719, allocations: 0 / 354.7 MB, free: 9.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008144/0.1727, allocations: 404.1 kB / 355.1 MB, free: 8.945 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005081/0.1733, allocations: 44.88 kB / 355.2 MB, free: 8.898 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002782/0.1761, allocations: 1.411 MB / 356.6 MB, free: 7.457 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004473/0.1765, allocations: 0.8251 MB / 357.4 MB, free: 6.609 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002394/0.1768, allocations: 63.28 kB / 357.5 MB, free: 6.547 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001249/0.1769, allocations: 43.41 kB / 357.5 MB, free: 6.504 MB / 302.1 MB Notification: Performance of SimCode: time 9.72e-07/0.1769, allocations: 0 / 357.5 MB, free: 6.504 MB / 302.1 MB Notification: Performance of Templates: time 0.01771/0.1946, allocations: 9.206 MB / 366.7 MB, free: 13.29 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","../files/Modelica_3.2.3_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:DriveSine.amplitude,DriveSine.freqHz,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,bearingFriction.phi_support,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.support.phi,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.w_small,fixed.flange.phi,fixed.phi0,gear.eta_mf1_0,gear.eta_mf2_0,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.phi_support,gear.ratio,gear.support.phi,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time,torque1.phi_support,torque1.support.phi,torque2.phi_support,torque2.support.phi