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.002016/0.002016, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.071/2.071, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001164/0.001164, allocations: 85.67 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.895e-05/2.895e-05, allocations: 4 kB / 314.8 MB, free: 9.16 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3364, allocations: 47.56 MB / 362.3 MB, free: 45.82 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1325/0.469, allocations: 81.55 MB / 443.9 MB, free: 4.746 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/0.4693, allocations: 71.97 kB / 444 MB, free: 4.676 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05884/0.5281, allocations: 11.79 MB / 455.7 MB, free: 8.902 MB / 347.1 MB Notification: Performance of FrontEnd: time 3.366e-06/0.5282, allocations: 0 / 455.7 MB, free: 8.902 MB / 347.1 MB Notification: Performance of Transformations before backend: time 3.836e-05/0.5283, allocations: 12.17 kB / 455.8 MB, free: 8.891 MB / 347.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.002382/0.5307, allocations: 0.696 MB / 456.5 MB, free: 8.152 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/0.5307, allocations: 8.031 kB / 456.5 MB, free: 8.145 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006321/0.5314, allocations: 63.42 kB / 456.5 MB, free: 8.082 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009848/0.5324, allocations: 337.3 kB / 456.9 MB, free: 7.711 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00021/0.5326, allocations: 84.12 kB / 456.9 MB, free: 7.613 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001428/0.5328, allocations: 27.91 kB / 457 MB, free: 7.586 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00158/0.5344, allocations: 0.5285 MB / 457.5 MB, free: 7.059 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/0.5358, allocations: 465.2 kB / 457.9 MB, free: 6.59 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.587e-05/0.5359, allocations: 0 / 457.9 MB, free: 6.59 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.072e-05/0.536, allocations: 4 kB / 458 MB, free: 6.586 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.8e-05/0.536, allocations: 8 kB / 458 MB, free: 6.578 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003728/0.5397, allocations: 1.074 MB / 459 MB, free: 5.461 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001279/0.5411, allocations: 436.4 kB / 459.5 MB, free: 5.02 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007614/0.5419, allocations: 266.5 kB / 459.7 MB, free: 4.758 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001005/0.542, allocations: 16.44 kB / 459.7 MB, free: 4.742 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.176e-05/0.5421, allocations: 43.34 kB / 459.8 MB, free: 4.691 MB / 347.1 MB Notification: Performance of pre-optimization done (n=63): time 3.617e-06/0.5421, allocations: 4.75 kB / 459.8 MB, free: 4.688 MB / 347.1 MB Notification: Performance of matching and sorting (n=71): time 0.006736/0.5488, allocations: 1.863 MB / 461.6 MB, free: 2.734 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.187e-05/0.5489, allocations: 85.89 kB / 461.7 MB, free: 2.633 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004209/0.5494, allocations: 216.5 kB / 461.9 MB, free: 2.41 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001685/0.5496, allocations: 33.7 kB / 462 MB, free: 2.371 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001562/0.5497, allocations: 212 kB / 462.2 MB, free: 2.16 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003098/0.55, allocations: 232.6 kB / 462.4 MB, free: 1.93 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.945e-05/0.5501, allocations: 0 / 462.4 MB, free: 1.93 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.5503, allocations: 337.8 kB / 462.7 MB, free: 1.594 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006447/0.551, allocations: 233.5 kB / 463 MB, free: 1.367 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007494/0.5517, allocations: 278.4 kB / 463.2 MB, free: 1.082 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008185/0.5526, allocations: 216.5 kB / 463.5 MB, free: 0.8711 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.5526, allocations: 0 / 463.5 MB, free: 0.8711 MB / 347.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002496/0.5551, allocations: 0.7359 MB / 464.2 MB, free: 124 kB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.622e-05/0.5552, allocations: 8 kB / 464.2 MB, free: 116 kB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.264e-05/0.5552, allocations: 0 / 464.2 MB, free: 116 kB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001709/0.5569, allocations: 426.8 kB / 464.6 MB, free: 15.69 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007731/0.5577, allocations: 83.88 kB / 464.7 MB, free: 15.61 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002171/0.5599, allocations: 1.064 MB / 465.8 MB, free: 14.52 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001058/0.561, allocations: 64 kB / 465.8 MB, free: 14.46 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001575/0.5612, allocations: 27.98 kB / 465.8 MB, free: 14.43 MB / 363.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real 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.0003208/0.5616, allocations: 126 kB / 466 MB, free: 14.3 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001769/0.5617, allocations: 39.53 kB / 466 MB, free: 14.26 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002573/0.5643, allocations: 0.7668 MB / 466.8 MB, free: 13.48 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.839e-05/0.5644, allocations: 8 kB / 466.8 MB, free: 13.48 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.5644, allocations: 3.938 kB / 466.8 MB, free: 13.47 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.542e-05/0.5644, allocations: 7.969 kB / 466.8 MB, free: 13.46 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004907/0.5694, allocations: 1.532 MB / 468.3 MB, free: 11.87 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.366e-05/0.5694, allocations: 3.953 kB / 468.3 MB, free: 11.87 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008052/0.5702, allocations: 91.94 kB / 468.4 MB, free: 11.78 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001668/0.5719, allocations: 392.5 kB / 468.8 MB, free: 11.39 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001458/0.5721, allocations: 11.98 kB / 468.8 MB, free: 11.38 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002035/0.5742, allocations: 1.009 MB / 469.8 MB, free: 10.34 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.675e-06/0.5742, allocations: 0 / 469.8 MB, free: 10.34 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003688/0.5779, allocations: 1.147 MB / 471 MB, free: 9.164 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004968/0.5785, allocations: 176.6 kB / 471.1 MB, free: 8.973 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001501/0.5787, allocations: 11.98 kB / 471.2 MB, free: 8.961 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009535/0.5796, allocations: 67.94 kB / 471.2 MB, free: 8.895 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003816/0.58, allocations: 100.3 kB / 471.3 MB, free: 8.797 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001017/0.5802, allocations: 31.92 kB / 471.4 MB, free: 8.766 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0003094/0.5805, allocations: 178.9 kB / 471.5 MB, free: 8.598 MB / 363.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5805, allocations: 4 kB / 471.5 MB, free: 8.594 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0008906/0.5814, allocations: 131.9 kB / 471.7 MB, free: 8.465 MB / 363.1 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.0004252/0.5818, allocations: 143.2 kB / 471.8 MB, free: 8.316 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.001988/0.5838, allocations: 0.5975 MB / 472.4 MB, free: 7.707 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.5839, allocations: 0 / 472.4 MB, free: 7.707 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001115/0.585, allocations: 337.8 kB / 472.7 MB, free: 7.379 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006227/0.5857, allocations: 28.69 kB / 472.8 MB, free: 7.352 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004073/0.5898, allocations: 0.9758 MB / 473.7 MB, free: 6.34 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005278/0.5904, allocations: 0.8254 MB / 474.6 MB, free: 5.488 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003675/0.5907, allocations: 47.39 kB / 474.6 MB, free: 5.441 MB / 363.1 MB Notification: Performance of SimCode: time 1.343e-06/0.5908, allocations: 0 / 474.6 MB, free: 5.441 MB / 363.1 MB Notification: Performance of Templates: time 0.01853/0.6093, allocations: 6.898 MB / 481.5 MB, free: 14.59 MB / 379.1 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.stateSelect,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.stateSelect,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.phi_support,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.useHeatPort,bearingFriction.useSupport,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_mf1_0,gear.eta_mf2,gear.eta_mf2_0,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.phi_support,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_bf1_0,gear.tau_bf2,gear.tau_bf2_0,gear.tau_bf_a,gear.tau_bf_a_0,gear.tau_eta,gear.tau_etaPos,gear.tau_eta_m,gear.tau_eta_p,gear.useHeatPort,gear.useSupport,gear.w_a,load.duration,load.height,load.offset,load.startTime,load.y,time,torque1.flange.phi,torque1.flange.tau,torque1.phi_support,torque1.support.phi,torque1.support.tau,torque1.tau,torque1.useSupport,torque2.flange.phi,torque2.flange.tau,torque2.phi_support,torque2.support.phi,torque2.support.tau,torque2.tau,torque2.useSupport