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.001438/0.001438, allocations: 99.7 kB / 16.5 MB, free: 6.645 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.001557/0.001557, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.363/1.363, allocations: 222.9 MB / 241.1 MB, free: 15.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009492/0.0009492, allocations: 54.81 kB / 300 MB, free: 6.262 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08603/0.087, allocations: 49.44 MB / 349.4 MB, free: 4.812 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003634/0.09067, allocations: 2.84 MB / 352.2 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001369/0.09206, allocations: 0.8959 MB / 353.1 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001237/0.0922, allocations: 8 kB / 353.1 MB, free: 1.039 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001821/0.09239, allocations: 47.64 kB / 353.2 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001958/0.09261, allocations: 91.3 kB / 353.3 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003443/0.09296, allocations: 175.8 kB / 353.5 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004436/0.09341, allocations: 0.5461 MB / 354 MB, free: 188 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001749/0.0936, allocations: 98.58 kB / 354.1 MB, free: 84 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002323/0.09384, allocations: 223.2 kB / 354.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002563/0.0941, allocations: 259 kB / 354.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.492e-05/0.09418, allocations: 32 kB / 354.6 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001541/0.09434, allocations: 71.95 kB / 354.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001101/0.09446, allocations: 95.64 kB / 354.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001814/0.09464, allocations: 198.9 kB / 355 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004357/0.09508, allocations: 0.4986 MB / 355.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.0951, allocations: 0 / 355.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.01e-07/0.0951, allocations: 0 / 355.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.09511, allocations: 0 / 355.5 MB, free: 14.72 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.001306/0.09643, allocations: 0.737 MB / 356.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.09647, allocations: 8.031 kB / 356.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001028/0.09658, allocations: 44.41 kB / 356.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003514/0.09694, allocations: 310.6 kB / 356.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.054e-05/0.09699, allocations: 25.38 kB / 356.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.98e-05/0.09706, allocations: 36.28 kB / 356.6 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008306/0.0979, allocations: 450.6 kB / 357 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.09793, allocations: 4 kB / 357 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.043e-05/0.09798, allocations: 8 kB / 357.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.796e-06/0.09799, allocations: 8 kB / 357.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009319/0.09893, allocations: 463.7 kB / 357.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002077/0.101, allocations: 1.265 MB / 358.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007643/0.1018, allocations: 367.7 kB / 359.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004479/0.1022, allocations: 241.5 kB / 359.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.355e-05/0.1023, allocations: 12.31 kB / 359.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.736e-05/0.1023, allocations: 34.94 kB / 359.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 1.543e-06/0.1023, allocations: 0 / 359.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.004852/0.1072, allocations: 2.262 MB / 361.7 MB, free: 8.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.141e-05/0.1072, allocations: 59.84 kB / 361.7 MB, free: 8.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002361/0.1075, allocations: 254.5 kB / 362 MB, free: 7.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.619e-05/0.1075, allocations: 37.7 kB / 362 MB, free: 7.797 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.717e-05/0.1076, allocations: 168.7 kB / 362.2 MB, free: 7.625 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001273/0.1078, allocations: 165.7 kB / 362.4 MB, free: 7.461 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001664/0.108, allocations: 102.1 kB / 362.5 MB, free: 7.355 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.1081, allocations: 346.8 kB / 362.8 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004693/0.1086, allocations: 237 kB / 363 MB, free: 6.773 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004894/0.1091, allocations: 303.1 kB / 363.3 MB, free: 6.461 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007531/0.1098, allocations: 419.7 kB / 363.7 MB, free: 6.031 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-06/0.1098, allocations: 0 / 363.7 MB, free: 6.031 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001504/0.1113, allocations: 0.7587 MB / 364.5 MB, free: 5.254 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.1114, allocations: 4 kB / 364.5 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.1114, allocations: 8 kB / 364.5 MB, free: 5.242 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00108/0.1125, allocations: 0.5555 MB / 365.1 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002732/0.1127, allocations: 67.91 kB / 365.1 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002613/0.1154, allocations: 3.452 MB / 368.6 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004509/0.1158, allocations: 71.94 kB / 368.6 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.941e-05/0.1159, allocations: 19.98 kB / 368.7 MB, free: 0.7812 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.0001971/0.1161, allocations: 173.6 kB / 368.8 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.889e-05/0.1162, allocations: 35.53 kB / 368.9 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1534/0.2696, allocations: 0.7182 MB / 369.6 MB, free: 25.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-05/0.2697, allocations: 4.688 kB / 369.6 MB, free: 25.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.2697, allocations: 9.516 kB / 369.6 MB, free: 25.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.297e-05/0.2697, allocations: 5.953 kB / 369.6 MB, free: 25.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002456/0.2722, allocations: 1.257 MB / 370.9 MB, free: 25.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.2722, allocations: 1.484 kB / 370.9 MB, free: 25.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000294/0.2725, allocations: 61.23 kB / 370.9 MB, free: 25.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00104/0.2736, allocations: 0.5214 MB / 371.4 MB, free: 25.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.23e-05/0.2736, allocations: 21.17 kB / 371.5 MB, free: 25.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002193/0.2758, allocations: 3.436 MB / 374.9 MB, free: 22.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.2758, allocations: 1.203 kB / 374.9 MB, free: 22.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001881/0.2777, allocations: 1.036 MB / 375.9 MB, free: 22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001937/0.2779, allocations: 159.2 kB / 376.1 MB, free: 21.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.461e-05/0.278, allocations: 14.25 kB / 376.1 MB, free: 21.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004568/0.2785, allocations: 72.98 kB / 376.2 MB, free: 21.87 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002311/0.2787, allocations: 94.25 kB / 376.3 MB, free: 21.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.735e-05/0.2788, allocations: 20.47 kB / 376.3 MB, free: 21.85 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001715/0.279, allocations: 183.5 kB / 376.5 MB, free: 21.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.279, allocations: 0 / 376.5 MB, free: 21.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005315/0.2795, allocations: 123.8 kB / 376.6 MB, free: 21.73 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.000223/0.2797, allocations: 140.6 kB / 376.7 MB, free: 21.63 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001491/0.2812, allocations: 0.8046 MB / 377.5 MB, free: 21.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2812, allocations: 0 / 377.5 MB, free: 21.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009378/0.2822, allocations: 0.5382 MB / 378.1 MB, free: 20.9 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005372/0.2827, allocations: 56.94 kB / 378.1 MB, free: 20.88 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001964/0.2847, allocations: 1.115 MB / 379.2 MB, free: 20.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002803/0.285, allocations: 0.7961 MB / 380 MB, free: 19.48 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001666/0.2852, allocations: 31.64 kB / 380.1 MB, free: 19.47 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.805e-05/0.2853, allocations: 26.42 kB / 380.1 MB, free: 19.46 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2853, allocations: 0 / 380.1 MB, free: 19.46 MB / 302.1 MB Notification: Performance of Templates: time 0.01631/0.3016, allocations: 9.365 MB / 389.5 MB, free: 16.21 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins/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