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") [: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 3.2.3+maint.om/package.mo): time 0.00159/0.00159, allocations: 176.9 kB / 8.475 MB, free: 1.875 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.635/1.635, allocations: 205.2 MB / 214.1 MB, free: 5.426 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.001054/0.001054, allocations: 94.17 kB / 262.1 MB, free: 5.492 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.753e-06/6.783e-06, allocations: 0 / 315 MB, free: 41.54 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1115, allocations: 47.58 MB / 362.5 MB, free: 10.01 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3189/0.4304, allocations: 81.47 MB / 444 MB, free: 10.98 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002065/0.4307, allocations: 66.95 kB / 444.1 MB, free: 10.98 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.03032/0.461, allocations: 11.49 MB / 455.6 MB, free: 7.426 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.014e-05/0.4611, allocations: 7.562 kB / 455.6 MB, free: 7.426 MB / 314.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.001262/0.4624, allocations: 0.7131 MB / 456.3 MB, free: 6.883 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.4624, allocations: 11.19 kB / 456.3 MB, free: 6.883 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003691/0.4628, allocations: 61.2 kB / 456.4 MB, free: 6.855 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004609/0.4633, allocations: 330.6 kB / 456.7 MB, free: 6.582 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001138/0.4634, allocations: 90.58 kB / 456.8 MB, free: 6.512 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.653e-05/0.4635, allocations: 22.75 kB / 456.8 MB, free: 6.512 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008688/0.4644, allocations: 0.528 MB / 457.3 MB, free: 6.434 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007559/0.4651, allocations: 466.3 kB / 457.8 MB, free: 6.281 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.268e-05/0.4651, allocations: 9.062 kB / 457.8 MB, free: 6.277 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.893e-05/0.4652, allocations: 1.344 kB / 457.8 MB, free: 6.277 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.4652, allocations: 9.188 kB / 457.8 MB, free: 6.277 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002004/0.4672, allocations: 1.084 MB / 458.9 MB, free: 5.719 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005599/0.4678, allocations: 365.3 kB / 459.2 MB, free: 5.672 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004159/0.4682, allocations: 263.7 kB / 459.5 MB, free: 5.656 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.872e-05/0.4683, allocations: 16.05 kB / 459.5 MB, free: 5.656 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.01e-05/0.4683, allocations: 36.5 kB / 459.5 MB, free: 5.617 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 2.194e-06/0.4683, allocations: 1.094 kB / 459.5 MB, free: 5.617 MB / 314.7 MB Notification: Performance of matching and sorting (n=71): time 0.003846/0.4722, allocations: 1.864 MB / 461.4 MB, free: 4.828 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.604e-05/0.4722, allocations: 88.45 kB / 461.5 MB, free: 4.727 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002748/0.4725, allocations: 215.8 kB / 461.7 MB, free: 4.617 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.982e-05/0.4726, allocations: 36 kB / 461.7 MB, free: 4.582 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.119e-05/0.4727, allocations: 139.1 kB / 461.9 MB, free: 4.461 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001669/0.4729, allocations: 225.5 kB / 462.1 MB, free: 4.297 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.752e-05/0.4729, allocations: 3.125 kB / 462.1 MB, free: 4.297 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.396e-05/0.473, allocations: 348.5 kB / 462.4 MB, free: 3.969 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004611/0.4735, allocations: 227.4 kB / 462.7 MB, free: 3.961 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004023/0.4739, allocations: 288 kB / 462.9 MB, free: 3.906 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005114/0.4744, allocations: 211.5 kB / 463.1 MB, free: 3.871 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.4744, allocations: 1.188 kB / 463.1 MB, free: 3.871 MB / 314.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001478/0.4759, allocations: 0.7503 MB / 463.9 MB, free: 3.73 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.4759, allocations: 6.719 kB / 463.9 MB, free: 3.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.4759, allocations: 2.781 kB / 463.9 MB, free: 3.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009644/0.4769, allocations: 410.4 kB / 464.3 MB, free: 3.641 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004189/0.4773, allocations: 92 kB / 464.4 MB, free: 3.617 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001202/0.4785, allocations: 1.07 MB / 465.5 MB, free: 3.039 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005247/0.4791, allocations: 82.05 kB / 465.5 MB, free: 3.008 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.417e-05/0.4792, allocations: 32.11 kB / 465.6 MB, free: 3.004 MB / 314.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.0001926/0.4794, allocations: 117.2 kB / 465.7 MB, free: 2.891 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.643e-05/0.4795, allocations: 43.44 kB / 465.7 MB, free: 2.867 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001478/0.481, allocations: 0.7776 MB / 466.5 MB, free: 2.672 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.917e-06/0.481, allocations: 6.531 kB / 466.5 MB, free: 2.672 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.481, allocations: 64 / 466.5 MB, free: 2.672 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.455e-06/0.481, allocations: 9.484 kB / 466.5 MB, free: 2.664 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002705/0.4837, allocations: 1.542 MB / 468.1 MB, free: 2.031 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.4837, allocations: 1.375 kB / 468.1 MB, free: 2.031 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004152/0.4841, allocations: 92.41 kB / 468.2 MB, free: 2.008 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008753/0.485, allocations: 388.3 kB / 468.5 MB, free: 1.914 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.201e-05/0.4851, allocations: 15.97 kB / 468.6 MB, free: 1.906 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001116/0.4862, allocations: 1.033 MB / 469.6 MB, free: 1.316 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.4862, allocations: 5.094 kB / 469.6 MB, free: 1.312 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001947/0.4882, allocations: 1.156 MB / 470.8 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002422/0.4885, allocations: 178 kB / 470.9 MB, free: 0.8516 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/0.4886, allocations: 11.45 kB / 470.9 MB, free: 0.8477 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004853/0.4891, allocations: 68.78 kB / 471 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002015/0.4893, allocations: 95.83 kB / 471.1 MB, free: 0.7734 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.799e-05/0.4893, allocations: 37.12 kB / 471.1 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001706/0.4895, allocations: 175.7 kB / 471.3 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006523/0.4902, allocations: 132.6 kB / 471.4 MB, free: 0.6602 MB / 314.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.0002682/0.4905, allocations: 141.7 kB / 471.6 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001113/0.4916, allocations: 0.6079 MB / 472.2 MB, free: 484 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4916, allocations: 0 / 472.2 MB, free: 484 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005975/0.4922, allocations: 328.7 kB / 472.5 MB, free: 444 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003612/0.4926, allocations: 34.92 kB / 472.5 MB, free: 428 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001644/0.4942, allocations: 0.7321 MB / 473.3 MB, free: 76 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006042/0.4948, allocations: 0.8745 MB / 474.1 MB, free: 15.29 MB / 330.7 MB Notification: Performance of SimCode: time 1.613e-06/0.4949, allocations: 0 / 474.1 MB, free: 15.29 MB / 330.7 MB Notification: Performance of Templates: time 0.01448/0.5093, allocations: 8.802 MB / 482.9 MB, free: 6.684 MB / 330.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