Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.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_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.001267/0.001268, allocations: 178.4 kB / 8.475 MB, free: 1.859 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.355/1.355, allocations: 205.2 MB / 214.1 MB, free: 5.145 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.00107/0.00107, allocations: 85.92 kB / 262.1 MB, free: 5.191 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.835e-06/7.875e-06, allocations: 0 / 315 MB, free: 41.47 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1092, allocations: 47.57 MB / 362.5 MB, free: 9.949 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3694/0.4787, allocations: 79.65 MB / 442.2 MB, free: 10.67 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/0.479, allocations: 71.28 kB / 442.3 MB, free: 10.67 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.0185/0.4975, allocations: 6.464 MB / 448.7 MB, free: 9.336 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.488e-05/0.4976, allocations: 10.53 kB / 448.7 MB, free: 9.336 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001359/0.499, allocations: 0.6665 MB / 449.4 MB, free: 8.82 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.407e-05/0.499, allocations: 11.59 kB / 449.4 MB, free: 8.816 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000121/0.4992, allocations: 46.69 kB / 449.4 MB, free: 8.793 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004059/0.4996, allocations: 288.8 kB / 449.7 MB, free: 8.535 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.201e-05/0.4996, allocations: 11.5 kB / 449.7 MB, free: 8.535 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.223e-05/0.4997, allocations: 30.5 kB / 449.8 MB, free: 8.527 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000652/0.5003, allocations: 358 kB / 450.1 MB, free: 8.484 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005726/0.5009, allocations: 347.5 kB / 450.5 MB, free: 8.375 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.411e-05/0.501, allocations: 0 / 450.5 MB, free: 8.375 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.675e-05/0.501, allocations: 0 / 450.5 MB, free: 8.375 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.501, allocations: 7.656 kB / 450.5 MB, free: 8.375 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002411/0.5035, allocations: 1.238 MB / 451.7 MB, free: 7.703 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003925/0.5039, allocations: 244.6 kB / 451.9 MB, free: 7.672 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002844/0.5042, allocations: 200.1 kB / 452.1 MB, free: 7.66 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.264e-05/0.5042, allocations: 18.16 kB / 452.2 MB, free: 7.656 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.028e-05/0.5043, allocations: 38.38 kB / 452.2 MB, free: 7.613 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 2.084e-06/0.5043, allocations: 3.781 kB / 452.2 MB, free: 7.613 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.003289/0.5076, allocations: 1.498 MB / 453.7 MB, free: 6.891 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.962e-05/0.5076, allocations: 59.66 kB / 453.8 MB, free: 6.828 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001783/0.5078, allocations: 183.5 kB / 453.9 MB, free: 6.719 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.677e-05/0.5078, allocations: 40.31 kB / 454 MB, free: 6.68 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.701e-05/0.5079, allocations: 147.3 kB / 454.1 MB, free: 6.555 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001328/0.5081, allocations: 167.1 kB / 454.3 MB, free: 6.434 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.151e-05/0.5081, allocations: 0 / 454.3 MB, free: 6.434 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.5082, allocations: 344.4 kB / 454.6 MB, free: 6.109 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002779/0.5085, allocations: 177.9 kB / 454.8 MB, free: 6.102 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003181/0.5088, allocations: 244.3 kB / 455 MB, free: 6.031 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003693/0.5092, allocations: 155.2 kB / 455.2 MB, free: 6.004 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.5092, allocations: 0 / 455.2 MB, free: 6.004 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001439/0.5107, allocations: 0.6558 MB / 455.8 MB, free: 5.844 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.5107, allocations: 9.594 kB / 455.8 MB, free: 5.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.754e-05/0.5107, allocations: 7.75 kB / 455.9 MB, free: 5.836 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009527/0.5117, allocations: 425.2 kB / 456.3 MB, free: 5.719 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002991/0.512, allocations: 81.42 kB / 456.4 MB, free: 5.699 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00231/0.5143, allocations: 3.352 MB / 459.7 MB, free: 2.676 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005255/0.5149, allocations: 104.4 kB / 459.8 MB, free: 2.641 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.99e-05/0.5149, allocations: 23.02 kB / 459.8 MB, free: 2.637 MB / 314.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.0001877/0.5151, allocations: 128.2 kB / 460 MB, free: 2.512 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.476e-05/0.5152, allocations: 31 kB / 460 MB, free: 2.496 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001429/0.5166, allocations: 0.6789 MB / 460.7 MB, free: 18.28 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.5167, allocations: 3.969 kB / 460.7 MB, free: 18.28 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.87e-06/0.5167, allocations: 1.312 kB / 460.7 MB, free: 18.28 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.5167, allocations: 3.984 kB / 460.7 MB, free: 18.27 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001974/0.5187, allocations: 1.072 MB / 461.7 MB, free: 17.77 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.5187, allocations: 0 / 461.7 MB, free: 17.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003331/0.519, allocations: 75.08 kB / 461.8 MB, free: 17.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008522/0.5199, allocations: 406 kB / 462.2 MB, free: 17.64 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.659e-05/0.5199, allocations: 11.42 kB / 462.2 MB, free: 17.64 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002757/0.5227, allocations: 3.322 MB / 465.5 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.5227, allocations: 1.219 kB / 465.5 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001569/0.5243, allocations: 0.8636 MB / 466.4 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002018/0.5245, allocations: 153.6 kB / 466.6 MB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.693e-05/0.5246, allocations: 13.34 kB / 466.6 MB, free: 14.22 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005599/0.5252, allocations: 99.31 kB / 466.7 MB, free: 14.19 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002266/0.5254, allocations: 102.9 kB / 466.8 MB, free: 14.13 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.852e-05/0.5255, allocations: 27.44 kB / 466.8 MB, free: 14.12 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001864/0.5257, allocations: 153.8 kB / 466.9 MB, free: 14.03 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006794/0.5264, allocations: 112.3 kB / 467.1 MB, free: 14.02 MB / 330.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.0003078/0.5267, allocations: 131.1 kB / 467.2 MB, free: 13.92 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001435/0.5281, allocations: 0.7285 MB / 467.9 MB, free: 13.61 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.5281, allocations: 0 / 467.9 MB, free: 13.61 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009135/0.5291, allocations: 470.5 kB / 468.4 MB, free: 13.38 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004226/0.5295, allocations: 43.16 kB / 468.4 MB, free: 13.36 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002301/0.5318, allocations: 0.7644 MB / 469.2 MB, free: 12.93 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006026/0.5324, allocations: 0.837 MB / 470 MB, free: 12.17 MB / 330.7 MB Notification: Performance of SimCode: time 7.52e-07/0.5324, allocations: 3.938 kB / 470 MB, free: 12.16 MB / 330.7 MB Notification: Performance of Templates: time 0.01684/0.5493, allocations: 8.659 MB / 478.7 MB, free: 7.742 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches