Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009843/0.0009843, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000997/0.000997, allocations: 165 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9503/0.9503, allocations: 177.1 MB / 205 MB, free: 5.289 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.834e-06/1.834e-06, allocations: 0 / 273 MB, free: 1.402 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.981e-05/2.164e-05, allocations: 5.125 kB / 273 MB, free: 1.398 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004168/0.00419, allocations: 2.969 MB / 275.9 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001673/0.005863, allocations: 1.033 MB / 277 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000172/0.006035, allocations: 4 kB / 277 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002825/0.006318, allocations: 87.22 kB / 277.1 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003415/0.006659, allocations: 154.8 kB / 277.2 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003942/0.007053, allocations: 203.5 kB / 277.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005826/0.007636, allocations: 0.6162 MB / 278 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001667/0.007802, allocations: 75.03 kB / 278.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003615/0.008164, allocations: 371.3 kB / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002634/0.008427, allocations: 239.4 kB / 278.7 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.894e-05/0.008496, allocations: 44 kB / 278.7 MB, free: 11.6 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001613/0.008658, allocations: 107.9 kB / 278.8 MB, free: 11.49 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001405/0.008798, allocations: 127.5 kB / 279 MB, free: 11.37 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001411/0.008939, allocations: 175.6 kB / 279.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000518/0.009457, allocations: 466.4 kB / 279.6 MB, free: 10.74 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.009459, allocations: 0 / 279.6 MB, free: 10.74 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.00946, allocations: 0 / 279.6 MB, free: 10.74 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.009468, allocations: 0 / 279.6 MB, free: 10.74 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.0009291/0.0104, allocations: 0.7804 MB / 280.4 MB, free: 9.922 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.01043, allocations: 8.031 kB / 280.4 MB, free: 9.914 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.01054, allocations: 76.66 kB / 280.5 MB, free: 9.84 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003254/0.01087, allocations: 284 kB / 280.7 MB, free: 9.527 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.154e-05/0.0109, allocations: 29.38 kB / 280.8 MB, free: 9.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.367e-05/0.01095, allocations: 36.38 kB / 280.8 MB, free: 9.465 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004731/0.01143, allocations: 346.8 kB / 281.1 MB, free: 9.121 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.01144, allocations: 4.141 kB / 281.1 MB, free: 9.117 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.16e-05/0.01147, allocations: 16.38 kB / 281.2 MB, free: 9.102 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.01149, allocations: 15.92 kB / 281.2 MB, free: 9.086 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003993/0.01189, allocations: 257.8 kB / 281.4 MB, free: 8.832 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001342/0.01323, allocations: 1.046 MB / 282.5 MB, free: 7.738 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004977/0.01373, allocations: 289.7 kB / 282.8 MB, free: 7.438 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001956/0.01392, allocations: 145.1 kB / 282.9 MB, free: 7.293 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.272e-05/0.01395, allocations: 8.5 kB / 282.9 MB, free: 7.285 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.272e-05/0.01398, allocations: 41.83 kB / 282.9 MB, free: 7.234 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.803e-06/0.01398, allocations: 8 kB / 283 MB, free: 7.227 MB / 266.7 MB Notification: Performance of matching and sorting (n=54): time 0.002511/0.01649, allocations: 1.533 MB / 284.5 MB, free: 5.625 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.042e-05/0.01652, allocations: 59.91 kB / 284.5 MB, free: 5.551 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001819/0.0167, allocations: 296.3 kB / 284.8 MB, free: 5.246 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.578e-05/0.01674, allocations: 41.7 kB / 284.9 MB, free: 5.199 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.835e-05/0.01683, allocations: 223.6 kB / 285.1 MB, free: 4.977 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.01693, allocations: 194.4 kB / 285.3 MB, free: 4.785 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001163/0.01705, allocations: 107.9 kB / 285.4 MB, free: 4.672 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.01717, allocations: 0.5195 MB / 285.9 MB, free: 4.141 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000213/0.01739, allocations: 133.2 kB / 286 MB, free: 4.012 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002328/0.01762, allocations: 217 kB / 286.3 MB, free: 3.773 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003276/0.01795, allocations: 284 kB / 286.5 MB, free: 3.477 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.01795, allocations: 4 kB / 286.5 MB, free: 3.473 MB / 266.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0007453/0.0187, allocations: 0.5392 MB / 287.1 MB, free: 2.91 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.01871, allocations: 10.44 kB / 287.1 MB, free: 2.902 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.01871, allocations: 0 / 287.1 MB, free: 2.902 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000584/0.0193, allocations: 351.6 kB / 287.4 MB, free: 2.547 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.01944, allocations: 63.91 kB / 287.5 MB, free: 2.484 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1065/0.1259, allocations: 4.451 MB / 291.9 MB, free: 22.01 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003082/0.1262, allocations: 52.45 kB / 292 MB, free: 22.01 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.194e-05/0.1262, allocations: 20.19 kB / 292 MB, free: 22.01 MB / 266.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 (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 (44): * Single equations (assignments): 41 * 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,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0001559/0.1264, allocations: 186 kB / 292.2 MB, free: 21.85 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.575e-05/0.1265, allocations: 58.08 kB / 292.3 MB, free: 21.85 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008547/0.1273, allocations: 0.5501 MB / 292.8 MB, free: 21.77 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.1273, allocations: 5.719 kB / 292.8 MB, free: 21.77 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.1273, allocations: 0 / 292.8 MB, free: 21.77 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.1274, allocations: 4.344 kB / 292.8 MB, free: 21.77 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001222/0.1286, allocations: 0.9803 MB / 293.8 MB, free: 21.45 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.1286, allocations: 1.156 kB / 293.8 MB, free: 21.45 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001591/0.1287, allocations: 51.05 kB / 293.8 MB, free: 21.45 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005736/0.1293, allocations: 345.8 kB / 294.2 MB, free: 21.41 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.674e-05/0.1293, allocations: 21.77 kB / 294.2 MB, free: 21.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001309/0.1307, allocations: 4.457 MB / 298.7 MB, free: 17.18 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1307, allocations: 2.266 kB / 298.7 MB, free: 17.18 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009355/0.1316, allocations: 0.7794 MB / 299.4 MB, free: 16.93 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001276/0.1317, allocations: 84.11 kB / 299.5 MB, free: 16.93 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.088e-05/0.1318, allocations: 26.97 kB / 299.5 MB, free: 16.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001896/0.132, allocations: 51.52 kB / 299.6 MB, free: 16.93 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001597/0.1321, allocations: 102.8 kB / 299.7 MB, free: 16.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.988e-05/0.1321, allocations: 20.45 kB / 299.7 MB, free: 16.93 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001065/0.1323, allocations: 207 kB / 299.9 MB, free: 16.81 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1323, allocations: 0 / 299.9 MB, free: 16.81 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003301/0.1326, allocations: 123.1 kB / 300 MB, free: 16.81 MB / 266.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 (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,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007031/0.1333, allocations: 366.1 kB / 300.4 MB, free: 16.71 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008032/0.1341, allocations: 0.7386 MB / 301.1 MB, free: 16.34 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1341, allocations: 0 / 301.1 MB, free: 16.34 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004163/0.1345, allocations: 0.5777 MB / 301.7 MB, free: 15.99 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003589/0.1349, allocations: 118.8 kB / 301.8 MB, free: 15.98 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001377/0.1362, allocations: 0.8732 MB / 302.7 MB, free: 15.54 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.596e-05/0.1363, allocations: 115.7 kB / 302.8 MB, free: 15.46 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.319e-05/0.1364, allocations: 31.88 kB / 302.8 MB, free: 15.45 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.799e-05/0.1365, allocations: 37.22 kB / 302.9 MB, free: 15.45 MB / 266.7 MB Notification: Performance of SimCode: time 7.11e-07/0.1365, allocations: 0 / 302.9 MB, free: 15.45 MB / 266.7 MB Notification: Performance of Templates: time 0.01053/0.147, allocations: 9.457 MB / 312.3 MB, free: 11.31 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1264884150587022]