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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001058/0.001058, allocations: 182.3 kB / 18.04 MB, free: 3.785 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.262/1.262, allocations: 205.4 MB / 224.2 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.0007051/0.0007051, allocations: 92.05 kB / 272.5 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000333/0.000333, allocations: 8 kB / 329.5 MB, free: 15.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2274/0.2278, allocations: 47.56 MB / 377 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08827/0.3161, allocations: 80.55 MB / 457.6 MB, free: 8 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002099/0.3163, allocations: 68.05 kB / 457.6 MB, free: 15.94 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0193/0.3357, allocations: 6.745 MB / 464.4 MB, free: 9.184 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3357, allocations: 0 / 464.4 MB, free: 9.184 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.774e-05/0.3357, allocations: 8 kB / 464.4 MB, free: 9.176 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.001539/0.3373, allocations: 0.6863 MB / 465.1 MB, free: 8.438 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.3373, allocations: 8.031 kB / 465.1 MB, free: 8.43 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001384/0.3375, allocations: 40.47 kB / 465.1 MB, free: 8.391 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004086/0.3379, allocations: 314.5 kB / 465.4 MB, free: 8.043 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.978e-05/0.338, allocations: 25.38 kB / 465.5 MB, free: 8.02 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.51e-05/0.3381, allocations: 36.38 kB / 465.5 MB, free: 7.984 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008973/0.339, allocations: 426.6 kB / 465.9 MB, free: 7.562 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.538e-05/0.339, allocations: 0 / 465.9 MB, free: 7.562 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.725e-05/0.3391, allocations: 16 kB / 465.9 MB, free: 7.547 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.369e-05/0.3391, allocations: 8 kB / 465.9 MB, free: 7.539 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008843/0.34, allocations: 431.6 kB / 466.4 MB, free: 7.117 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002353/0.3423, allocations: 1.29 MB / 467.6 MB, free: 5.754 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007836/0.3431, allocations: 380.5 kB / 468 MB, free: 5.371 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004504/0.3436, allocations: 244.3 kB / 468.3 MB, free: 5.133 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.613e-05/0.3437, allocations: 12.38 kB / 468.3 MB, free: 5.121 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/0.3437, allocations: 39 kB / 468.3 MB, free: 5.074 MB / 346.7 MB Notification: Performance of pre-optimization done (n=47): time 2.465e-06/0.3437, allocations: 0 / 468.3 MB, free: 5.074 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.005053/0.3488, allocations: 2.296 MB / 470.6 MB, free: 2.645 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.693e-05/0.3488, allocations: 63.78 kB / 470.7 MB, free: 2.57 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000259/0.3491, allocations: 238.5 kB / 470.9 MB, free: 2.328 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.541e-05/0.3492, allocations: 41.7 kB / 470.9 MB, free: 2.281 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.3493, allocations: 156.8 kB / 471.1 MB, free: 2.125 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001425/0.3494, allocations: 169.6 kB / 471.3 MB, free: 1.957 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.232e-05/0.3495, allocations: 12 kB / 471.3 MB, free: 1.945 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.3496, allocations: 342.8 kB / 471.6 MB, free: 1.602 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004614/0.3501, allocations: 217 kB / 471.8 MB, free: 1.391 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004925/0.3506, allocations: 283.2 kB / 472.1 MB, free: 1.094 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007868/0.3513, allocations: 403.7 kB / 472.5 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3514, allocations: 0 / 472.5 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001743/0.3531, allocations: 0.7469 MB / 473.2 MB, free: 15.92 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.3531, allocations: 11.88 kB / 473.2 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.431e-05/0.3532, allocations: 4.125 kB / 473.2 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009531/0.3541, allocations: 466.1 kB / 473.7 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002719/0.3544, allocations: 67.91 kB / 473.8 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002687/0.3571, allocations: 3.389 MB / 477.2 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005219/0.3577, allocations: 108 kB / 477.3 MB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.983e-05/0.3577, allocations: 20 kB / 477.3 MB, free: 11.56 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.0002406/0.358, allocations: 174.2 kB / 477.5 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.731e-05/0.3581, allocations: 31.62 kB / 477.5 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001731/0.3598, allocations: 0.7769 MB / 478.3 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.3598, allocations: 4 kB / 478.3 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.3598, allocations: 3.984 kB / 478.3 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.3598, allocations: 0 / 478.3 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002098/0.3619, allocations: 1.221 MB / 479.5 MB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.362, allocations: 0 / 479.5 MB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002759/0.3622, allocations: 51.97 kB / 479.5 MB, free: 9.207 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000883/0.3631, allocations: 438.9 kB / 480 MB, free: 8.77 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.636e-05/0.3632, allocations: 19.97 kB / 480 MB, free: 8.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002528/0.3657, allocations: 3.369 MB / 483.4 MB, free: 5.094 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.3657, allocations: 4.219 kB / 483.4 MB, free: 5.09 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001815/0.3676, allocations: 0.9693 MB / 484.3 MB, free: 4.094 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002074/0.3678, allocations: 156.7 kB / 484.5 MB, free: 3.922 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.407e-05/0.3679, allocations: 12 kB / 484.5 MB, free: 3.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004752/0.3684, allocations: 103.9 kB / 484.6 MB, free: 3.809 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002144/0.3686, allocations: 108.2 kB / 484.7 MB, free: 3.703 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.09e-05/0.3686, allocations: 19.98 kB / 484.7 MB, free: 3.684 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000159/0.3688, allocations: 170 kB / 484.9 MB, free: 3.516 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3688, allocations: 0 / 484.9 MB, free: 3.516 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005384/0.3694, allocations: 135.9 kB / 485 MB, free: 3.383 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.0002387/0.3696, allocations: 143.1 kB / 485.2 MB, free: 3.234 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001534/0.3711, allocations: 0.825 MB / 486 MB, free: 2.371 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3712, allocations: 0 / 486 MB, free: 2.371 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008511/0.372, allocations: 0.5253 MB / 486.5 MB, free: 1.82 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004997/0.3725, allocations: 56.47 kB / 486.6 MB, free: 1.766 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001979/0.3745, allocations: 1.159 MB / 487.7 MB, free: 0.5859 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004353/0.375, allocations: 0.7996 MB / 488.5 MB, free: 15.76 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001478/0.3751, allocations: 27.3 kB / 488.5 MB, free: 15.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.315e-05/0.3752, allocations: 27.42 kB / 488.6 MB, free: 15.7 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.3752, allocations: 0 / 488.6 MB, free: 15.7 MB / 378.7 MB Notification: Performance of Templates: time 0.06108/0.4363, allocations: 8.534 MB / 497.1 MB, free: 7.18 MB / 378.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/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_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches