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.001455/0.001455, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001037/0.001037, allocations: 168.6 kB / 25 MB, free: 8.863 MB / 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 1.018/1.018, allocations: 177.1 MB / 205.3 MB, free: 5.633 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.282e-06/1.282e-06, allocations: 0 / 273 MB, free: 1.859 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.461e-05/1.589e-05, allocations: 2.312 kB / 273 MB, free: 1.855 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002982/0.002998, allocations: 2.957 MB / 276 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001244/0.004242, allocations: 1.033 MB / 277 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001265/0.004368, allocations: 7.938 kB / 277 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002459/0.004614, allocations: 79.25 kB / 277.1 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002577/0.004872, allocations: 166.8 kB / 277.3 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002395/0.005111, allocations: 187.6 kB / 277.5 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000463/0.005574, allocations: 0.6201 MB / 278.1 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001615/0.005736, allocations: 75.03 kB / 278.2 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002865/0.006022, allocations: 375.2 kB / 278.5 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002293/0.006252, allocations: 235.4 kB / 278.8 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.917e-05/0.006311, allocations: 48 kB / 278.8 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00012/0.006431, allocations: 103.8 kB / 278.9 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001226/0.006553, allocations: 135.6 kB / 279 MB, free: 11.83 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001277/0.006681, allocations: 171.5 kB / 279.2 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005496/0.007231, allocations: 458.5 kB / 279.7 MB, free: 11.21 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.007233, allocations: 0 / 279.7 MB, free: 11.21 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.007234, allocations: 0 / 279.7 MB, free: 11.21 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.007239, allocations: 4 kB / 279.7 MB, free: 11.21 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.0008655/0.008105, allocations: 0.7842 MB / 280.4 MB, free: 10.39 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.989e-05/0.008135, allocations: 8.031 kB / 280.4 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.008243, allocations: 80.66 kB / 280.5 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002937/0.008537, allocations: 284 kB / 280.8 MB, free: 9.992 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.251e-05/0.008569, allocations: 29.38 kB / 280.8 MB, free: 9.965 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.438e-05/0.008624, allocations: 36.38 kB / 280.9 MB, free: 9.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004706/0.009094, allocations: 346.9 kB / 281.2 MB, free: 9.586 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.009111, allocations: 4.141 kB / 281.2 MB, free: 9.582 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.036e-05/0.009141, allocations: 12.38 kB / 281.2 MB, free: 9.57 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.009153, allocations: 15.94 kB / 281.2 MB, free: 9.555 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004153/0.009568, allocations: 269.7 kB / 281.5 MB, free: 9.289 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001295/0.01086, allocations: 1.042 MB / 282.5 MB, free: 8.199 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004867/0.01135, allocations: 293.2 kB / 282.8 MB, free: 7.898 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002086/0.01156, allocations: 145.1 kB / 283 MB, free: 7.754 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.291e-05/0.01159, allocations: 16.5 kB / 283 MB, free: 7.738 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.089e-05/0.01161, allocations: 33.89 kB / 283 MB, free: 7.695 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.543e-06/0.01161, allocations: 0 / 283 MB, free: 7.695 MB / 266.7 MB Notification: Performance of matching and sorting (n=54): time 0.002774/0.01439, allocations: 1.545 MB / 284.6 MB, free: 6.082 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/0.01442, allocations: 59.91 kB / 284.6 MB, free: 6.008 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001927/0.01461, allocations: 288.3 kB / 284.9 MB, free: 5.711 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.921e-05/0.01465, allocations: 49.62 kB / 285 MB, free: 5.656 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.487e-05/0.01474, allocations: 219.6 kB / 285.2 MB, free: 5.438 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000115/0.01486, allocations: 194.5 kB / 285.4 MB, free: 5.246 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.01498, allocations: 103.9 kB / 285.5 MB, free: 5.137 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.0151, allocations: 0.5156 MB / 286 MB, free: 4.609 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002194/0.01532, allocations: 137.2 kB / 286.1 MB, free: 4.477 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002409/0.01556, allocations: 213.1 kB / 286.3 MB, free: 4.242 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003467/0.01591, allocations: 280 kB / 286.6 MB, free: 3.949 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.01591, allocations: 0 / 286.6 MB, free: 3.949 MB / 266.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0007732/0.01668, allocations: 0.5432 MB / 287.1 MB, free: 3.383 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.0167, allocations: 15.88 kB / 287.2 MB, free: 3.367 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.0167, allocations: 3.984 kB / 287.2 MB, free: 3.363 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006157/0.01732, allocations: 353.2 kB / 287.5 MB, free: 3.008 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.01746, allocations: 59.91 kB / 287.6 MB, free: 2.949 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002464/0.01992, allocations: 4.455 MB / 292 MB, free: 14.21 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002008/0.02012, allocations: 51.94 kB / 292.1 MB, free: 14.16 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.717e-05/0.02015, allocations: 24.16 kB / 292.1 MB, free: 14.14 MB / 282.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.0001344/0.02028, allocations: 192.4 kB / 292.3 MB, free: 13.94 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.964e-05/0.02036, allocations: 59.75 kB / 292.3 MB, free: 13.88 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007756/0.02114, allocations: 0.5433 MB / 292.9 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.02114, allocations: 4 kB / 292.9 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.02114, allocations: 0 / 292.9 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.02115, allocations: 3.984 kB / 292.9 MB, free: 13.31 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001164/0.02231, allocations: 0.9832 MB / 293.9 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.02232, allocations: 3.938 kB / 293.9 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001431/0.02246, allocations: 55.97 kB / 293.9 MB, free: 12.21 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000517/0.02298, allocations: 338.7 kB / 294.3 MB, free: 11.87 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.005e-05/0.02301, allocations: 19.98 kB / 294.3 MB, free: 11.85 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001851/0.02486, allocations: 4.46 MB / 298.7 MB, free: 7.121 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.02486, allocations: 0 / 298.7 MB, free: 7.121 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009406/0.0258, allocations: 0.7782 MB / 299.5 MB, free: 6.316 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001203/0.02592, allocations: 87.67 kB / 299.6 MB, free: 6.23 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.267e-05/0.02597, allocations: 23.94 kB / 299.6 MB, free: 6.207 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00019/0.02616, allocations: 52 kB / 299.7 MB, free: 6.156 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001442/0.02631, allocations: 96.31 kB / 299.8 MB, free: 6.059 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.711e-05/0.02633, allocations: 27.97 kB / 299.8 MB, free: 6.031 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001122/0.02645, allocations: 201.1 kB / 300 MB, free: 5.832 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02645, allocations: 3.938 kB / 300 MB, free: 5.828 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002972/0.02674, allocations: 124 kB / 300.1 MB, free: 5.707 MB / 282.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.0007286/0.02747, allocations: 378 kB / 300.5 MB, free: 5.453 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008075/0.02828, allocations: 0.7356 MB / 301.2 MB, free: 4.684 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.02828, allocations: 256 / 301.2 MB, free: 4.684 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004479/0.02873, allocations: 0.5797 MB / 301.8 MB, free: 4.066 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003408/0.02907, allocations: 95.8 kB / 301.9 MB, free: 3.973 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001352/0.03042, allocations: 0.8929 MB / 302.8 MB, free: 3.047 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.955e-05/0.03049, allocations: 114.3 kB / 302.9 MB, free: 2.906 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.851e-05/0.03057, allocations: 27.3 kB / 302.9 MB, free: 2.879 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.189e-05/0.03064, allocations: 40.48 kB / 303 MB, free: 2.84 MB / 282.7 MB Notification: Performance of SimCode: time 8.62e-07/0.03064, allocations: 0 / 303 MB, free: 2.84 MB / 282.7 MB Notification: Performance of Templates: time 0.1093/0.1399, allocations: 8.823 MB / 311.8 MB, free: 41.36 MB / 282.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.037788348039612]