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.001226/0.001226, allocations: 103.4 kB / 17.16 MB, free: 6.32 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.001333/0.001333, allocations: 190 kB / 18.07 MB, free: 5.414 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.418/1.418, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.001167/0.001167, allocations: 48.41 kB / 280 MB, free: 3.594 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1153, allocations: 46.63 MB / 326.6 MB, free: 4.898 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.00447/0.1198, allocations: 2.773 MB / 329.4 MB, free: 2.102 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002229/0.122, allocations: 1.121 MB / 330.5 MB, free: 0.9727 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001973/0.1222, allocations: 7.938 kB / 330.5 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002931/0.1226, allocations: 55.67 kB / 330.5 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006097/0.1232, allocations: 163.1 kB / 330.7 MB, free: 0.75 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004952/0.1237, allocations: 215.7 kB / 330.9 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006813/0.1244, allocations: 0.6118 MB / 331.5 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002476/0.1247, allocations: 112 kB / 331.6 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003622/0.125, allocations: 275 kB / 331.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004032/0.1254, allocations: 315 kB / 332.2 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.332e-05/0.1255, allocations: 32 kB / 332.2 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002721/0.1258, allocations: 111.9 kB / 332.4 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000206/0.126, allocations: 127.6 kB / 332.5 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002463/0.1263, allocations: 230.8 kB / 332.7 MB, free: 14.74 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006454/0.1269, allocations: 0.6193 MB / 333.3 MB, free: 14.12 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.1269, allocations: 0 / 333.3 MB, free: 14.12 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.113e-06/0.127, allocations: 0 / 333.3 MB, free: 14.12 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.356e-06/0.127, allocations: 0 / 333.3 MB, free: 14.12 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.001704/0.1287, allocations: 0.7954 MB / 334.1 MB, free: 13.27 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.1287, allocations: 8.031 kB / 334.1 MB, free: 13.26 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003556/0.1291, allocations: 68.34 kB / 334.2 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004989/0.1296, allocations: 362.4 kB / 334.5 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001393/0.1298, allocations: 101 kB / 334.6 MB, free: 12.69 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.357e-05/0.1298, allocations: 36.38 kB / 334.7 MB, free: 12.66 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001082/0.1309, allocations: 0.5606 MB / 335.2 MB, free: 12.09 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.602e-05/0.131, allocations: 0 / 335.2 MB, free: 12.09 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.977e-05/0.131, allocations: 16 kB / 335.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.172e-05/0.1311, allocations: 8 kB / 335.3 MB, free: 12.06 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00134/0.1324, allocations: 0.644 MB / 335.9 MB, free: 11.42 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00246/0.1349, allocations: 1.291 MB / 337.2 MB, free: 10.07 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/0.1361, allocations: 0.5406 MB / 337.7 MB, free: 9.523 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000622/0.1367, allocations: 326.3 kB / 338.1 MB, free: 9.203 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.479e-05/0.1368, allocations: 12.5 kB / 338.1 MB, free: 9.188 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.723e-05/0.1368, allocations: 43.12 kB / 338.1 MB, free: 9.137 MB / 286.1 MB Notification: Performance of pre-optimization done (n=61): time 1.472e-06/0.1368, allocations: 0 / 338.1 MB, free: 9.137 MB / 286.1 MB Notification: Performance of matching and sorting (n=69): time 0.007119/0.1439, allocations: 2.871 MB / 341 MB, free: 6.145 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.1441, allocations: 93.55 kB / 341.1 MB, free: 6.035 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005868/0.1446, allocations: 334.9 kB / 341.4 MB, free: 5.691 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.119e-05/0.1448, allocations: 45.7 kB / 341.4 MB, free: 5.641 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001465/0.1449, allocations: 157.6 kB / 341.6 MB, free: 5.484 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002579/0.1452, allocations: 232.7 kB / 341.8 MB, free: 5.254 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002922/0.1455, allocations: 118.2 kB / 341.9 MB, free: 5.133 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.1457, allocations: 350.8 kB / 342.3 MB, free: 4.781 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008844/0.1466, allocations: 297.2 kB / 342.6 MB, free: 4.492 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009448/0.1475, allocations: 350.4 kB / 342.9 MB, free: 4.137 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001567/0.1491, allocations: 0.5265 MB / 343.4 MB, free: 3.605 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.1491, allocations: 0 / 343.4 MB, free: 3.605 MB / 286.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002599/0.1517, allocations: 0.8811 MB / 344.3 MB, free: 2.715 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.061e-05/0.1518, allocations: 7.938 kB / 344.3 MB, free: 2.707 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.1518, allocations: 0 / 344.3 MB, free: 2.707 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001604/0.1534, allocations: 473.6 kB / 344.8 MB, free: 2.242 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005839/0.154, allocations: 79.89 kB / 344.9 MB, free: 2.164 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001906/0.1559, allocations: 1.083 MB / 346 MB, free: 1.055 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007115/0.1567, allocations: 60.03 kB / 346 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.924e-05/0.1568, allocations: 27.98 kB / 346 MB, free: 0.9688 MB / 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.0003877/0.1572, allocations: 177.7 kB / 346.2 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001502/0.1573, allocations: 39.53 kB / 346.3 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001755/0.1575, allocations: 67.77 kB / 346.3 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.438e-06/0.1575, allocations: 4 kB / 346.3 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-05/0.1576, allocations: 4 kB / 346.3 MB, free: 0.668 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.783e-05/0.1576, allocations: 11.97 kB / 346.3 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005221/0.1628, allocations: 1.754 MB / 348.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.694e-06/0.1629, allocations: 0 / 348.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005674/0.1634, allocations: 83.88 kB / 348.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001522/0.165, allocations: 444.5 kB / 348.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.233e-05/0.1651, allocations: 23.98 kB / 348.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001836/0.1669, allocations: 1.044 MB / 349.7 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.167, allocations: 3.938 kB / 349.7 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003831/0.1708, allocations: 1.313 MB / 351 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005066/0.1713, allocations: 176.6 kB / 351.2 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001853/0.1715, allocations: 16 kB / 351.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007862/0.1723, allocations: 55.94 kB / 351.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003847/0.1727, allocations: 84.48 kB / 351.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.253e-05/0.1729, allocations: 27.97 kB / 351.3 MB, free: 11.51 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005277/0.1734, allocations: 237.9 kB / 351.6 MB, free: 11.28 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.1734, allocations: 0 / 351.6 MB, free: 11.28 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009967/0.1744, allocations: 152 kB / 351.7 MB, free: 11.13 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.000482/0.1749, allocations: 154.9 kB / 351.9 MB, free: 10.97 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002997/0.1779, allocations: 0.7079 MB / 352.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.178, allocations: 0 / 352.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001539/0.1795, allocations: 392.1 kB / 353 MB, free: 9.875 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008912/0.1804, allocations: 44.88 kB / 353 MB, free: 9.832 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004756/0.1852, allocations: 1.294 MB / 354.3 MB, free: 8.504 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005986/0.1858, allocations: 0.8173 MB / 355.1 MB, free: 7.664 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004738/0.1863, allocations: 63.34 kB / 355.2 MB, free: 7.602 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002326/0.1866, allocations: 35.41 kB / 355.2 MB, free: 7.566 MB / 302.1 MB Notification: Performance of SimCode: time 1.132e-06/0.1866, allocations: 0 / 355.2 MB, free: 7.566 MB / 302.1 MB Notification: Performance of Templates: time 0.02552/0.2121, allocations: 9.331 MB / 364.6 MB, free: 14.23 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