Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00163/0.00163, allocations: 186.1 kB / 8.137 MB, free: 2.203 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.269/1.269, allocations: 221.4 MB / 229.9 MB, free: 3.094 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009638/0.0009638, allocations: 95.38 kB / 280.8 MB, free: 1.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.474e-06/7.504e-06, allocations: 4 kB / 336.5 MB, free: 9.496 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1869/0.187, allocations: 50.4 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08919/0.2762, allocations: 82.56 MB / 469.5 MB, free: 4.191 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000232/0.2765, allocations: 71.95 kB / 469.5 MB, free: 4.121 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03586/0.3124, allocations: 11.67 MB / 481.2 MB, free: 8.449 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.518e-05/0.3124, allocations: 8 kB / 481.2 MB, free: 8.441 MB / 362.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.001488/0.3139, allocations: 0.7174 MB / 481.9 MB, free: 7.68 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.314, allocations: 8.031 kB / 481.9 MB, free: 7.672 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004109/0.3144, allocations: 63.41 kB / 482 MB, free: 7.609 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005412/0.3149, allocations: 333.3 kB / 482.3 MB, free: 7.242 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001292/0.3151, allocations: 88.17 kB / 482.4 MB, free: 7.137 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.45e-05/0.3152, allocations: 24 kB / 482.4 MB, free: 7.113 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009168/0.3161, allocations: 0.5246 MB / 483 MB, free: 6.59 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008134/0.3169, allocations: 465.2 kB / 483.4 MB, free: 6.121 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.388e-05/0.317, allocations: 4.844 kB / 483.4 MB, free: 6.117 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.934e-05/0.317, allocations: 3.984 kB / 483.4 MB, free: 6.113 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.317, allocations: 12 kB / 483.4 MB, free: 6.102 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00211/0.3192, allocations: 1.086 MB / 484.5 MB, free: 4.973 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005443/0.3197, allocations: 375.5 kB / 484.9 MB, free: 4.598 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003988/0.3201, allocations: 262.8 kB / 485.1 MB, free: 4.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.516e-05/0.3202, allocations: 8.656 kB / 485.2 MB, free: 4.332 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.3202, allocations: 44.16 kB / 485.2 MB, free: 4.277 MB / 362.7 MB Notification: Performance of pre-optimization done (n=63): time 2.756e-06/0.3202, allocations: 0 / 485.2 MB, free: 4.277 MB / 362.7 MB Notification: Performance of matching and sorting (n=71): time 0.00395/0.3242, allocations: 1.868 MB / 487.1 MB, free: 2.316 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.625e-05/0.3242, allocations: 85.77 kB / 487.1 MB, free: 2.215 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002296/0.3245, allocations: 216.3 kB / 487.4 MB, free: 2 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.151e-05/0.3246, allocations: 33.69 kB / 487.4 MB, free: 1.961 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.983e-05/0.3246, allocations: 141.5 kB / 487.5 MB, free: 1.816 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001984/0.3249, allocations: 216.8 kB / 487.7 MB, free: 1.602 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.863e-05/0.3249, allocations: 4 kB / 487.7 MB, free: 1.598 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.325, allocations: 354.7 kB / 488.1 MB, free: 1.242 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003829/0.3254, allocations: 229.2 kB / 488.3 MB, free: 1.016 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004002/0.3258, allocations: 285.3 kB / 488.6 MB, free: 0.7305 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004959/0.3263, allocations: 215 kB / 488.8 MB, free: 0.5195 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3263, allocations: 0 / 488.8 MB, free: 0.5195 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001488/0.3278, allocations: 0.7395 MB / 489.5 MB, free: 15.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.3279, allocations: 11.98 kB / 489.6 MB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.336e-05/0.3279, allocations: 3.984 kB / 489.6 MB, free: 15.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/0.3289, allocations: 418.7 kB / 490 MB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000404/0.3293, allocations: 87.88 kB / 490.1 MB, free: 15.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001323/0.3307, allocations: 1.068 MB / 491.1 MB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005268/0.3312, allocations: 79.98 kB / 491.2 MB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.397e-05/0.3313, allocations: 27.91 kB / 491.2 MB, free: 14.06 MB / 378.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.0002013/0.3315, allocations: 128.8 kB / 491.4 MB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.3316, allocations: 35.53 kB / 491.4 MB, free: 13.89 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001553/0.3332, allocations: 0.779 MB / 492.2 MB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.085e-05/0.3332, allocations: 11.98 kB / 492.2 MB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.3332, allocations: 4.062 kB / 492.2 MB, free: 13.08 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.3332, allocations: 3.984 kB / 492.2 MB, free: 13.08 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002907/0.3361, allocations: 1.534 MB / 493.7 MB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.3362, allocations: 0 / 493.7 MB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004271/0.3366, allocations: 91.94 kB / 493.8 MB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008876/0.3375, allocations: 389 kB / 494.2 MB, free: 11.01 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.106e-05/0.3376, allocations: 15.97 kB / 494.2 MB, free: 11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001238/0.3388, allocations: 1.025 MB / 495.2 MB, free: 9.945 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.3388, allocations: 0 / 495.2 MB, free: 9.945 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001953/0.3408, allocations: 1.164 MB / 496.4 MB, free: 8.746 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002475/0.341, allocations: 180.5 kB / 496.6 MB, free: 8.551 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.3412, allocations: 4 kB / 496.6 MB, free: 8.547 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004833/0.3417, allocations: 76 kB / 496.7 MB, free: 8.473 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001977/0.3419, allocations: 100.4 kB / 496.7 MB, free: 8.375 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.301e-05/0.3419, allocations: 23.98 kB / 496.8 MB, free: 8.352 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001554/0.3421, allocations: 180.5 kB / 496.9 MB, free: 8.172 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005068/0.3426, allocations: 127.9 kB / 497.1 MB, free: 8.047 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) * 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.0002525/0.3429, allocations: 143.2 kB / 497.2 MB, free: 7.898 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00106/0.3439, allocations: 0.6098 MB / 497.8 MB, free: 7.281 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3439, allocations: 0 / 497.8 MB, free: 7.281 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006258/0.3446, allocations: 334.5 kB / 498.1 MB, free: 6.957 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003554/0.345, allocations: 38.42 kB / 498.2 MB, free: 6.926 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001619/0.3466, allocations: 0.7273 MB / 498.9 MB, free: 6.168 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000602/0.3472, allocations: 0.8832 MB / 499.8 MB, free: 5.254 MB / 378.7 MB Notification: Performance of SimCode: time 1.784e-06/0.3472, allocations: 0 / 499.8 MB, free: 5.254 MB / 378.7 MB Notification: Performance of Templates: time 0.1114/0.4586, allocations: 8.78 MB / 0.4967 GB, free: 138.7 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","../files/Modelica_4.0.0_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.f,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