Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.00095/0.00095, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001988/0.002938, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 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.00115/0.00115, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001612/0.002762, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9474/0.9474, allocations: 158.6 MB / 171.2 MB, free: 2.512 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1628/1.11, allocations: 49.5 MB / 220.7 MB, free: 1.363 MB / 218.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.352e-06/1.352e-06, allocations: 0 / 222 MB, free: 80 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.303e-05/1.439e-05, allocations: 5.406 kB / 222 MB, free: 76 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002676/0.00269, allocations: 2.843 MB / 224.8 MB, free: 13.21 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.003804, allocations: 0.9586 MB / 225.8 MB, free: 12.24 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.003927, allocations: 7.938 kB / 225.8 MB, free: 12.23 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001326/0.00406, allocations: 63.38 kB / 225.9 MB, free: 12.17 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001618/0.004221, allocations: 118.9 kB / 226 MB, free: 12.05 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000314/0.004535, allocations: 211.6 kB / 226.2 MB, free: 11.84 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003855/0.004921, allocations: 0.5732 MB / 226.7 MB, free: 11.27 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001328/0.005054, allocations: 78.97 kB / 226.8 MB, free: 11.19 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003007/0.005354, allocations: 375.1 kB / 227.2 MB, free: 10.82 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002175/0.005572, allocations: 223.5 kB / 227.4 MB, free: 10.61 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.12e-05/0.005623, allocations: 44 kB / 227.5 MB, free: 10.56 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001586/0.005782, allocations: 99.94 kB / 227.6 MB, free: 10.46 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.741e-05/0.005859, allocations: 75.75 kB / 227.6 MB, free: 10.39 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.675e-05/0.005956, allocations: 119.8 kB / 227.7 MB, free: 10.27 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003338/0.00629, allocations: 370.8 kB / 228.1 MB, free: 9.91 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.022e-05/0.0063, allocations: 7.938 kB / 228.1 MB, free: 9.902 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.0063, allocations: 0 / 228.1 MB, free: 9.902 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.006311, allocations: 0 / 228.1 MB, free: 9.902 MB / 234.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.0007663/0.007078, allocations: 0.6985 MB / 228.8 MB, free: 9.18 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.589e-05/0.007104, allocations: 8.031 kB / 228.8 MB, free: 9.172 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.755e-05/0.007181, allocations: 60.89 kB / 228.9 MB, free: 9.113 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002344/0.007416, allocations: 212.6 kB / 229.1 MB, free: 8.875 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.76e-05/0.007443, allocations: 29.38 kB / 229.1 MB, free: 8.848 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.667e-05/0.00749, allocations: 32.36 kB / 229.1 MB, free: 8.816 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000354/0.007844, allocations: 323.6 kB / 229.5 MB, free: 8.492 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.007859, allocations: 8.188 kB / 229.5 MB, free: 8.484 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.53e-05/0.007884, allocations: 12.38 kB / 229.5 MB, free: 8.473 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.007893, allocations: 15.94 kB / 229.5 MB, free: 8.457 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002297/0.008123, allocations: 178.8 kB / 229.7 MB, free: 8.281 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/0.009131, allocations: 0.7702 MB / 230.4 MB, free: 7.48 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003355/0.009466, allocations: 212.2 kB / 230.7 MB, free: 7.262 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001193/0.009585, allocations: 108.8 kB / 230.8 MB, free: 7.156 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.409e-05/0.00962, allocations: 12.38 kB / 230.8 MB, free: 7.145 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.905e-05/0.009639, allocations: 30.94 kB / 230.8 MB, free: 7.105 MB / 234.7 MB Notification: Performance of pre-optimization done (n=45): time 1.803e-06/0.00964, allocations: 0 / 230.8 MB, free: 7.105 MB / 234.7 MB Notification: Performance of matching and sorting (n=49): time 0.0021/0.01174, allocations: 1.427 MB / 232.2 MB, free: 5.605 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.285e-05/0.01177, allocations: 63.78 kB / 232.3 MB, free: 5.527 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001259/0.0119, allocations: 221 kB / 232.5 MB, free: 5.301 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.643e-05/0.01194, allocations: 49.69 kB / 232.6 MB, free: 5.246 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.782e-05/0.01199, allocations: 152.9 kB / 232.7 MB, free: 5.09 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.803e-05/0.01208, allocations: 178.5 kB / 232.9 MB, free: 4.914 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.01218, allocations: 102.2 kB / 233 MB, free: 4.809 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.994e-05/0.01227, allocations: 346.7 kB / 233.3 MB, free: 4.461 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001242/0.0124, allocations: 93.27 kB / 233.4 MB, free: 4.371 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001477/0.01255, allocations: 160.1 kB / 233.6 MB, free: 4.195 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002266/0.01277, allocations: 254.9 kB / 233.8 MB, free: 3.93 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.01277, allocations: 4 kB / 233.8 MB, free: 3.926 MB / 234.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.000524/0.0133, allocations: 400.8 kB / 234.2 MB, free: 3.516 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.01331, allocations: 7.938 kB / 234.2 MB, free: 3.508 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.01332, allocations: 0 / 234.2 MB, free: 3.508 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005576/0.01388, allocations: 446.3 kB / 234.6 MB, free: 3.062 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001551/0.01403, allocations: 83.89 kB / 234.7 MB, free: 2.98 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001506/0.01554, allocations: 3.023 MB / 237.8 MB, free: 15.76 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000175/0.01571, allocations: 52.12 kB / 237.8 MB, free: 15.71 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.484e-05/0.01574, allocations: 19.98 kB / 237.8 MB, free: 15.69 MB / 250.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.0001185/0.01586, allocations: 140.6 kB / 238 MB, free: 15.54 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.699e-05/0.01591, allocations: 43.91 kB / 238 MB, free: 15.5 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004704/0.01638, allocations: 416.8 kB / 238.4 MB, free: 15.08 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.01639, allocations: 4 kB / 238.4 MB, free: 15.08 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.01639, allocations: 0 / 238.4 MB, free: 15.08 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.01639, allocations: 3.984 kB / 238.4 MB, free: 15.07 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007507/0.01714, allocations: 0.6638 MB / 239.1 MB, free: 14.38 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.01715, allocations: 0 / 239.1 MB, free: 14.38 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001381/0.01728, allocations: 59.91 kB / 239.1 MB, free: 14.32 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.729e-05/0.01737, allocations: 55.72 kB / 239.2 MB, free: 14.26 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004911/0.01786, allocations: 438.1 kB / 239.6 MB, free: 13.82 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.741e-05/0.01789, allocations: 19.97 kB / 239.6 MB, free: 13.8 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001412/0.0193, allocations: 3.013 MB / 242.7 MB, free: 10.59 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.0193, allocations: 3.938 kB / 242.7 MB, free: 10.59 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006094/0.01991, allocations: 0.5795 MB / 243.2 MB, free: 9.984 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.213e-05/0.01995, allocations: 16 kB / 243.3 MB, free: 9.969 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001604/0.02011, allocations: 47.94 kB / 243.3 MB, free: 9.922 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.02024, allocations: 96.25 kB / 243.4 MB, free: 9.828 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.193e-05/0.02026, allocations: 15.98 kB / 243.4 MB, free: 9.812 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.91e-05/0.02032, allocations: 82.77 kB / 243.5 MB, free: 9.727 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02032, allocations: 0 / 243.5 MB, free: 9.727 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002836/0.0206, allocations: 123.9 kB / 243.6 MB, free: 9.605 MB / 250.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.0001887/0.02079, allocations: 120.3 kB / 243.7 MB, free: 9.477 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005795/0.02137, allocations: 0.5584 MB / 244.3 MB, free: 8.895 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.164e-05/0.02138, allocations: 4 kB / 244.3 MB, free: 8.891 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003562/0.02174, allocations: 462.2 kB / 244.7 MB, free: 8.41 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003956/0.02214, allocations: 0.4888 MB / 245.2 MB, free: 7.836 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003173/0.02531, allocations: 0.7643 MB / 246 MB, free: 7.043 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.632e-05/0.02537, allocations: 109.3 kB / 246.1 MB, free: 6.914 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.362e-05/0.02546, allocations: 31.28 kB / 246.1 MB, free: 6.883 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/0.0256, allocations: 115.2 kB / 246.2 MB, free: 6.77 MB / 250.7 MB Notification: Performance of SimCode: time 8.11e-07/0.0256, allocations: 0 / 246.2 MB, free: 6.77 MB / 250.7 MB Notification: Performance of Templates: time 0.01019/0.03579, allocations: 9.615 MB / 255.9 MB, free: 13.16 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.823560061864555]