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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001871/0.001871, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001828/0.001828, allocations: 153.1 kB / 24.27 MB, free: 168 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.515/1.515, allocations: 173.3 MB / 200.8 MB, free: 9.32 MB / 186.7 MB " [Timeout remaining time 178] 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=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.0.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.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 0 / 267.3 MB, free: 6.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.292e-05/3.475e-05, allocations: 6.25 kB / 267.3 MB, free: 6.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.005224/0.005258, allocations: 2.794 MB / 270.1 MB, free: 3.949 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002019/0.007277, allocations: 0.8726 MB / 271 MB, free: 3.07 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00022/0.007497, allocations: 7.938 kB / 271 MB, free: 3.062 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002679/0.007765, allocations: 67.36 kB / 271 MB, free: 2.996 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003243/0.00809, allocations: 115 kB / 271.2 MB, free: 2.883 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006461/0.008736, allocations: 219.5 kB / 271.4 MB, free: 2.668 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007924/0.009528, allocations: 0.5848 MB / 272 MB, free: 2.082 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002275/0.009756, allocations: 75.05 kB / 272 MB, free: 2.004 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006497/0.01041, allocations: 347.3 kB / 272.4 MB, free: 1.664 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004641/0.01087, allocations: 223.5 kB / 272.6 MB, free: 1.445 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001139/0.01098, allocations: 48 kB / 272.6 MB, free: 1.398 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002388/0.01122, allocations: 99.88 kB / 272.7 MB, free: 1.301 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000172/0.01139, allocations: 115.6 kB / 272.8 MB, free: 1.188 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002528/0.01165, allocations: 159.6 kB / 273 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008454/0.01249, allocations: 0.5764 MB / 273.6 MB, free: 464 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.0125, allocations: 0 / 273.6 MB, free: 464 kB / 250.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.0125, allocations: 0 / 273.6 MB, free: 464 kB / 250.7 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.01251, allocations: 0 / 273.6 MB, free: 464 kB / 250.7 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.001646/0.01415, allocations: 0.7723 MB / 274.3 MB, free: 15.64 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.0142, allocations: 16.91 kB / 274.4 MB, free: 15.63 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000186/0.01438, allocations: 72.7 kB / 274.4 MB, free: 15.56 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005166/0.0149, allocations: 251.4 kB / 274.7 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.166e-05/0.01494, allocations: 33.38 kB / 274.7 MB, free: 15.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.559e-05/0.01503, allocations: 36.38 kB / 274.7 MB, free: 15.22 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009337/0.01596, allocations: 426.9 kB / 275.2 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.406e-05/0.01599, allocations: 4.141 kB / 275.2 MB, free: 14.79 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.979e-05/0.01604, allocations: 12.38 kB / 275.2 MB, free: 14.78 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.01605, allocations: 11.94 kB / 275.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/0.01706, allocations: 423.7 kB / 275.6 MB, free: 14.35 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00275/0.01981, allocations: 1.145 MB / 276.7 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009023/0.02071, allocations: 352 kB / 277.1 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004865/0.0212, allocations: 224.1 kB / 277.3 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.689e-05/0.02126, allocations: 8.375 kB / 277.3 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.722e-05/0.02129, allocations: 41.7 kB / 277.4 MB, free: 12.52 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.623e-06/0.0213, allocations: 4 kB / 277.4 MB, free: 12.51 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.005472/0.02677, allocations: 1.898 MB / 279.3 MB, free: 10.55 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.004e-05/0.02683, allocations: 63.89 kB / 279.3 MB, free: 10.47 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003857/0.02721, allocations: 328.2 kB / 279.6 MB, free: 10.13 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.235e-05/0.02728, allocations: 37.7 kB / 279.7 MB, free: 10.09 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002007/0.02748, allocations: 231.6 kB / 279.9 MB, free: 9.855 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001933/0.02767, allocations: 174.6 kB / 280.1 MB, free: 9.684 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002314/0.0279, allocations: 115.9 kB / 280.2 MB, free: 9.559 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003247/0.02823, allocations: 0.5313 MB / 280.7 MB, free: 9.016 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005312/0.02876, allocations: 225.2 kB / 280.9 MB, free: 8.797 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006036/0.02936, allocations: 321.1 kB / 281.3 MB, free: 8.457 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009035/0.03026, allocations: 439.9 kB / 281.7 MB, free: 8.004 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.03027, allocations: 0 / 281.7 MB, free: 8.004 MB / 266.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001845/0.03211, allocations: 0.7619 MB / 282.4 MB, free: 7.219 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.03213, allocations: 4 kB / 282.4 MB, free: 7.215 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.03214, allocations: 4 kB / 282.5 MB, free: 7.211 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001317/0.03345, allocations: 0.5417 MB / 283 MB, free: 6.656 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00029/0.03374, allocations: 71.89 kB / 283.1 MB, free: 6.586 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004522/0.03827, allocations: 4.715 MB / 287.8 MB, free: 1.598 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004432/0.03871, allocations: 51.94 kB / 287.8 MB, free: 1.547 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.411e-05/0.03876, allocations: 19.98 kB / 287.9 MB, free: 1.527 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 (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.0002805/0.03904, allocations: 228 kB / 288.1 MB, free: 1.293 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.03917, allocations: 47.75 kB / 288.1 MB, free: 1.246 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001741/0.04091, allocations: 0.6996 MB / 288.8 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.04091, allocations: 4 kB / 288.8 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.04092, allocations: 4 kB / 288.8 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.183e-05/0.04093, allocations: 7.922 kB / 288.8 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1082/0.1491, allocations: 1.192 MB / 290 MB, free: 32.21 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.1491, allocations: 0 / 290 MB, free: 32.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002814/0.1494, allocations: 52.17 kB / 290.1 MB, free: 32.21 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001033/0.1505, allocations: 0.526 MB / 290.6 MB, free: 32.17 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.794e-05/0.1505, allocations: 18.02 kB / 290.6 MB, free: 32.17 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002227/0.1527, allocations: 4.682 MB / 295.3 MB, free: 27.96 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1527, allocations: 1.406 kB / 295.3 MB, free: 27.96 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001816/0.1545, allocations: 1.064 MB / 296.4 MB, free: 27.59 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002113/0.1548, allocations: 85.66 kB / 296.5 MB, free: 27.56 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.439e-05/0.1548, allocations: 18.17 kB / 296.5 MB, free: 27.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000401/0.1552, allocations: 52.84 kB / 296.5 MB, free: 27.55 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000226/0.1555, allocations: 104.7 kB / 296.6 MB, free: 27.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.608e-05/0.1555, allocations: 24.14 kB / 296.6 MB, free: 27.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001562/0.1557, allocations: 217.6 kB / 296.9 MB, free: 27.37 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1557, allocations: 1.156 kB / 296.9 MB, free: 27.37 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004954/0.1562, allocations: 124.8 kB / 297 MB, free: 27.36 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,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002225/0.1564, allocations: 145.8 kB / 297.1 MB, free: 27.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001454/0.1578, allocations: 0.8955 MB / 298 MB, free: 26.77 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1578, allocations: 0 / 298 MB, free: 26.77 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008594/0.1587, allocations: 0.6571 MB / 298.7 MB, free: 26.34 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005708/0.1593, allocations: 79.16 kB / 298.8 MB, free: 26.32 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001669/0.1609, allocations: 0.8827 MB / 299.6 MB, free: 25.83 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001823/0.1611, allocations: 197.1 kB / 299.8 MB, free: 25.75 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001246/0.1612, allocations: 29.89 kB / 299.9 MB, free: 25.74 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.038e-05/0.1613, allocations: 33.45 kB / 299.9 MB, free: 25.73 MB / 266.7 MB Notification: Performance of SimCode: time 7.02e-07/0.1613, allocations: 0 / 299.9 MB, free: 25.73 MB / 266.7 MB Notification: Performance of Templates: time 0.0133/0.1746, allocations: 8.609 MB / 308.5 MB, free: 21.36 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 240] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.686620227992535]