Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [: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.001072/0.001072, allocations: 184.2 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.19/1.19, 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.0009214/0.0009215, allocations: 94.66 kB / 280.8 MB, free: 1.289 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.303e-06/7.404e-06, allocations: 0 / 336.5 MB, free: 9.551 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2094/0.2095, allocations: 50.4 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08763/0.2972, allocations: 80.57 MB / 467.5 MB, free: 6.242 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002157/0.2974, allocations: 71.95 kB / 467.5 MB, free: 6.172 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01894/0.3164, allocations: 6.561 MB / 474.1 MB, free: 15.64 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.757e-05/0.3164, allocations: 8 kB / 474.1 MB, free: 15.63 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001205/0.3176, allocations: 0.6738 MB / 474.8 MB, free: 14.91 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.3177, allocations: 12.03 kB / 474.8 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.301e-05/0.3178, allocations: 43.44 kB / 474.8 MB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003447/0.3181, allocations: 293.4 kB / 475.1 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.583e-05/0.3182, allocations: 12 kB / 475.1 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.113e-05/0.3183, allocations: 23.91 kB / 475.2 MB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006186/0.3189, allocations: 360.6 kB / 475.5 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005729/0.3195, allocations: 350 kB / 475.9 MB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.768e-05/0.3195, allocations: 0 / 475.9 MB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.999e-05/0.3195, allocations: 0 / 475.9 MB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/0.3196, allocations: 8 kB / 475.9 MB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002514/0.3221, allocations: 1.241 MB / 477.1 MB, free: 12.49 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004361/0.3225, allocations: 250.7 kB / 477.3 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002943/0.3228, allocations: 198.2 kB / 477.5 MB, free: 12.04 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.6e-05/0.3229, allocations: 16.5 kB / 477.6 MB, free: 12.02 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/0.3229, allocations: 31 kB / 477.6 MB, free: 11.98 MB / 362.7 MB Notification: Performance of pre-optimization done (n=47): time 1.793e-06/0.3229, allocations: 0 / 477.6 MB, free: 11.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=51): time 0.003416/0.3264, allocations: 1.514 MB / 479.1 MB, free: 10.37 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.517e-05/0.3264, allocations: 55.84 kB / 479.2 MB, free: 10.3 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001656/0.3266, allocations: 184.3 kB / 479.3 MB, free: 10.12 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.31e-05/0.3266, allocations: 37.64 kB / 479.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.34e-05/0.3267, allocations: 148.7 kB / 479.5 MB, free: 9.926 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001218/0.3268, allocations: 165.6 kB / 479.7 MB, free: 9.762 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.315e-05/0.3269, allocations: 0 / 479.7 MB, free: 9.762 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.327, allocations: 346.8 kB / 480 MB, free: 9.414 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002933/0.3273, allocations: 177.3 kB / 480.2 MB, free: 9.242 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003343/0.3276, allocations: 238.9 kB / 480.4 MB, free: 8.988 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003779/0.328, allocations: 149.4 kB / 480.6 MB, free: 8.844 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.328, allocations: 4 kB / 480.6 MB, free: 8.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001556/0.3296, allocations: 0.6546 MB / 481.2 MB, free: 8.168 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.3296, allocations: 4 kB / 481.2 MB, free: 8.164 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.625e-05/0.3296, allocations: 12.11 kB / 481.2 MB, free: 8.152 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008909/0.3305, allocations: 422.9 kB / 481.7 MB, free: 7.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002913/0.3308, allocations: 75.89 kB / 481.7 MB, free: 7.656 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002678/0.3335, allocations: 3.351 MB / 485.1 MB, free: 4.055 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005296/0.3341, allocations: 104 kB / 485.2 MB, free: 3.953 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.358e-05/0.3341, allocations: 27.92 kB / 485.2 MB, free: 3.926 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0001861/0.3343, allocations: 126.5 kB / 485.3 MB, free: 3.797 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.764e-05/0.3344, allocations: 31.62 kB / 485.4 MB, free: 3.766 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001504/0.3359, allocations: 0.6732 MB / 486 MB, free: 3.078 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.3359, allocations: 4 kB / 486 MB, free: 3.074 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.336, allocations: 0 / 486 MB, free: 3.074 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.336, allocations: 3.984 kB / 486 MB, free: 3.07 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001753/0.3377, allocations: 1.081 MB / 487.1 MB, free: 1.934 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.3377, allocations: 0 / 487.1 MB, free: 1.934 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002981/0.338, allocations: 59.97 kB / 487.2 MB, free: 1.875 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008081/0.3389, allocations: 414.1 kB / 487.6 MB, free: 1.461 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.483e-05/0.3389, allocations: 12.91 kB / 487.6 MB, free: 1.449 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002484/0.3414, allocations: 3.332 MB / 490.9 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.3414, allocations: 0 / 490.9 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001421/0.3429, allocations: 0.8675 MB / 491.8 MB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001894/0.3431, allocations: 152.6 kB / 492 MB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.491e-05/0.3432, allocations: 8 kB / 492 MB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005265/0.3437, allocations: 111.9 kB / 492.1 MB, free: 12.69 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001934/0.3439, allocations: 96.2 kB / 492.2 MB, free: 12.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.67e-05/0.344, allocations: 23.98 kB / 492.2 MB, free: 12.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001556/0.3441, allocations: 157.2 kB / 492.3 MB, free: 12.42 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005329/0.3447, allocations: 107.9 kB / 492.4 MB, free: 12.31 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002267/0.3449, allocations: 139.6 kB / 492.6 MB, free: 12.17 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001117/0.346, allocations: 0.7233 MB / 493.3 MB, free: 11.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.346, allocations: 256 / 493.3 MB, free: 11.41 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00065/0.3467, allocations: 479.5 kB / 493.8 MB, free: 10.92 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003792/0.3471, allocations: 41 kB / 493.8 MB, free: 10.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001769/0.3489, allocations: 0.7556 MB / 494.6 MB, free: 10.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004343/0.3493, allocations: 0.8332 MB / 495.4 MB, free: 9.25 MB / 378.7 MB Notification: Performance of SimCode: time 3.6e-07/0.3493, allocations: 0 / 495.4 MB, free: 9.25 MB / 378.7 MB Notification: Performance of Templates: time 0.01325/0.3626, allocations: 8.662 MB / 0.4923 GB, free: 0.6523 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches