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.00149/0.00149, allocations: 186.2 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.998/1.998, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001136/0.001136, allocations: 96.5 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003808/0.0003809, allocations: 8 kB / 327 MB, free: 240 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3446/0.345, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1372/0.4823, allocations: 82.3 MB / 456.8 MB, free: 14.47 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002899/0.4827, allocations: 79.94 kB / 456.9 MB, free: 14.39 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05867/0.5414, allocations: 11.88 MB / 468.8 MB, free: 2.473 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.5414, allocations: 0 / 468.8 MB, free: 2.473 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.21e-05/0.5415, allocations: 8 kB / 468.8 MB, free: 2.465 MB / 346.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.002468/0.544, allocations: 0.7368 MB / 469.5 MB, free: 1.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.076e-05/0.544, allocations: 8.031 kB / 469.5 MB, free: 1.672 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005885/0.5446, allocations: 67.42 kB / 469.6 MB, free: 1.605 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007983/0.5455, allocations: 333.5 kB / 469.9 MB, free: 1.234 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000188/0.5457, allocations: 100.3 kB / 470 MB, free: 1.125 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001371/0.5458, allocations: 43.91 kB / 470.1 MB, free: 1.082 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001779/0.5476, allocations: 0.537 MB / 470.6 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.625e-05/0.5477, allocations: 7.984 kB / 470.6 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.033e-05/0.5478, allocations: 20 kB / 470.6 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.708e-05/0.5478, allocations: 8 kB / 470.7 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002336/0.5502, allocations: 0.6011 MB / 471.3 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003609/0.5538, allocations: 1.158 MB / 472.4 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001831/0.5557, allocations: 0.494 MB / 472.9 MB, free: 14.17 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001182/0.5559, allocations: 8.547 kB / 472.9 MB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.685e-05/0.5559, allocations: 43.12 kB / 473 MB, free: 14.11 MB / 362.7 MB Notification: Performance of pre-optimization done (n=63): time 6.082e-06/0.556, allocations: 0 / 473 MB, free: 14.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=71): time 0.01284/0.5688, allocations: 2.863 MB / 475.8 MB, free: 11.12 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.404e-05/0.5689, allocations: 89.77 kB / 475.9 MB, free: 11.02 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005846/0.5695, allocations: 249.9 kB / 476.1 MB, free: 10.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000188/0.5697, allocations: 45.69 kB / 476.2 MB, free: 10.72 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00016/0.5699, allocations: 212 kB / 476.4 MB, free: 10.51 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003266/0.5702, allocations: 232.8 kB / 476.6 MB, free: 10.28 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.137e-05/0.5703, allocations: 12 kB / 476.6 MB, free: 10.27 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.5705, allocations: 334.8 kB / 477 MB, free: 9.934 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001136/0.5716, allocations: 281.1 kB / 477.2 MB, free: 9.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001222/0.5729, allocations: 326.5 kB / 477.6 MB, free: 9.328 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00103/0.574, allocations: 243.2 kB / 477.8 MB, free: 9.09 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.574, allocations: 3.938 kB / 477.8 MB, free: 9.086 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.003346/0.5774, allocations: 0.8383 MB / 478.6 MB, free: 8.238 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.082e-05/0.5774, allocations: 11.98 kB / 478.7 MB, free: 8.227 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.319e-05/0.5775, allocations: 0 / 478.7 MB, free: 8.227 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001865/0.5793, allocations: 442.7 kB / 479.1 MB, free: 7.793 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008113/0.5802, allocations: 91.83 kB / 479.2 MB, free: 7.703 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002227/0.5825, allocations: 1.021 MB / 480.2 MB, free: 6.656 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001084/0.5836, allocations: 79.98 kB / 480.3 MB, free: 6.578 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001328/0.5838, allocations: 24 kB / 480.3 MB, free: 6.555 MB / 362.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 () * Number of clocked 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.0004216/0.5842, allocations: 185.7 kB / 480.5 MB, free: 6.363 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001703/0.5844, allocations: 43.48 kB / 480.5 MB, free: 6.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003459/0.5878, allocations: 0.8874 MB / 481.4 MB, free: 5.422 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.444e-05/0.5879, allocations: 4 kB / 481.4 MB, free: 5.418 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/0.5879, allocations: 0 / 481.4 MB, free: 5.418 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.367e-05/0.5879, allocations: 11.98 kB / 481.4 MB, free: 5.406 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005701/0.5937, allocations: 1.704 MB / 483.1 MB, free: 3.633 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.718e-05/0.5937, allocations: 7.984 kB / 483.1 MB, free: 3.625 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007848/0.5945, allocations: 79.89 kB / 483.2 MB, free: 3.547 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001701/0.5962, allocations: 416.5 kB / 483.6 MB, free: 3.137 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001234/0.5964, allocations: 23.97 kB / 483.6 MB, free: 3.113 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001984/0.5984, allocations: 0.9777 MB / 484.6 MB, free: 2.109 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.217e-06/0.5984, allocations: 7.984 kB / 484.6 MB, free: 2.102 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004677/0.6031, allocations: 1.283 MB / 485.9 MB, free: 0.7773 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004929/0.6037, allocations: 180.6 kB / 486.1 MB, free: 0.582 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001617/0.6038, allocations: 23.98 kB / 486.1 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009252/0.6048, allocations: 71.94 kB / 486.2 MB, free: 500 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003567/0.6052, allocations: 100.4 kB / 486.3 MB, free: 400 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001072/0.6053, allocations: 31.97 kB / 486.3 MB, free: 368 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004662/0.6058, allocations: 213.9 kB / 486.5 MB, free: 152 kB / 362.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.6058, allocations: 0 / 486.5 MB, free: 152 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009071/0.6067, allocations: 155.9 kB / 486.7 MB, free: 15.99 MB / 378.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) * Number of clocked states: 0 () * 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.0004131/0.6071, allocations: 157.5 kB / 486.8 MB, free: 15.83 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002893/0.61, allocations: 0.6979 MB / 487.5 MB, free: 15.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/0.6101, allocations: 4.062 kB / 487.5 MB, free: 15.13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001594/0.6117, allocations: 380.1 kB / 487.9 MB, free: 14.76 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006865/0.6124, allocations: 50.58 kB / 487.9 MB, free: 14.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004981/0.6174, allocations: 1.403 MB / 489.4 MB, free: 13.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005067/0.618, allocations: 0.8251 MB / 490.2 MB, free: 12.42 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003643/0.6184, allocations: 47.41 kB / 490.2 MB, free: 12.38 MB / 378.7 MB Notification: Performance of SimCode: time 1.373e-06/0.6184, allocations: 4 kB / 490.2 MB, free: 12.37 MB / 378.7 MB Notification: Performance of Templates: time 0.01732/0.6357, allocations: 6.971 MB / 497.2 MB, free: 5.414 MB / 378.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