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.001276/0.001277, allocations: 113.3 kB / 17.28 MB, free: 6.312 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.001109/0.001109, allocations: 189.3 kB / 18.19 MB, free: 5.395 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.408/1.408, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.001153/0.001153, allocations: 47.92 kB / 280.1 MB, free: 3.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09824/0.0994, allocations: 46.63 MB / 326.8 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004235/0.1037, allocations: 2.761 MB / 329.5 MB, free: 2.016 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001951/0.1057, allocations: 1.12 MB / 330.7 MB, free: 0.8867 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001386/0.1058, allocations: 4 kB / 330.7 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002523/0.1061, allocations: 59.62 kB / 330.7 MB, free: 0.8242 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005134/0.1066, allocations: 163.2 kB / 330.9 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003932/0.107, allocations: 219.7 kB / 331.1 MB, free: 460 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000614/0.1077, allocations: 0.6391 MB / 331.7 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002409/0.1079, allocations: 135.4 kB / 331.9 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000423/0.1083, allocations: 287.1 kB / 332.1 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003758/0.1087, allocations: 350.8 kB / 332.5 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.575e-05/0.1088, allocations: 52 kB / 332.5 MB, free: 14.99 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000225/0.109, allocations: 127.9 kB / 332.7 MB, free: 14.87 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001683/0.1092, allocations: 147.5 kB / 332.8 MB, free: 14.72 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002237/0.1094, allocations: 254.8 kB / 333.1 MB, free: 14.47 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000637/0.1101, allocations: 0.6389 MB / 333.7 MB, free: 13.83 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1101, allocations: 3.938 kB / 333.7 MB, free: 13.83 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1101, allocations: 0 / 333.7 MB, free: 13.83 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.1101, allocations: 0 / 333.7 MB, free: 13.83 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.001627/0.1118, allocations: 0.7992 MB / 334.5 MB, free: 12.98 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.1118, allocations: 11.89 kB / 334.5 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003346/0.1122, allocations: 64.36 kB / 334.6 MB, free: 12.9 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004844/0.1126, allocations: 362.4 kB / 334.9 MB, free: 12.51 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001205/0.1128, allocations: 101 kB / 335 MB, free: 12.4 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.794e-05/0.1129, allocations: 36.38 kB / 335.1 MB, free: 12.36 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009704/0.1138, allocations: 0.5684 MB / 335.6 MB, free: 11.79 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.1139, allocations: 0 / 335.6 MB, free: 11.79 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.1e-05/0.1139, allocations: 16 kB / 335.6 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.228e-06/0.1139, allocations: 8 kB / 335.7 MB, free: 11.76 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001329/0.1153, allocations: 0.6402 MB / 336.3 MB, free: 11.12 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002371/0.1177, allocations: 1.287 MB / 337.6 MB, free: 9.777 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001085/0.1188, allocations: 0.5442 MB / 338.1 MB, free: 9.227 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006009/0.1194, allocations: 322.4 kB / 338.4 MB, free: 8.91 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.102e-05/0.1194, allocations: 16.5 kB / 338.5 MB, free: 8.895 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.705e-05/0.1195, allocations: 39.12 kB / 338.5 MB, free: 8.844 MB / 286.1 MB Notification: Performance of pre-optimization done (n=61): time 1.643e-06/0.1195, allocations: 192 / 338.5 MB, free: 8.844 MB / 286.1 MB Notification: Performance of matching and sorting (n=69): time 0.00661/0.1261, allocations: 2.863 MB / 341.4 MB, free: 5.859 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.953e-05/0.1262, allocations: 93.59 kB / 341.5 MB, free: 5.75 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003918/0.1266, allocations: 330.9 kB / 341.8 MB, free: 5.41 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.454e-05/0.1266, allocations: 49.69 kB / 341.8 MB, free: 5.355 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.1268, allocations: 153.6 kB / 342 MB, free: 5.203 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001897/0.127, allocations: 236.7 kB / 342.2 MB, free: 4.969 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001986/0.1272, allocations: 122.2 kB / 342.3 MB, free: 4.844 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.1273, allocations: 350.8 kB / 342.7 MB, free: 4.492 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005771/0.1279, allocations: 289.2 kB / 342.9 MB, free: 4.211 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006281/0.1286, allocations: 354.4 kB / 343.3 MB, free: 3.852 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009965/0.1296, allocations: 0.5266 MB / 343.8 MB, free: 3.32 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1296, allocations: 0 / 343.8 MB, free: 3.32 MB / 286.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001663/0.1312, allocations: 0.885 MB / 344.7 MB, free: 2.426 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.1313, allocations: 11.94 kB / 344.7 MB, free: 2.414 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.1313, allocations: 0 / 344.7 MB, free: 2.414 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00103/0.1323, allocations: 469.6 kB / 345.2 MB, free: 1.953 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003534/0.1327, allocations: 87.88 kB / 345.3 MB, free: 1.867 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001254/0.134, allocations: 1.071 MB / 346.3 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004252/0.1344, allocations: 59.95 kB / 346.4 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.004e-05/0.1345, allocations: 28 kB / 346.4 MB, free: 0.6836 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.0002276/0.1347, allocations: 189.7 kB / 346.6 MB, free: 500 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.329e-05/0.1348, allocations: 39.53 kB / 346.6 MB, free: 460 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000145/0.135, allocations: 67.77 kB / 346.7 MB, free: 388 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.135, allocations: 4 kB / 346.7 MB, free: 384 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.135, allocations: 0 / 346.7 MB, free: 384 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.056e-06/0.135, allocations: 7.984 kB / 346.7 MB, free: 376 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003108/0.1381, allocations: 1.758 MB / 348.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.1381, allocations: 0 / 348.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003501/0.1385, allocations: 79.89 kB / 348.6 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009295/0.1394, allocations: 448.5 kB / 349 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.062e-05/0.1395, allocations: 23.97 kB / 349 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001244/0.1407, allocations: 1.048 MB / 350.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.1407, allocations: 0 / 350.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002274/0.143, allocations: 1.305 MB / 351.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000206/0.1432, allocations: 172.6 kB / 351.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.489e-05/0.1433, allocations: 16 kB / 351.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004131/0.1438, allocations: 55.94 kB / 351.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000199/0.144, allocations: 84.48 kB / 351.7 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-05/0.144, allocations: 27.98 kB / 351.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000291/0.1443, allocations: 241.9 kB / 352 MB, free: 10.99 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1443, allocations: 0 / 352 MB, free: 10.99 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005014/0.1448, allocations: 144 kB / 352.1 MB, free: 10.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.0002732/0.1451, allocations: 155.1 kB / 352.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001675/0.1468, allocations: 0.7469 MB / 353 MB, free: 9.945 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1468, allocations: 0 / 353 MB, free: 9.945 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008491/0.1477, allocations: 396 kB / 353.4 MB, free: 9.555 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005276/0.1482, allocations: 48.81 kB / 353.4 MB, free: 9.508 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002583/0.1508, allocations: 1.282 MB / 354.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004149/0.1512, allocations: 0.8251 MB / 355.5 MB, free: 7.344 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002453/0.1515, allocations: 67.33 kB / 355.6 MB, free: 7.277 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001385/0.1516, allocations: 43.41 kB / 355.6 MB, free: 7.234 MB / 302.1 MB Notification: Performance of SimCode: time 2.454e-06/0.1516, allocations: 3.938 kB / 355.6 MB, free: 7.23 MB / 302.1 MB Notification: Performance of Templates: time 0.0168/0.1685, allocations: 9.873 MB / 365.5 MB, free: 13.35 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