Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001464/0.001464, allocations: 181.2 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.96/1.96, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001532/0.001532, allocations: 90.59 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.961e-05/3.975e-05, allocations: 0 / 321.5 MB, free: 17.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1293, allocations: 47.58 MB / 369.1 MB, free: 2.219 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4855/0.6149, allocations: 80.39 MB / 449.5 MB, free: 12.8 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002535/0.6152, allocations: 67.34 kB / 449.5 MB, free: 12.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03164/0.6468, allocations: 6.717 MB / 456.3 MB, free: 6.941 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.6469, allocations: 0 / 456.3 MB, free: 6.941 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.925e-05/0.6469, allocations: 8 kB / 456.3 MB, free: 6.934 MB / 330.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.001956/0.6489, allocations: 0.6492 MB / 456.9 MB, free: 6.262 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/0.649, allocations: 15.97 kB / 456.9 MB, free: 6.246 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001474/0.6491, allocations: 43.44 kB / 457 MB, free: 6.203 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000538/0.6497, allocations: 295.6 kB / 457.3 MB, free: 5.898 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.191e-05/0.6498, allocations: 29.03 kB / 457.3 MB, free: 5.883 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/0.6499, allocations: 36.27 kB / 457.3 MB, free: 5.859 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/0.651, allocations: 392 kB / 457.7 MB, free: 5.586 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.817e-05/0.651, allocations: 4 kB / 457.7 MB, free: 5.582 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.916e-05/0.6511, allocations: 18.62 kB / 457.7 MB, free: 5.574 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.681e-05/0.6512, allocations: 8 kB / 457.7 MB, free: 5.566 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001098/0.6523, allocations: 370.7 kB / 458.1 MB, free: 5.32 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004075/0.6564, allocations: 1.289 MB / 459.4 MB, free: 4.223 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001027/0.6574, allocations: 342.5 kB / 459.7 MB, free: 3.996 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005688/0.658, allocations: 218.9 kB / 459.9 MB, free: 3.863 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.532e-05/0.6581, allocations: 16.05 kB / 460 MB, free: 3.852 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.254e-05/0.6582, allocations: 42.81 kB / 460 MB, free: 3.805 MB / 330.7 MB Notification: Performance of pre-optimization done (n=47): time 3.427e-06/0.6582, allocations: 0 / 460 MB, free: 3.805 MB / 330.7 MB Notification: Performance of matching and sorting (n=51): time 0.004915/0.6631, allocations: 1.581 MB / 461.6 MB, free: 2.461 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.967e-05/0.6632, allocations: 59.83 kB / 461.6 MB, free: 2.387 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003262/0.6636, allocations: 203.1 kB / 461.8 MB, free: 2.191 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.878e-05/0.6637, allocations: 45.7 kB / 461.9 MB, free: 2.141 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.6638, allocations: 215.2 kB / 462.1 MB, free: 1.93 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002525/0.6641, allocations: 173.6 kB / 462.3 MB, free: 1.758 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.569e-05/0.6642, allocations: 12 kB / 462.3 MB, free: 1.746 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.6643, allocations: 326.8 kB / 462.6 MB, free: 1.418 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005895/0.6649, allocations: 189.1 kB / 462.8 MB, free: 1.234 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006569/0.6656, allocations: 255.2 kB / 463 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004905/0.6661, allocations: 159.2 kB / 463.2 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.6661, allocations: 0 / 463.2 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002642/0.6688, allocations: 0.6806 MB / 463.9 MB, free: 120 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.52e-05/0.6688, allocations: 4 kB / 463.9 MB, free: 116 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.527e-05/0.6689, allocations: 7.984 kB / 463.9 MB, free: 108 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001645/0.6705, allocations: 445.8 kB / 464.3 MB, free: 15.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005706/0.6711, allocations: 71.89 kB / 464.4 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004165/0.6753, allocations: 3.375 MB / 467.7 MB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001083/0.6765, allocations: 104 kB / 467.9 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001/0.6766, allocations: 20 kB / 467.9 MB, free: 11.8 MB / 346.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 () * 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.0002477/0.6768, allocations: 145.7 kB / 468 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.677, allocations: 47.42 kB / 468.1 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002537/0.6795, allocations: 0.699 MB / 468.8 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.6796, allocations: 4 kB / 468.8 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.6796, allocations: 3.953 kB / 468.8 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.6796, allocations: 7.984 kB / 468.8 MB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003102/0.6827, allocations: 1.159 MB / 469.9 MB, free: 9.648 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.503e-06/0.6828, allocations: 0 / 469.9 MB, free: 9.648 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005704/0.6834, allocations: 55.97 kB / 470 MB, free: 9.594 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001548/0.6849, allocations: 430.1 kB / 470.4 MB, free: 9.164 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.994e-05/0.6851, allocations: 19.97 kB / 470.4 MB, free: 9.145 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004012/0.6891, allocations: 3.358 MB / 473.8 MB, free: 5.496 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.6891, allocations: 0 / 473.8 MB, free: 5.496 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002579/0.6917, allocations: 0.8797 MB / 474.7 MB, free: 4.59 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003482/0.6921, allocations: 160.7 kB / 474.8 MB, free: 4.414 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001258/0.6923, allocations: 20 kB / 474.8 MB, free: 4.395 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009247/0.6932, allocations: 99.91 kB / 474.9 MB, free: 4.297 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003682/0.6936, allocations: 112.2 kB / 475 MB, free: 4.188 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.448e-05/0.6937, allocations: 19.98 kB / 475.1 MB, free: 4.168 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002696/0.694, allocations: 179 kB / 475.2 MB, free: 3.992 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.694, allocations: 4 kB / 475.2 MB, free: 3.988 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007199/0.6947, allocations: 120 kB / 475.4 MB, free: 3.871 MB / 346.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.0003347/0.6951, allocations: 143.8 kB / 475.5 MB, free: 3.723 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00204/0.6971, allocations: 0.7743 MB / 476.3 MB, free: 2.91 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.6971, allocations: 0 / 476.3 MB, free: 2.91 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001218/0.6984, allocations: 0.4902 MB / 476.8 MB, free: 2.395 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006158/0.699, allocations: 52.7 kB / 476.8 MB, free: 2.344 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002803/0.7018, allocations: 0.8221 MB / 477.6 MB, free: 1.492 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004824/0.7023, allocations: 0.8114 MB / 478.5 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/0.7025, allocations: 27.44 kB / 478.5 MB, free: 0.625 MB / 346.7 MB Notification: Performance of SimCode: time 8.91e-07/0.7025, allocations: 4 kB / 478.5 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of Templates: time 0.01749/0.72, allocations: 8.497 MB / 487 MB, free: 8.117 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches