Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [: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.000967/0.0009671, allocations: 183 kB / 8.136 MB, free: 2.207 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.156/1.156, allocations: 221.4 MB / 229.9 MB, free: 3.027 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.0009327/0.0009328, allocations: 100.3 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.282e-06/6.322e-06, allocations: 3.938 kB / 336.5 MB, free: 9.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1937/0.1937, allocations: 50.39 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1333/0.327, allocations: 81.08 MB / 468 MB, free: 5.742 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002819/0.3274, allocations: 77.03 kB / 468.1 MB, free: 5.668 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.05224/0.3796, allocations: 9.941 MB / 478 MB, free: 11.74 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.439e-05/0.3797, allocations: 12 kB / 478 MB, free: 11.73 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001617/0.3813, allocations: 0.5881 MB / 478.6 MB, free: 11.09 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/0.3814, allocations: 8.219 kB / 478.6 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005685/0.382, allocations: 59.45 kB / 478.7 MB, free: 11.03 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005933/0.3826, allocations: 282.4 kB / 478.9 MB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001819/0.3828, allocations: 84.05 kB / 479 MB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/0.3829, allocations: 23.92 kB / 479 MB, free: 10.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001173/0.3841, allocations: 401 kB / 479.4 MB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009405/0.3851, allocations: 345.7 kB / 479.8 MB, free: 9.855 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.348e-05/0.3851, allocations: 0 / 479.8 MB, free: 9.855 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.078e-05/0.3852, allocations: 0 / 479.8 MB, free: 9.855 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.658e-05/0.3852, allocations: 8 kB / 479.8 MB, free: 9.848 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002278/0.3875, allocations: 0.8284 MB / 480.6 MB, free: 8.969 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007903/0.3883, allocations: 292.6 kB / 480.9 MB, free: 8.676 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005165/0.3889, allocations: 190.1 kB / 481.1 MB, free: 8.488 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.211e-05/0.3889, allocations: 8.438 kB / 481.1 MB, free: 8.48 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.519e-05/0.389, allocations: 35 kB / 481.1 MB, free: 8.438 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 3.126e-06/0.389, allocations: 0 / 481.1 MB, free: 8.438 MB / 362.7 MB Notification: Performance of matching and sorting (n=55): time 0.005006/0.394, allocations: 1.422 MB / 482.5 MB, free: 6.926 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.165e-05/0.3941, allocations: 85.55 kB / 482.6 MB, free: 6.824 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003352/0.3945, allocations: 186.3 kB / 482.8 MB, free: 6.633 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.042e-05/0.3945, allocations: 29.7 kB / 482.8 MB, free: 6.598 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.3947, allocations: 125 kB / 483 MB, free: 6.473 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002247/0.3949, allocations: 177.3 kB / 483.1 MB, free: 6.297 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.377e-05/0.395, allocations: 0 / 483.1 MB, free: 6.297 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001932/0.3952, allocations: 338.8 kB / 483.5 MB, free: 5.957 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004735/0.3957, allocations: 157 kB / 483.6 MB, free: 5.805 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005502/0.3962, allocations: 207 kB / 483.8 MB, free: 5.59 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006129/0.3969, allocations: 150.2 kB / 484 MB, free: 5.445 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.3969, allocations: 0 / 484 MB, free: 5.445 MB / 362.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001681/0.3986, allocations: 0.5173 MB / 484.5 MB, free: 4.918 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/0.3986, allocations: 11.12 kB / 484.5 MB, free: 4.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.3986, allocations: 4.031 kB / 484.5 MB, free: 4.906 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001206/0.3999, allocations: 234.8 kB / 484.7 MB, free: 4.676 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000584/0.4005, allocations: 75.94 kB / 484.8 MB, free: 4.602 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004379/0.4049, allocations: 2.431 MB / 487.2 MB, free: 2.055 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003831/0.4053, allocations: 41.06 kB / 487.3 MB, free: 2.016 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.685e-05/0.4053, allocations: 20 kB / 487.3 MB, free: 1.996 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: 2 * 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 (33): * Single equations (assignments): 32 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0001687/0.4055, allocations: 112.9 kB / 487.4 MB, free: 1.879 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.806e-05/0.4056, allocations: 31.62 kB / 487.4 MB, free: 1.848 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.503e-05/0.4057, allocations: 39.08 kB / 487.5 MB, free: 1.809 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.254e-06/0.4057, allocations: 4 kB / 487.5 MB, free: 1.805 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.4057, allocations: 3.938 kB / 487.5 MB, free: 1.801 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.4057, allocations: 3.984 kB / 487.5 MB, free: 1.797 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001833/0.4076, allocations: 1.096 MB / 488.6 MB, free: 0.6523 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.4076, allocations: 0 / 488.6 MB, free: 0.6523 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003983/0.408, allocations: 83.81 kB / 488.7 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006627/0.4087, allocations: 228.6 kB / 488.9 MB, free: 352 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.301e-05/0.4087, allocations: 11.98 kB / 488.9 MB, free: 340 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003048/0.4118, allocations: 2.335 MB / 491.2 MB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.4118, allocations: 4 kB / 491.2 MB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001329/0.4131, allocations: 0.8318 MB / 492.1 MB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000185/0.4133, allocations: 152.8 kB / 492.2 MB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.904e-05/0.4134, allocations: 4 kB / 492.2 MB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000347/0.4137, allocations: 27.97 kB / 492.2 MB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.4139, allocations: 60.23 kB / 492.3 MB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.38e-05/0.4139, allocations: 19.98 kB / 492.3 MB, free: 12.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001376/0.4141, allocations: 150.4 kB / 492.5 MB, free: 12.59 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006247/0.4147, allocations: 127.9 kB / 492.6 MB, free: 12.46 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (31): * Single equations (assignments): 30 * 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.0002617/0.415, allocations: 139.1 kB / 492.7 MB, free: 12.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001707/0.4168, allocations: 0.5363 MB / 493.3 MB, free: 11.78 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.4168, allocations: 0 / 493.3 MB, free: 11.78 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008905/0.4177, allocations: 366.4 kB / 493.6 MB, free: 11.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004982/0.4182, allocations: 22.67 kB / 493.6 MB, free: 11.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002088/0.4203, allocations: 0.607 MB / 494.3 MB, free: 10.76 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006812/0.421, allocations: 0.8385 MB / 495.1 MB, free: 9.902 MB / 378.7 MB Notification: Performance of SimCode: time 8.72e-07/0.421, allocations: 0 / 495.1 MB, free: 9.902 MB / 378.7 MB Notification: Performance of Templates: time 0.01898/0.44, allocations: 7.229 MB / 0.4905 GB, free: 2.723 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches