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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001331/0.001331, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.644/1.644, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008649/0.0008647, allocations: 86.69 kB / 262.5 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.344e-05/1.345e-05, allocations: 4 kB / 315.5 MB, free: 22.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09523/0.09526, allocations: 47.58 MB / 363.1 MB, free: 7.078 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3875/0.4828, allocations: 81.79 MB / 444.9 MB, free: 13.89 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002492/0.4832, allocations: 70.34 kB / 444.9 MB, free: 13.86 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03314/0.5163, allocations: 11.79 MB / 456.7 MB, free: 3.984 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.704e-06/0.5164, allocations: 4.188 kB / 456.7 MB, free: 3.98 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.51e-05/0.5164, allocations: 8 kB / 456.7 MB, free: 3.973 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.001319/0.5177, allocations: 0.698 MB / 457.4 MB, free: 3.258 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.5178, allocations: 8.031 kB / 457.4 MB, free: 3.25 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003166/0.5181, allocations: 66.98 kB / 457.5 MB, free: 3.188 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004569/0.5186, allocations: 332.5 kB / 457.8 MB, free: 2.855 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000128/0.5187, allocations: 84.12 kB / 457.9 MB, free: 2.758 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.892e-05/0.5188, allocations: 35.22 kB / 457.9 MB, free: 2.727 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008299/0.5196, allocations: 0.5202 MB / 458.5 MB, free: 2.355 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007406/0.5204, allocations: 464.6 kB / 458.9 MB, free: 2.008 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.5204, allocations: 3.312 kB / 458.9 MB, free: 2.008 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.672e-05/0.5205, allocations: 0 / 458.9 MB, free: 2.008 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.316e-05/0.5205, allocations: 12 kB / 458.9 MB, free: 1.996 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001888/0.5224, allocations: 1.078 MB / 460 MB, free: 1.109 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006767/0.5231, allocations: 434.8 kB / 460.4 MB, free: 0.8203 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003869/0.5235, allocations: 264.6 kB / 460.7 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.595e-05/0.5235, allocations: 12.52 kB / 460.7 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.604e-05/0.5236, allocations: 44.78 kB / 460.7 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of pre-optimization done (n=63): time 3.847e-06/0.5236, allocations: 4 kB / 460.7 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of matching and sorting (n=71): time 0.003695/0.5273, allocations: 1.873 MB / 462.6 MB, free: 15.02 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.313e-05/0.5274, allocations: 81.89 kB / 462.7 MB, free: 14.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002669/0.5276, allocations: 216.7 kB / 462.9 MB, free: 14.74 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.229e-05/0.5277, allocations: 33.69 kB / 462.9 MB, free: 14.7 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.5278, allocations: 156 kB / 463.1 MB, free: 14.57 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002015/0.5281, allocations: 227 kB / 463.3 MB, free: 14.37 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.917e-05/0.5281, allocations: 4 kB / 463.3 MB, free: 14.37 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.5283, allocations: 346.4 kB / 463.7 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003678/0.5287, allocations: 227.3 kB / 463.9 MB, free: 13.9 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000412/0.5291, allocations: 282.8 kB / 464.2 MB, free: 13.71 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004603/0.5295, allocations: 213.7 kB / 464.4 MB, free: 13.57 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.5296, allocations: 0 / 464.4 MB, free: 13.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001395/0.531, allocations: 0.7543 MB / 465.1 MB, free: 13.01 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.531, allocations: 4 kB / 465.1 MB, free: 13.01 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.18e-05/0.531, allocations: 4 kB / 465.1 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009412/0.532, allocations: 419.5 kB / 465.5 MB, free: 12.69 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003784/0.5324, allocations: 86.86 kB / 465.6 MB, free: 12.61 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00127/0.5336, allocations: 1.062 MB / 466.7 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004654/0.5341, allocations: 68.03 kB / 466.8 MB, free: 11.67 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.956e-05/0.5342, allocations: 30.36 kB / 466.8 MB, free: 11.65 MB / 346.7 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.0002472/0.5345, allocations: 124.8 kB / 466.9 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.379e-05/0.5346, allocations: 31.62 kB / 466.9 MB, free: 11.49 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001467/0.5361, allocations: 0.7681 MB / 467.7 MB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.958e-06/0.5361, allocations: 8.062 kB / 467.7 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.5361, allocations: 4 kB / 467.7 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.767e-06/0.5361, allocations: 3.984 kB / 467.7 MB, free: 10.92 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002748/0.5389, allocations: 1.537 MB / 469.3 MB, free: 9.695 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.5389, allocations: 3.953 kB / 469.3 MB, free: 9.691 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004053/0.5393, allocations: 91.75 kB / 469.4 MB, free: 9.605 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009165/0.5402, allocations: 395.9 kB / 469.7 MB, free: 9.297 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.664e-05/0.5403, allocations: 10.55 kB / 469.7 MB, free: 9.289 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001181/0.5415, allocations: 1.008 MB / 470.8 MB, free: 8.449 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.5415, allocations: 0 / 470.8 MB, free: 8.449 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001826/0.5433, allocations: 1.157 MB / 471.9 MB, free: 7.59 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000279/0.5436, allocations: 179.8 kB / 472.1 MB, free: 7.422 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.446e-05/0.5437, allocations: 7.5 kB / 472.1 MB, free: 7.418 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004401/0.5442, allocations: 60 kB / 472.2 MB, free: 7.359 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002104/0.5444, allocations: 110.1 kB / 472.3 MB, free: 7.266 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.543e-05/0.5445, allocations: 23.42 kB / 472.3 MB, free: 7.246 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001855/0.5446, allocations: 183.5 kB / 472.5 MB, free: 7.102 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5447, allocations: 0 / 472.5 MB, free: 7.102 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005826/0.5452, allocations: 131.9 kB / 472.6 MB, free: 6.973 MB / 346.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.0002645/0.5455, allocations: 147.2 kB / 472.7 MB, free: 6.824 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001011/0.5465, allocations: 0.5983 MB / 473.3 MB, free: 6.402 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.5465, allocations: 0 / 473.3 MB, free: 6.402 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005809/0.5471, allocations: 333.5 kB / 473.7 MB, free: 6.172 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003588/0.5475, allocations: 35.38 kB / 473.7 MB, free: 6.145 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002074/0.5496, allocations: 0.9352 MB / 474.6 MB, free: 5.285 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000401/0.55, allocations: 0.8293 MB / 475.5 MB, free: 4.43 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002262/0.5502, allocations: 63.25 kB / 475.5 MB, free: 4.371 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001436/0.5504, allocations: 42.59 kB / 475.6 MB, free: 4.332 MB / 346.7 MB Notification: Performance of SimCode: time 4.01e-07/0.5504, allocations: 0 / 475.6 MB, free: 4.332 MB / 346.7 MB Notification: Performance of Templates: time 0.01293/0.5633, allocations: 8.241 MB / 483.8 MB, free: 12.1 MB / 362.7 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.startBackward,bearingFriction.startForward,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.w_small,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.ratio,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time