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.001731/0.001731, allocations: 109.7 kB / 17.16 MB, free: 6.328 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.001769/0.001769, allocations: 198.9 kB / 18.08 MB, free: 5.422 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.387/1.387, allocations: 222.9 MB / 241.8 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 47.73 kB / 300.6 MB, free: 6.332 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09832/0.09949, allocations: 49.45 MB / 350.1 MB, free: 4.871 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004575/0.1041, allocations: 2.836 MB / 352.9 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001936/0.1061, allocations: 0.9037 MB / 353.8 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003597/0.1065, allocations: 4 kB / 353.8 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003158/0.1069, allocations: 39.64 kB / 353.8 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004671/0.1073, allocations: 95.3 kB / 353.9 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006119/0.108, allocations: 179.8 kB / 354.1 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007417/0.1087, allocations: 0.5383 MB / 354.6 MB, free: 256 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002625/0.109, allocations: 102.6 kB / 354.7 MB, free: 148 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004226/0.1094, allocations: 227.2 kB / 355 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000444/0.1099, allocations: 259 kB / 355.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000107/0.11, allocations: 28 kB / 355.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002312/0.1102, allocations: 71.95 kB / 355.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001456/0.1104, allocations: 95.64 kB / 355.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000259/0.1107, allocations: 202.9 kB / 355.6 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004361/0.1111, allocations: 379.4 kB / 356 MB, free: 14.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.1111, allocations: 0 / 356 MB, free: 14.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1111, allocations: 0 / 356 MB, free: 14.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.033e-05/0.1112, allocations: 0 / 356 MB, free: 14.91 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.001635/0.1128, allocations: 0.737 MB / 356.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/0.1129, allocations: 8.031 kB / 356.7 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.113, allocations: 52.45 kB / 356.8 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004449/0.1135, allocations: 298.6 kB / 357.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.556e-05/0.1135, allocations: 25.38 kB / 357.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.554e-05/0.1136, allocations: 36.28 kB / 357.1 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000928/0.1146, allocations: 454.6 kB / 357.6 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.488e-05/0.1146, allocations: 4 kB / 357.6 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.628e-05/0.1146, allocations: 12 kB / 357.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.1147, allocations: 8 kB / 357.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009548/0.1156, allocations: 455.7 kB / 358 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002579/0.1182, allocations: 1.265 MB / 359.3 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008758/0.1191, allocations: 367.7 kB / 359.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004833/0.1196, allocations: 253.5 kB / 359.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.783e-05/0.1197, allocations: 4.375 kB / 359.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.1197, allocations: 38.88 kB / 360 MB, free: 10.74 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 2.995e-06/0.1197, allocations: 4 kB / 360 MB, free: 10.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.005625/0.1254, allocations: 2.254 MB / 362.2 MB, free: 8.348 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.446e-05/0.1254, allocations: 59.84 kB / 362.3 MB, free: 8.277 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003117/0.1258, allocations: 258.5 kB / 362.5 MB, free: 8.023 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.501e-05/0.1258, allocations: 37.7 kB / 362.6 MB, free: 7.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001369/0.126, allocations: 172.7 kB / 362.7 MB, free: 7.805 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001584/0.1261, allocations: 169.7 kB / 362.9 MB, free: 7.637 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001918/0.1263, allocations: 98.14 kB / 363 MB, free: 7.535 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.1265, allocations: 342.8 kB / 363.3 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004903/0.127, allocations: 237 kB / 363.6 MB, free: 6.957 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005402/0.1275, allocations: 299.2 kB / 363.9 MB, free: 6.648 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008204/0.1284, allocations: 423.7 kB / 364.3 MB, free: 6.215 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.1284, allocations: 4 kB / 364.3 MB, free: 6.211 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001648/0.13, allocations: 0.7548 MB / 365 MB, free: 5.438 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.1301, allocations: 8 kB / 365 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.1301, allocations: 0 / 365 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001233/0.1313, allocations: 0.5451 MB / 365.6 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002954/0.1316, allocations: 75.89 kB / 365.7 MB, free: 4.801 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003148/0.1348, allocations: 3.452 MB / 369.1 MB, free: 1.059 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005733/0.1354, allocations: 71.94 kB / 369.2 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-05/0.1355, allocations: 20 kB / 369.2 MB, free: 0.9688 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.0002901/0.1358, allocations: 173.7 kB / 369.4 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.1359, allocations: 35.53 kB / 369.4 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001723/0.1376, allocations: 0.7209 MB / 370.1 MB, free: 24 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.1377, allocations: 4 kB / 370.1 MB, free: 20 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.1377, allocations: 0 / 370.1 MB, free: 20 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.1377, allocations: 7.922 kB / 370.1 MB, free: 12 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1794/0.3171, allocations: 1.254 MB / 371.4 MB, free: 25.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.3171, allocations: 0 / 371.4 MB, free: 25.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000298/0.3175, allocations: 56.69 kB / 371.4 MB, free: 25.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001194/0.3187, allocations: 0.5303 MB / 372 MB, free: 25.81 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.281e-05/0.3187, allocations: 18.28 kB / 372 MB, free: 25.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002509/0.3213, allocations: 3.44 MB / 375.4 MB, free: 22.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3213, allocations: 0.5938 kB / 375.4 MB, free: 22.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002049/0.3233, allocations: 1.036 MB / 376.5 MB, free: 22.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002273/0.3236, allocations: 156.9 kB / 376.6 MB, free: 22.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.778e-05/0.3237, allocations: 14.44 kB / 376.6 MB, free: 22.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004787/0.3241, allocations: 76.02 kB / 376.7 MB, free: 22.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002615/0.3244, allocations: 87.59 kB / 376.8 MB, free: 22.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-05/0.3245, allocations: 24 kB / 376.8 MB, free: 22.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001911/0.3247, allocations: 183.5 kB / 377 MB, free: 22.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.3247, allocations: 0 / 377 MB, free: 22.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005368/0.3252, allocations: 118.5 kB / 377.1 MB, free: 22.03 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.0002423/0.3255, allocations: 147.2 kB / 377.3 MB, free: 21.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001583/0.3271, allocations: 0.805 MB / 378.1 MB, free: 21.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3271, allocations: 1.781 kB / 378.1 MB, free: 21.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008834/0.328, allocations: 0.5379 MB / 378.6 MB, free: 21.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005759/0.3286, allocations: 63.59 kB / 378.7 MB, free: 21.17 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002107/0.3307, allocations: 1.141 MB / 379.8 MB, free: 20.46 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002349/0.3309, allocations: 0.802 MB / 380.6 MB, free: 19.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.3311, allocations: 32.27 kB / 380.6 MB, free: 19.74 MB / 302.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3311, allocations: 0 / 380.6 MB, free: 19.74 MB / 302.1 MB Notification: Performance of Templates: time 0.01445/0.3455, allocations: 8.881 MB / 389.5 MB, free: 16.54 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/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