Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001556/0.001556, allocations: 180.9 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.127/2.127, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001063/0.001063, allocations: 78.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.126e-05/3.136e-05, allocations: 3.984 kB / 321.5 MB, free: 17.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09088/0.09093, allocations: 47.58 MB / 369.1 MB, free: 2.203 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4159/0.5069, allocations: 82.21 MB / 451.3 MB, free: 11.07 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003034/0.5072, allocations: 69.22 kB / 451.4 MB, free: 11.03 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05602/0.5633, allocations: 11.87 MB / 463.2 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.5633, allocations: 0 / 463.2 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.003e-05/0.5634, allocations: 11.98 kB / 463.2 MB, free: 0.8984 MB / 330.7 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.002056/0.5654, allocations: 0.6872 MB / 463.9 MB, free: 192 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.5655, allocations: 8.031 kB / 463.9 MB, free: 184 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004952/0.566, allocations: 66.86 kB / 464 MB, free: 120 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006712/0.5667, allocations: 332.3 kB / 464.3 MB, free: 15.79 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001658/0.5669, allocations: 104.5 kB / 464.4 MB, free: 15.69 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001302/0.567, allocations: 40.22 kB / 464.5 MB, free: 15.66 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/0.5684, allocations: 0.5069 MB / 465 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.823e-05/0.5684, allocations: 0 / 465 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.624e-05/0.5685, allocations: 16 kB / 465 MB, free: 15.16 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.504e-05/0.5686, allocations: 8 kB / 465 MB, free: 15.16 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001536/0.5701, allocations: 0.5496 MB / 465.5 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003255/0.5734, allocations: 1.149 MB / 466.7 MB, free: 13.4 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001305/0.5747, allocations: 473.8 kB / 467.2 MB, free: 12.93 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007571/0.5755, allocations: 283.2 kB / 467.4 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001011/0.5756, allocations: 16.53 kB / 467.5 MB, free: 12.63 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.5757, allocations: 39.12 kB / 467.5 MB, free: 12.58 MB / 346.7 MB Notification: Performance of pre-optimization done (n=63): time 5.44e-06/0.5757, allocations: 0 / 467.5 MB, free: 12.58 MB / 346.7 MB Notification: Performance of matching and sorting (n=71): time 0.005724/0.5814, allocations: 1.985 MB / 469.5 MB, free: 10.5 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.682e-05/0.5815, allocations: 89.88 kB / 469.6 MB, free: 10.4 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004417/0.582, allocations: 247.2 kB / 469.8 MB, free: 10.16 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001008/0.5821, allocations: 45.7 kB / 469.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001452/0.5822, allocations: 216.1 kB / 470.1 MB, free: 9.895 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002812/0.5825, allocations: 224.7 kB / 470.3 MB, free: 9.672 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.735e-05/0.5826, allocations: 19.92 kB / 470.3 MB, free: 9.652 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.5828, allocations: 342.8 kB / 470.6 MB, free: 9.309 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007248/0.5835, allocations: 237.5 kB / 470.9 MB, free: 9.078 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007744/0.5843, allocations: 300 kB / 471.2 MB, free: 8.773 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006315/0.585, allocations: 210.1 kB / 471.4 MB, free: 8.566 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.585, allocations: 0 / 471.4 MB, free: 8.566 MB / 346.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002428/0.5874, allocations: 0.7866 MB / 472.2 MB, free: 7.77 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.527e-05/0.5875, allocations: 8 kB / 472.2 MB, free: 7.762 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.917e-05/0.5875, allocations: 0 / 472.2 MB, free: 7.762 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001645/0.5891, allocations: 426.7 kB / 472.6 MB, free: 7.344 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007275/0.5899, allocations: 91.88 kB / 472.7 MB, free: 7.254 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001864/0.5918, allocations: 1.009 MB / 473.7 MB, free: 6.219 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009342/0.5927, allocations: 83.98 kB / 473.8 MB, free: 6.137 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001152/0.5929, allocations: 27.98 kB / 473.8 MB, free: 6.109 MB / 346.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0002359/0.5931, allocations: 133.9 kB / 473.9 MB, free: 5.973 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001519/0.5933, allocations: 51.39 kB / 474 MB, free: 5.922 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002514/0.5958, allocations: 0.8211 MB / 474.8 MB, free: 5.082 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.216e-05/0.5958, allocations: 8 kB / 474.8 MB, free: 5.074 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.5958, allocations: 0 / 474.8 MB, free: 5.074 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/0.5959, allocations: 7.984 kB / 474.8 MB, free: 5.066 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004572/0.6005, allocations: 1.641 MB / 476.4 MB, free: 3.359 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.74e-06/0.6005, allocations: 0 / 476.4 MB, free: 3.359 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007455/0.6013, allocations: 91.94 kB / 476.5 MB, free: 3.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001516/0.6028, allocations: 404.5 kB / 476.9 MB, free: 2.871 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.86e-05/0.6029, allocations: 28.03 kB / 477 MB, free: 2.844 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001772/0.6047, allocations: 0.9699 MB / 477.9 MB, free: 1.848 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.171e-06/0.6047, allocations: 8.016 kB / 477.9 MB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003408/0.6081, allocations: 1.194 MB / 479.1 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004023/0.6086, allocations: 180.6 kB / 479.3 MB, free: 420 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001477/0.6087, allocations: 20 kB / 479.3 MB, free: 400 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008399/0.6096, allocations: 76 kB / 479.4 MB, free: 324 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003185/0.6099, allocations: 96.36 kB / 479.5 MB, free: 228 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001029/0.61, allocations: 35.92 kB / 479.5 MB, free: 192 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003581/0.6104, allocations: 207.1 kB / 479.7 MB, free: 15.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6104, allocations: 0 / 479.7 MB, free: 15.98 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007432/0.6112, allocations: 156 kB / 479.9 MB, free: 15.83 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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.0003551/0.6115, allocations: 155.1 kB / 480 MB, free: 15.67 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001945/0.6135, allocations: 0.6391 MB / 480.7 MB, free: 15.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.6135, allocations: 0 / 480.7 MB, free: 15.02 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00109/0.6146, allocations: 355.2 kB / 481 MB, free: 14.68 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005749/0.6152, allocations: 47.48 kB / 481.1 MB, free: 14.63 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003817/0.6191, allocations: 0.9979 MB / 482.1 MB, free: 13.6 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005024/0.6196, allocations: 0.829 MB / 482.9 MB, free: 12.74 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003355/0.6199, allocations: 55.39 kB / 482.9 MB, free: 12.69 MB / 362.7 MB Notification: Performance of SimCode: time 1.153e-06/0.62, allocations: 0 / 482.9 MB, free: 12.69 MB / 362.7 MB Notification: Performance of Templates: time 0.01595/0.6359, allocations: 6.981 MB / 489.9 MB, free: 5.703 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/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_cpp_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,DriveSine.y,Inertia1.J,Inertia1.a,der(Inertia1.phi),der(Inertia1.w),Inertia1.flange_a.phi,Inertia1.flange_a.tau,Inertia1.flange_b.phi,Inertia1.flange_b.tau,Inertia1.phi,Inertia1.w,Inertia2.J,Inertia2.a,der(Inertia2.phi),der(Inertia2.w),Inertia2.flange_a.phi,Inertia2.flange_a.tau,Inertia2.flange_b.phi,Inertia2.flange_b.tau,Inertia2.phi,Inertia2.w,PowerLoss,bearingFriction.a,bearingFriction.a_relfric,der(bearingFriction.phi),der(bearingFriction.w),bearingFriction.flange_a.phi,bearingFriction.flange_a.tau,bearingFriction.flange_b.phi,bearingFriction.flange_b.tau,bearingFriction.free,bearingFriction.locked,bearingFriction.lossPower,bearingFriction.mode,bearingFriction.peak,bearingFriction.phi,bearingFriction.sa,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.support.phi,bearingFriction.support.tau,bearingFriction.tau,bearingFriction.tau0,bearingFriction.tau0_max,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.w,bearingFriction.w_relfric,bearingFriction.w_small,fixed.flange.phi,fixed.flange.tau,fixed.phi0,gear.a_a,der(gear.der(phi_b)),der(gear.phi_a),der(gear.phi_b),der(gear.w_a),gear.eta_mf1,gear.eta_mf2,gear.flange_a.phi,gear.flange_a.tau,gear.flange_b.phi,gear.flange_b.tau,gear.ideal,gear.interpolation_result[1,1],gear.interpolation_result[1,2],gear.interpolation_result[1,3],gear.interpolation_result[1,4],gear.locked,gear.lossPower,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.phi_a,gear.phi_b,gear.quadrant1,gear.quadrant1_p,gear.quadrant2,gear.quadrant2_p,gear.quadrant3,gear.quadrant3_m,gear.quadrant4,gear.quadrant4_m,gear.ratio,gear.sa,gear.startBackward,gear.startForward,gear.support.phi,gear.support.tau,gear.tauLoss,gear.tauLossMax,gear.tauLossMax_p,gear.tauLossMin,gear.tauLossMin_m,gear.tau_aPos,gear.tau_bf1,gear.tau_bf2,gear.tau_bf_a,gear.tau_eta,gear.tau_etaPos,gear.tau_eta_m,gear.tau_eta_p,gear.w_a,load.duration,load.height,load.offset,load.startTime,load.y,time,torque1.flange.phi,torque1.flange.tau,torque1.support.phi,torque1.support.tau,torque1.tau,torque2.flange.phi,torque2.flange.tau,torque2.support.phi,torque2.support.tau,torque2.tau