Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001603/0.001603, allocations: 200.1 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 226.5 MB / 245.4 MB, free: 8.113 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001027/0.001027, allocations: 101.8 kB / 297.5 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002105/0.0002105, allocations: 4 kB / 358.1 MB, free: 10.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2101/0.2103, allocations: 51.29 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09571/0.3061, allocations: 83.2 MB / 492.6 MB, free: 8.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001911/0.3063, allocations: 76.67 kB / 492.7 MB, free: 8.246 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02375/0.3301, allocations: 9.199 MB / 0.4901 GB, free: 15.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3301, allocations: 0 / 0.4901 GB, free: 15.04 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.161e-05/0.3301, allocations: 15.98 kB / 0.4901 GB, free: 15.02 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001194/0.3313, allocations: 0.7252 MB / 0.4908 GB, free: 14.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.3314, allocations: 8.031 kB / 0.4908 GB, free: 14.24 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.017e-05/0.3315, allocations: 48.38 kB / 0.4909 GB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000382/0.3319, allocations: 318.5 kB / 0.4912 GB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.164e-05/0.3319, allocations: 33.38 kB / 0.4912 GB, free: 13.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.996e-05/0.332, allocations: 44.27 kB / 0.4912 GB, free: 13.76 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007739/0.3328, allocations: 430.7 kB / 0.4917 GB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.775e-05/0.3328, allocations: 0 / 0.4917 GB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.102e-05/0.3329, allocations: 16 kB / 0.4917 GB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.3329, allocations: 8 kB / 0.4917 GB, free: 13.31 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008925/0.3338, allocations: 451.6 kB / 0.4921 GB, free: 12.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002249/0.336, allocations: 1.32 MB / 0.4934 GB, free: 11.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007922/0.3368, allocations: 408.3 kB / 0.4938 GB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004451/0.3373, allocations: 246.1 kB / 0.494 GB, free: 10.83 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.696e-05/0.3373, allocations: 8.438 kB / 0.494 GB, free: 10.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.176e-05/0.3374, allocations: 39.03 kB / 0.4941 GB, free: 10.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 1.542e-06/0.3374, allocations: 0 / 0.4941 GB, free: 10.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.007167/0.3445, allocations: 2.361 MB / 0.4964 GB, free: 8.273 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.243e-05/0.3446, allocations: 55.84 kB / 0.4964 GB, free: 8.207 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004049/0.345, allocations: 266.6 kB / 0.4967 GB, free: 7.941 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.922e-05/0.3451, allocations: 41.7 kB / 0.4967 GB, free: 7.895 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.3453, allocations: 164.8 kB / 0.4969 GB, free: 7.727 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001969/0.3455, allocations: 181.5 kB / 0.497 GB, free: 7.547 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.995e-05/0.3455, allocations: 11.94 kB / 0.4971 GB, free: 7.535 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.3457, allocations: 346.8 kB / 0.4974 GB, free: 7.188 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006753/0.3464, allocations: 225 kB / 0.4976 GB, free: 6.969 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00074/0.3471, allocations: 287.2 kB / 0.4979 GB, free: 6.672 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001235/0.3484, allocations: 399.7 kB / 0.4983 GB, free: 6.262 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.3484, allocations: 0 / 0.4983 GB, free: 6.262 MB / 378.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002606/0.351, allocations: 0.7274 MB / 0.499 GB, free: 5.516 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.351, allocations: 4 kB / 0.499 GB, free: 5.512 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.3511, allocations: 4 kB / 0.499 GB, free: 5.508 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001591/0.3527, allocations: 379.4 kB / 0.4993 GB, free: 5.129 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004342/0.3531, allocations: 75.89 kB / 0.4994 GB, free: 5.055 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004312/0.3575, allocations: 3.437 MB / 0.5028 GB, free: 1.328 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009416/0.3584, allocations: 104 kB / 0.5029 GB, free: 1.227 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.265e-05/0.3585, allocations: 27.98 kB / 0.5029 GB, free: 1.199 MB / 378.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 41 * 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 21} Notification: Performance of prepare postOptimizeDAE: time 0.000417/0.359, allocations: 165.7 kB / 0.5031 GB, free: 1.027 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001849/0.3592, allocations: 39.53 kB / 0.5031 GB, free: 0.9883 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002692/0.3619, allocations: 0.7121 MB / 0.5038 GB, free: 268 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.048e-05/0.3619, allocations: 8 kB / 0.5038 GB, free: 260 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.3619, allocations: 0 / 0.5038 GB, free: 260 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.362, allocations: 3.984 kB / 0.5038 GB, free: 256 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2044/0.5663, allocations: 1.282 MB / 0.505 GB, free: 95.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.5664, allocations: 2.25 kB / 0.5051 GB, free: 95.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003001/0.5667, allocations: 57.59 kB / 0.5051 GB, free: 95.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009184/0.5676, allocations: 362.5 kB / 0.5055 GB, free: 95.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.698e-05/0.5677, allocations: 19.48 kB / 0.5055 GB, free: 95.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001909/0.5696, allocations: 3.421 MB / 0.5088 GB, free: 92.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.5696, allocations: 2.297 kB / 0.5088 GB, free: 92.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001781/0.5714, allocations: 1.024 MB / 0.5098 GB, free: 92.12 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001874/0.5716, allocations: 168.5 kB / 0.51 GB, free: 92.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.936e-05/0.5717, allocations: 18.06 kB / 0.51 GB, free: 92.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000467/0.5721, allocations: 103 kB / 0.5101 GB, free: 92.02 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002097/0.5723, allocations: 107.3 kB / 0.5102 GB, free: 92.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.114e-05/0.5724, allocations: 22.69 kB / 0.5102 GB, free: 92.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001643/0.5726, allocations: 185.4 kB / 0.5104 GB, free: 91.94 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5726, allocations: 1.344 kB / 0.5104 GB, free: 91.94 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00047/0.5731, allocations: 132.1 kB / 0.5105 GB, free: 91.94 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 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Number of clocked states: 0 () * 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 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007372/0.5738, allocations: 397.9 kB / 0.5109 GB, free: 91.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001413/0.5752, allocations: 0.7881 MB / 0.5117 GB, free: 91.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.5752, allocations: 0 / 0.5117 GB, free: 91.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008604/0.5761, allocations: 0.5318 MB / 0.5122 GB, free: 91.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005169/0.5766, allocations: 74.72 kB / 0.5123 GB, free: 91.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001692/0.5783, allocations: 1.206 MB / 0.5134 GB, free: 90.62 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00018/0.5785, allocations: 0.8131 MB / 0.5142 GB, free: 89.91 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001428/0.5787, allocations: 40.28 kB / 0.5143 GB, free: 89.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.12e-05/0.5788, allocations: 30.64 kB / 0.5143 GB, free: 89.9 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5788, allocations: 4 kB / 0.5143 GB, free: 89.89 MB / 378.7 MB Notification: Performance of Templates: time 0.01095/0.5897, allocations: 8.869 MB / 0.523 GB, free: 87.32 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches