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.001431/0.001431, allocations: 180.9 kB / 17.41 MB, free: 4.402 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.352/1.352, allocations: 205.4 MB / 223.6 MB, free: 9.031 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.0008294/0.0008299, allocations: 93.05 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003171/0.0003172, allocations: 8 kB / 328.1 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2471/0.2474, allocations: 47.57 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09725/0.3447, allocations: 80.54 MB / 456.3 MB, free: 92 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002618/0.3451, allocations: 71.95 kB / 456.3 MB, free: 20 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0186/0.3637, allocations: 6.733 MB / 463.1 MB, free: 9.27 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.3637, allocations: 0 / 463.1 MB, free: 9.27 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.04e-05/0.3637, allocations: 11.98 kB / 463.1 MB, free: 9.258 MB / 346.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.001222/0.365, allocations: 0.6863 MB / 463.8 MB, free: 8.52 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.365, allocations: 8.031 kB / 463.8 MB, free: 8.512 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.97e-05/0.3651, allocations: 44.47 kB / 463.8 MB, free: 8.469 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003608/0.3655, allocations: 302.5 kB / 464.1 MB, free: 8.133 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.015e-05/0.3655, allocations: 33.38 kB / 464.1 MB, free: 8.102 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.847e-05/0.3656, allocations: 36.38 kB / 464.2 MB, free: 8.066 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008011/0.3664, allocations: 426.6 kB / 464.6 MB, free: 7.645 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.3665, allocations: 0 / 464.6 MB, free: 7.645 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.769e-05/0.3665, allocations: 16 kB / 464.6 MB, free: 7.629 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.3665, allocations: 8 kB / 464.6 MB, free: 7.621 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009001/0.3674, allocations: 427.7 kB / 465 MB, free: 7.203 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002433/0.3699, allocations: 1.302 MB / 466.3 MB, free: 5.828 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007793/0.3707, allocations: 372.6 kB / 466.7 MB, free: 5.453 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004729/0.3712, allocations: 246.1 kB / 466.9 MB, free: 5.211 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.953e-05/0.3713, allocations: 12.38 kB / 467 MB, free: 5.199 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.867e-05/0.3713, allocations: 39 kB / 467 MB, free: 5.152 MB / 346.7 MB Notification: Performance of pre-optimization done (n=47): time 2.094e-06/0.3713, allocations: 0 / 467 MB, free: 5.152 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.005217/0.3766, allocations: 2.292 MB / 469.3 MB, free: 2.727 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.075e-05/0.3766, allocations: 63.78 kB / 469.3 MB, free: 2.652 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002395/0.3769, allocations: 230.5 kB / 469.6 MB, free: 2.422 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.07e-05/0.3769, allocations: 45.69 kB / 469.6 MB, free: 2.371 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.3771, allocations: 160.9 kB / 469.8 MB, free: 2.211 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001444/0.3772, allocations: 169.6 kB / 469.9 MB, free: 2.043 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.131e-05/0.3773, allocations: 12 kB / 470 MB, free: 2.031 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.3774, allocations: 346.8 kB / 470.3 MB, free: 1.684 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004521/0.3779, allocations: 221 kB / 470.5 MB, free: 1.469 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004946/0.3784, allocations: 279.2 kB / 470.8 MB, free: 1.176 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007627/0.3791, allocations: 399.7 kB / 471.2 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.3792, allocations: 0 / 471.2 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001763/0.3809, allocations: 0.7468 MB / 471.9 MB, free: 8 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.381, allocations: 7.938 kB / 471.9 MB, free: 0 / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.036e-05/0.381, allocations: 4.047 kB / 471.9 MB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009863/0.382, allocations: 474.2 kB / 472.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002701/0.3823, allocations: 63.91 kB / 472.5 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002706/0.385, allocations: 3.393 MB / 475.8 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005082/0.3855, allocations: 108.1 kB / 476 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.526e-05/0.3856, allocations: 27.98 kB / 476 MB, free: 11.64 MB / 362.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 (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.0002515/0.3858, allocations: 166.2 kB / 476.1 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.095e-05/0.3859, allocations: 35.61 kB / 476.2 MB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0017/0.3876, allocations: 0.7769 MB / 477 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.3877, allocations: 4 kB / 477 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.826e-06/0.3877, allocations: 0 / 477 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.3877, allocations: 3.984 kB / 477 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001995/0.3897, allocations: 1.209 MB / 478.2 MB, free: 9.352 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.3897, allocations: 0 / 478.2 MB, free: 9.352 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002672/0.39, allocations: 59.89 kB / 478.2 MB, free: 9.293 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009136/0.3909, allocations: 438.2 kB / 478.7 MB, free: 8.855 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.018e-05/0.391, allocations: 19.97 kB / 478.7 MB, free: 8.836 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002724/0.3937, allocations: 3.361 MB / 482 MB, free: 5.188 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.3937, allocations: 4.188 kB / 482 MB, free: 5.184 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001929/0.3956, allocations: 0.9771 MB / 483 MB, free: 4.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002274/0.3959, allocations: 152.7 kB / 483.2 MB, free: 4.012 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.441e-05/0.396, allocations: 19.94 kB / 483.2 MB, free: 3.992 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004751/0.3965, allocations: 99.91 kB / 483.3 MB, free: 3.895 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002329/0.3967, allocations: 108.2 kB / 483.4 MB, free: 3.789 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.58e-05/0.3968, allocations: 23.97 kB / 483.4 MB, free: 3.766 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000174/0.3969, allocations: 170 kB / 483.6 MB, free: 3.598 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.3969, allocations: 0 / 483.6 MB, free: 3.598 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005666/0.3975, allocations: 131.9 kB / 483.7 MB, free: 3.469 MB / 362.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) * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002762/0.3978, allocations: 143.1 kB / 483.8 MB, free: 3.32 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001562/0.3994, allocations: 0.825 MB / 484.7 MB, free: 2.457 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3994, allocations: 0 / 484.7 MB, free: 2.457 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009186/0.4003, allocations: 0.5292 MB / 485.2 MB, free: 1.902 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005078/0.4008, allocations: 52.47 kB / 485.3 MB, free: 1.852 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002065/0.4029, allocations: 1.184 MB / 486.4 MB, free: 0.6406 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004827/0.4034, allocations: 0.8074 MB / 487.2 MB, free: 15.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.866e-05/0.4035, allocations: 23.44 kB / 487.3 MB, free: 15.78 MB / 378.7 MB Notification: Performance of SimCode: time 1.032e-06/0.4035, allocations: 0 / 487.3 MB, free: 15.78 MB / 378.7 MB Notification: Performance of Templates: time 0.01211/0.4156, allocations: 8.857 MB / 496.1 MB, free: 6.926 MB / 378.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