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.001394/0.001394, allocations: 98.3 kB / 16.94 MB, free: 5.98 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.001414/0.001414, allocations: 174.4 kB / 17.82 MB, free: 5.652 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.587/1.587, allocations: 205.4 MB / 224 MB, free: 13.16 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.0005327/0.0005329, allocations: 12.78 kB / 280.7 MB, free: 3.762 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1138, allocations: 47.59 MB / 328.3 MB, free: 4.105 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003088/0.117, allocations: 2.184 MB / 330.5 MB, free: 1.906 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002443/0.1194, allocations: 1.102 MB / 331.6 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003453/0.1198, allocations: 4 kB / 331.6 MB, free: 0.793 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002342/0.1201, allocations: 55.67 kB / 331.7 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007935/0.1209, allocations: 183.4 kB / 331.8 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005923/0.1215, allocations: 187.7 kB / 332 MB, free: 384 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007864/0.1223, allocations: 403.6 kB / 332.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002474/0.1226, allocations: 94 kB / 332.5 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005723/0.1231, allocations: 259.2 kB / 332.8 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005693/0.1237, allocations: 303 kB / 333.1 MB, free: 15.33 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001472/0.1239, allocations: 28 kB / 333.1 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003107/0.1242, allocations: 87.94 kB / 333.2 MB, free: 15.22 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001826/0.1244, allocations: 119.6 kB / 333.3 MB, free: 15.1 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000142/0.1245, allocations: 97.52 kB / 333.4 MB, free: 15 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005545/0.1251, allocations: 463 kB / 333.8 MB, free: 14.55 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.1251, allocations: 4 kB / 333.8 MB, free: 14.54 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1251, allocations: 0 / 333.8 MB, free: 14.54 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.625e-06/0.1251, allocations: 4 kB / 333.8 MB, free: 14.54 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.001484/0.1266, allocations: 0.729 MB / 334.6 MB, free: 13.76 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.1267, allocations: 12.03 kB / 334.6 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000348/0.127, allocations: 63.41 kB / 334.7 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005125/0.1276, allocations: 353.3 kB / 335 MB, free: 13.3 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001222/0.1277, allocations: 96.39 kB / 335.1 MB, free: 13.19 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.725e-05/0.1278, allocations: 36 kB / 335.1 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009795/0.1288, allocations: 0.5721 MB / 335.7 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.1288, allocations: 0 / 335.7 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.283e-05/0.1289, allocations: 16 kB / 335.7 MB, free: 12.56 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.1289, allocations: 12 kB / 335.7 MB, free: 12.55 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001263/0.1301, allocations: 0.648 MB / 336.4 MB, free: 11.9 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002351/0.1325, allocations: 1.31 MB / 337.7 MB, free: 10.53 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001079/0.1336, allocations: 0.5522 MB / 338.2 MB, free: 9.969 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.137e-05/0.1337, allocations: 8.562 kB / 338.2 MB, free: 9.961 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.712e-05/0.1337, allocations: 47.12 kB / 338.3 MB, free: 9.906 MB / 286.1 MB Notification: Performance of pre-optimization done (n=61): time 1.743e-06/0.1337, allocations: 0 / 338.3 MB, free: 9.906 MB / 286.1 MB Notification: Performance of matching and sorting (n=69): time 0.006682/0.1404, allocations: 2.955 MB / 341.2 MB, free: 6.828 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.854e-05/0.1405, allocations: 85.67 kB / 341.3 MB, free: 6.723 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004008/0.1409, allocations: 330.9 kB / 341.7 MB, free: 6.391 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.127e-05/0.141, allocations: 45.69 kB / 341.7 MB, free: 6.34 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.1411, allocations: 157.6 kB / 341.8 MB, free: 6.184 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.1413, allocations: 228.8 kB / 342.1 MB, free: 5.957 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-05/0.1413, allocations: 16 kB / 342.1 MB, free: 5.941 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.1415, allocations: 354.7 kB / 342.4 MB, free: 5.586 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006018/0.1421, allocations: 289.2 kB / 342.7 MB, free: 5.305 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006417/0.1427, allocations: 358.5 kB / 343.1 MB, free: 4.941 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005622/0.1433, allocations: 267.1 kB / 343.3 MB, free: 4.684 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1433, allocations: 0 / 343.3 MB, free: 4.684 MB / 286.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001738/0.1451, allocations: 0.9124 MB / 344.2 MB, free: 3.762 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/0.1451, allocations: 11.94 kB / 344.3 MB, free: 3.75 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.1451, allocations: 4.031 kB / 344.3 MB, free: 3.746 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001077/0.1462, allocations: 469.9 kB / 344.7 MB, free: 3.285 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003726/0.1466, allocations: 87.88 kB / 344.8 MB, free: 3.199 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001267/0.1479, allocations: 1.083 MB / 345.9 MB, free: 2.09 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005178/0.1484, allocations: 79.98 kB / 346 MB, free: 2.012 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.087e-05/0.1485, allocations: 20 kB / 346 MB, free: 1.992 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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 32} Notification: Performance of prepare postOptimizeDAE: time 0.0002924/0.1488, allocations: 181.7 kB / 346.2 MB, free: 1.805 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.1489, allocations: 39.53 kB / 346.2 MB, free: 1.766 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001718/0.1491, allocations: 63.77 kB / 346.3 MB, free: 1.699 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/0.1491, allocations: 11.98 kB / 346.3 MB, free: 1.688 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.672e-05/0.1491, allocations: 3.953 kB / 346.3 MB, free: 1.684 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.1491, allocations: 7.984 kB / 346.3 MB, free: 1.676 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003286/0.1524, allocations: 1.777 MB / 348.1 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.1524, allocations: 3.953 kB / 348.1 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003643/0.1528, allocations: 87.88 kB / 348.1 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009473/0.1538, allocations: 440.5 kB / 348.6 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.972e-05/0.1539, allocations: 23.97 kB / 348.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001165/0.155, allocations: 1.04 MB / 349.6 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1551, allocations: 0 / 349.6 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002336/0.1574, allocations: 1.323 MB / 351 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002889/0.1577, allocations: 188.5 kB / 351.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.206e-05/0.1578, allocations: 12 kB / 351.2 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004372/0.1582, allocations: 76 kB / 351.2 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002271/0.1585, allocations: 100.4 kB / 351.3 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.96e-05/0.1585, allocations: 27.97 kB / 351.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003067/0.1589, allocations: 245.9 kB / 351.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1589, allocations: 0 / 351.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005283/0.1594, allocations: 144 kB / 351.7 MB, free: 12.07 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002973/0.1597, allocations: 151 kB / 351.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001521/0.1612, allocations: 0.7196 MB / 352.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.1613, allocations: 0 / 352.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008174/0.1621, allocations: 400.2 kB / 353 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003856/0.1625, allocations: 48.75 kB / 353 MB, free: 10.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002906/0.1654, allocations: 1.354 MB / 354.4 MB, free: 9.363 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004458/0.1659, allocations: 0.829 MB / 355.2 MB, free: 8.512 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002522/0.1661, allocations: 63.33 kB / 355.3 MB, free: 8.449 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001319/0.1663, allocations: 39.42 kB / 355.3 MB, free: 8.41 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1663, allocations: 0 / 355.3 MB, free: 8.41 MB / 302.1 MB Notification: Performance of Templates: time 0.01447/0.1807, allocations: 8.925 MB / 364.3 MB, free: 15.48 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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