Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 111.6 kB / 17.69 MB, free: 5.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001679/0.001679, allocations: 192 kB / 18.63 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 222.9 MB / 242.3 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001055/0.001055, allocations: 47.61 kB / 302 MB, free: 5.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08996/0.09104, allocations: 49.44 MB / 351.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003888/0.09496, allocations: 2.811 MB / 354.3 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001413/0.09641, allocations: 0.892 MB / 355.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001242/0.09655, allocations: 4 kB / 355.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002561/0.09681, allocations: 63.28 kB / 355.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000213/0.09704, allocations: 115.1 kB / 355.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000453/0.09751, allocations: 207.6 kB / 355.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005019/0.09802, allocations: 0.5696 MB / 356.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001959/0.09822, allocations: 110.7 kB / 356.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002508/0.09848, allocations: 251.2 kB / 356.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003066/0.09879, allocations: 275 kB / 356.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.405e-05/0.09887, allocations: 44 kB / 356.8 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001802/0.09905, allocations: 99.94 kB / 356.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001332/0.09919, allocations: 107.7 kB / 357 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002104/0.09941, allocations: 219 kB / 357.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005589/0.09998, allocations: 0.5334 MB / 357.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.09999, allocations: 0 / 357.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1, allocations: 0 / 357.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.235e-06/0.1, allocations: 0 / 357.8 MB, free: 13.41 MB / 302.1 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.001424/0.1014, allocations: 0.737 MB / 358.5 MB, free: 12.63 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.1015, allocations: 11.89 kB / 358.5 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.671e-05/0.1016, allocations: 44.47 kB / 358.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004681/0.1021, allocations: 302.6 kB / 358.8 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.1e-05/0.1021, allocations: 25.38 kB / 358.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.051e-05/0.1022, allocations: 40.28 kB / 358.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008422/0.1031, allocations: 450.6 kB / 359.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.256e-05/0.1031, allocations: 4 kB / 359.4 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.337e-05/0.1031, allocations: 12 kB / 359.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.1032, allocations: 8 kB / 359.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009264/0.1041, allocations: 459.7 kB / 359.8 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00218/0.1063, allocations: 1.261 MB / 361.1 MB, free: 9.918 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008243/0.1071, allocations: 366.9 kB / 361.4 MB, free: 9.551 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004724/0.1076, allocations: 249.5 kB / 361.7 MB, free: 9.305 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.113e-05/0.1077, allocations: 16.28 kB / 361.7 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.623e-05/0.1077, allocations: 34.94 kB / 361.7 MB, free: 9.246 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 1.703e-06/0.1077, allocations: 0 / 361.7 MB, free: 9.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.004869/0.1126, allocations: 2.254 MB / 364 MB, free: 6.855 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.318e-05/0.1126, allocations: 59.84 kB / 364.1 MB, free: 6.785 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002442/0.1129, allocations: 254.5 kB / 364.3 MB, free: 6.531 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.92e-05/0.1129, allocations: 37.7 kB / 364.3 MB, free: 6.488 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.917e-05/0.113, allocations: 164.7 kB / 364.5 MB, free: 6.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000131/0.1132, allocations: 169.7 kB / 364.7 MB, free: 6.152 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001767/0.1134, allocations: 102.1 kB / 364.8 MB, free: 6.047 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.1135, allocations: 338.8 kB / 365.1 MB, free: 5.707 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004634/0.114, allocations: 248.9 kB / 365.3 MB, free: 5.465 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005435/0.1145, allocations: 303.1 kB / 365.6 MB, free: 5.148 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008347/0.1154, allocations: 415.7 kB / 366 MB, free: 4.723 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.1154, allocations: 0 / 366 MB, free: 4.723 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001516/0.1169, allocations: 0.7626 MB / 366.8 MB, free: 3.941 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.1169, allocations: 4 kB / 366.8 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.1169, allocations: 4 kB / 366.8 MB, free: 3.934 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001046/0.118, allocations: 0.5451 MB / 367.4 MB, free: 3.379 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002767/0.1183, allocations: 71.91 kB / 367.4 MB, free: 3.309 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1609/0.2792, allocations: 3.648 MB / 371.1 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006088/0.2799, allocations: 76.58 kB / 371.1 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.926e-05/0.28, allocations: 17.98 kB / 371.2 MB, free: 24.84 MB / 302.1 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 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0002383/0.2802, allocations: 164.6 kB / 371.3 MB, free: 24.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.2803, allocations: 39.78 kB / 371.4 MB, free: 24.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001646/0.282, allocations: 0.7223 MB / 372.1 MB, free: 24.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.282, allocations: 5.312 kB / 372.1 MB, free: 24.66 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.282, allocations: 1.766 kB / 372.1 MB, free: 24.66 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.282, allocations: 3.375 kB / 372.1 MB, free: 24.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002326/0.2843, allocations: 1.253 MB / 373.4 MB, free: 24.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.2844, allocations: 0 / 373.4 MB, free: 24.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002832/0.2847, allocations: 62.28 kB / 373.4 MB, free: 24.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001041/0.2857, allocations: 0.5309 MB / 373.9 MB, free: 24.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.168e-05/0.2858, allocations: 18.09 kB / 374 MB, free: 24.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002141/0.2879, allocations: 3.634 MB / 377.6 MB, free: 20.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.2879, allocations: 2.469 kB / 377.6 MB, free: 20.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001753/0.2897, allocations: 1.025 MB / 378.6 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001993/0.2899, allocations: 159.7 kB / 378.8 MB, free: 20.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.858e-05/0.29, allocations: 17.5 kB / 378.8 MB, free: 20.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004417/0.2904, allocations: 75.83 kB / 378.9 MB, free: 20.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002007/0.2907, allocations: 89.52 kB / 379 MB, free: 20.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-05/0.2907, allocations: 19.41 kB / 379 MB, free: 20.17 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000158/0.2909, allocations: 181.4 kB / 379.2 MB, free: 20.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2909, allocations: 0 / 379.2 MB, free: 20.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005308/0.2914, allocations: 125.2 kB / 379.3 MB, free: 20.06 MB / 302.1 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002095/0.2916, allocations: 142 kB / 379.4 MB, free: 19.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001483/0.2931, allocations: 0.8035 MB / 380.2 MB, free: 19.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.2931, allocations: 0 / 380.2 MB, free: 19.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008287/0.294, allocations: 0.546 MB / 380.8 MB, free: 19.22 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000498/0.2945, allocations: 63.5 kB / 380.8 MB, free: 19.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001892/0.2964, allocations: 0.9594 MB / 381.8 MB, free: 18.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002588/0.2967, allocations: 0.8017 MB / 382.6 MB, free: 17.97 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001412/0.2968, allocations: 40.27 kB / 382.6 MB, free: 17.95 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.379e-05/0.2969, allocations: 29.83 kB / 382.7 MB, free: 17.94 MB / 302.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2969, allocations: 0 / 382.7 MB, free: 17.94 MB / 302.1 MB Notification: Performance of Templates: time 0.01691/0.3138, allocations: 9.992 MB / 392.6 MB, free: 14.19 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches