Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [: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.00145/0.00145, allocations: 184.8 kB / 8.134 MB, free: 2.199 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.171/1.171, allocations: 221.4 MB / 229.9 MB, free: 3.062 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.0008959/0.0008958, allocations: 101.6 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.49e-06/5.52e-06, allocations: 0 / 336.5 MB, free: 9.492 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1838/0.1839, allocations: 50.4 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08318/0.2671, allocations: 80.37 MB / 467.3 MB, free: 6.387 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001836/0.2673, allocations: 67.91 kB / 467.3 MB, free: 6.32 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02748/0.2948, allocations: 9.142 MB / 476.5 MB, free: 13.21 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.418e-05/0.2948, allocations: 4 kB / 476.5 MB, free: 13.21 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0008877/0.2957, allocations: 0.5644 MB / 477.1 MB, free: 12.6 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.2958, allocations: 8.031 kB / 477.1 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000371/0.2962, allocations: 51.59 kB / 477.1 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003957/0.2966, allocations: 282.4 kB / 477.4 MB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001124/0.2967, allocations: 76.05 kB / 477.5 MB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.518e-05/0.2968, allocations: 20.94 kB / 477.5 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006056/0.2974, allocations: 365.1 kB / 477.8 MB, free: 11.76 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005033/0.2979, allocations: 309.4 kB / 478.1 MB, free: 11.44 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.2979, allocations: 7.906 kB / 478.1 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.5e-05/0.298, allocations: 3.984 kB / 478.2 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.298, allocations: 4 kB / 478.2 MB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001786/0.2998, allocations: 1.108 MB / 479.3 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004016/0.3002, allocations: 254.1 kB / 479.5 MB, free: 9.988 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002419/0.3004, allocations: 152.4 kB / 479.7 MB, free: 9.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.227e-05/0.3005, allocations: 7.938 kB / 479.7 MB, free: 9.832 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.547e-05/0.3005, allocations: 43.69 kB / 479.7 MB, free: 9.781 MB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 4.017e-06/0.3005, allocations: 0 / 479.7 MB, free: 9.781 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.00248/0.303, allocations: 1.225 MB / 480.9 MB, free: 8.461 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.265e-05/0.3031, allocations: 88.86 kB / 481 MB, free: 8.355 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001942/0.3033, allocations: 193.3 kB / 481.2 MB, free: 8.16 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.691e-05/0.3033, allocations: 29.7 kB / 481.2 MB, free: 8.125 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.005e-05/0.3034, allocations: 120.8 kB / 481.4 MB, free: 8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.3035, allocations: 149.8 kB / 481.5 MB, free: 7.852 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.227e-05/0.3035, allocations: 0 / 481.5 MB, free: 7.852 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.3036, allocations: 338.8 kB / 481.8 MB, free: 7.512 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002222/0.3039, allocations: 132.9 kB / 482 MB, free: 7.383 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002852/0.3042, allocations: 197 kB / 482.2 MB, free: 7.176 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003072/0.3045, allocations: 133.9 kB / 482.3 MB, free: 7.043 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.3045, allocations: 3.938 kB / 482.3 MB, free: 7.039 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008774/0.3054, allocations: 487.7 kB / 482.8 MB, free: 6.555 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.3054, allocations: 8 kB / 482.8 MB, free: 6.547 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.3054, allocations: 0 / 482.8 MB, free: 6.547 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006899/0.3061, allocations: 232.7 kB / 483 MB, free: 6.316 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002599/0.3064, allocations: 59.8 kB / 483.1 MB, free: 6.258 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003119/0.3095, allocations: 2.389 MB / 485.5 MB, free: 3.754 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000276/0.3098, allocations: 24.05 kB / 485.5 MB, free: 3.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.267e-05/0.3099, allocations: 19.98 kB / 485.5 MB, free: 3.711 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" 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: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001597/0.31, allocations: 116.9 kB / 485.6 MB, free: 3.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.157e-05/0.3101, allocations: 28.94 kB / 485.6 MB, free: 3.562 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.006e-05/0.3102, allocations: 34.77 kB / 485.7 MB, free: 3.531 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.453e-06/0.3102, allocations: 8 kB / 485.7 MB, free: 3.523 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.3102, allocations: 0 / 485.7 MB, free: 3.523 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.3102, allocations: 7.984 kB / 485.7 MB, free: 3.516 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001603/0.3118, allocations: 0.9552 MB / 486.6 MB, free: 2.516 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.3118, allocations: 0 / 486.6 MB, free: 2.516 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002786/0.3121, allocations: 43.97 kB / 486.7 MB, free: 2.473 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006544/0.3128, allocations: 221.3 kB / 486.9 MB, free: 2.254 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.364e-05/0.3128, allocations: 3.984 kB / 486.9 MB, free: 2.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003132/0.316, allocations: 2.347 MB / 489.3 MB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.316, allocations: 0 / 489.3 MB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001127/0.3171, allocations: 0.7201 MB / 490 MB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001899/0.3173, allocations: 140.8 kB / 490.1 MB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.443e-05/0.3174, allocations: 0.9375 kB / 490.1 MB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002974/0.3177, allocations: 28.03 kB / 490.1 MB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.3178, allocations: 39.92 kB / 490.2 MB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.891e-05/0.3179, allocations: 15.98 kB / 490.2 MB, free: 14.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001405/0.318, allocations: 152.3 kB / 490.3 MB, free: 14.65 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006089/0.3186, allocations: 120 kB / 490.5 MB, free: 14.54 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002261/0.3189, allocations: 147 kB / 490.6 MB, free: 14.38 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008233/0.3197, allocations: 494.6 kB / 491.1 MB, free: 13.89 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.3197, allocations: 4 kB / 491.1 MB, free: 13.89 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000475/0.3202, allocations: 325 kB / 491.4 MB, free: 13.56 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002798/0.3205, allocations: 20.17 kB / 491.4 MB, free: 13.54 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/0.3216, allocations: 0.5214 MB / 491.9 MB, free: 13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004348/0.322, allocations: 0.8147 MB / 492.8 MB, free: 12.16 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.3221, allocations: 0 / 492.8 MB, free: 12.16 MB / 378.7 MB Notification: Performance of Templates: time 0.01136/0.3334, allocations: 6.631 MB / 499.4 MB, free: 5.582 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches