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.001221/0.001221, allocations: 183 kB / 18.04 MB, free: 3.773 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.498/1.498, allocations: 205.4 MB / 224.2 MB, free: 9.023 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.0007909/0.0007909, allocations: 89.03 kB / 272.5 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003671/0.0003673, allocations: 12 kB / 329.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2216/0.222, allocations: 47.57 MB / 377 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08572/0.3078, allocations: 82.36 MB / 459.4 MB, free: 14.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002045/0.308, allocations: 75.95 kB / 459.5 MB, free: 14.11 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03294/0.3409, allocations: 11.81 MB / 471.3 MB, free: 2.27 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.341, allocations: 0 / 471.3 MB, free: 2.27 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.901e-05/0.341, allocations: 8 kB / 471.3 MB, free: 2.262 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.001327/0.3423, allocations: 0.733 MB / 472 MB, free: 1.477 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.3424, allocations: 12.03 kB / 472 MB, free: 1.465 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003109/0.3427, allocations: 72.34 kB / 472.1 MB, free: 1.395 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005162/0.3432, allocations: 334.7 kB / 472.4 MB, free: 1.023 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001265/0.3434, allocations: 92.95 kB / 472.5 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.42e-05/0.3435, allocations: 48.28 kB / 472.6 MB, free: 0.875 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/0.3445, allocations: 0.5453 MB / 473.1 MB, free: 324 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.658e-05/0.3445, allocations: 7.938 kB / 473.1 MB, free: 316 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.449e-05/0.3446, allocations: 16 kB / 473.1 MB, free: 300 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.514e-05/0.3446, allocations: 12 kB / 473.1 MB, free: 288 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001258/0.3459, allocations: 0.6089 MB / 473.7 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001999/0.3479, allocations: 1.154 MB / 474.9 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009649/0.3489, allocations: 0.4899 MB / 475.4 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005921/0.3495, allocations: 322.4 kB / 475.7 MB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.938e-05/0.3495, allocations: 4.562 kB / 475.7 MB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.483e-05/0.3496, allocations: 39.12 kB / 475.7 MB, free: 13.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=63): time 2.756e-06/0.3496, allocations: 0 / 475.7 MB, free: 13.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=71): time 0.006579/0.3562, allocations: 2.885 MB / 478.6 MB, free: 10.58 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.897e-05/0.3562, allocations: 85.7 kB / 478.7 MB, free: 10.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003436/0.3566, allocations: 278.7 kB / 479 MB, free: 10.2 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.957e-05/0.3567, allocations: 53.69 kB / 479 MB, free: 10.14 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.289e-05/0.3568, allocations: 157.6 kB / 479.2 MB, free: 9.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001794/0.357, allocations: 232.7 kB / 479.4 MB, free: 9.75 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.734e-05/0.357, allocations: 15.94 kB / 479.4 MB, free: 9.734 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.3572, allocations: 350.8 kB / 479.8 MB, free: 9.383 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005598/0.3577, allocations: 269.1 kB / 480 MB, free: 9.121 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005977/0.3583, allocations: 338.5 kB / 480.4 MB, free: 8.777 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/0.3594, allocations: 499.2 kB / 480.9 MB, free: 8.281 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3594, allocations: 0 / 480.9 MB, free: 8.281 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00176/0.3612, allocations: 0.8615 MB / 481.7 MB, free: 7.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/0.3612, allocations: 7.938 kB / 481.7 MB, free: 7.402 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/0.3612, allocations: 4 kB / 481.7 MB, free: 7.398 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009955/0.3622, allocations: 442.7 kB / 482.2 MB, free: 6.965 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003665/0.3626, allocations: 83.81 kB / 482.2 MB, free: 6.883 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001222/0.3638, allocations: 1.013 MB / 483.3 MB, free: 5.844 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004833/0.3643, allocations: 84.02 kB / 483.3 MB, free: 5.762 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.625e-05/0.3644, allocations: 35.98 kB / 483.4 MB, free: 5.727 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.0002513/0.3647, allocations: 173.7 kB / 483.5 MB, free: 5.547 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001/0.3648, allocations: 43.44 kB / 483.6 MB, free: 5.504 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001842/0.3666, allocations: 0.8874 MB / 484.5 MB, free: 4.602 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.808e-06/0.3666, allocations: 8 kB / 484.5 MB, free: 4.594 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.3667, allocations: 4 kB / 484.5 MB, free: 4.59 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.3667, allocations: 3.984 kB / 484.5 MB, free: 4.586 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003136/0.3698, allocations: 1.712 MB / 486.2 MB, free: 2.805 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.3698, allocations: 0 / 486.2 MB, free: 2.805 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003726/0.3702, allocations: 87.88 kB / 486.3 MB, free: 2.719 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009503/0.3712, allocations: 424.4 kB / 486.7 MB, free: 2.301 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.856e-05/0.3712, allocations: 15.98 kB / 486.7 MB, free: 2.285 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001137/0.3724, allocations: 0.9739 MB / 487.7 MB, free: 1.285 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3724, allocations: 0 / 487.7 MB, free: 1.285 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002447/0.3749, allocations: 1.268 MB / 489 MB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002745/0.3751, allocations: 184.5 kB / 489.1 MB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.508e-05/0.3752, allocations: 20.06 kB / 489.2 MB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004225/0.3757, allocations: 67.94 kB / 489.2 MB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001926/0.3759, allocations: 112.3 kB / 489.3 MB, free: 15.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.161e-05/0.3759, allocations: 27.97 kB / 489.4 MB, free: 15.56 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002449/0.3762, allocations: 209.9 kB / 489.6 MB, free: 15.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3762, allocations: 0 / 489.6 MB, free: 15.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005278/0.3767, allocations: 159.9 kB / 489.7 MB, free: 15.2 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.0002413/0.377, allocations: 154.9 kB / 489.9 MB, free: 15.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001443/0.3784, allocations: 0.7057 MB / 490.6 MB, free: 14.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3785, allocations: 0 / 490.6 MB, free: 14.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000795/0.3793, allocations: 388.1 kB / 491 MB, free: 13.95 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004871/0.3798, allocations: 52.75 kB / 491 MB, free: 13.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00258/0.3823, allocations: 1.362 MB / 492.4 MB, free: 12.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003739/0.3827, allocations: 0.8134 MB / 493.2 MB, free: 11.66 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002803/0.383, allocations: 63.34 kB / 493.2 MB, free: 11.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001447/0.3832, allocations: 43.41 kB / 493.3 MB, free: 11.55 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.3832, allocations: 4 kB / 493.3 MB, free: 11.55 MB / 378.7 MB Notification: Performance of Templates: time 0.01387/0.3971, allocations: 8.702 MB / 0.4902 GB, free: 2.863 MB / 378.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/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_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