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.002188/0.002188, allocations: 99.53 kB / 21.74 MB, free: 2.688 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.001952/0.001952, allocations: 166.8 kB / 25.03 MB, free: 8.422 MB / 18.57 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 1.391/1.391, allocations: 158.6 MB / 186.8 MB, free: 2.922 MB / 170.7 MB " [Timeout remaining time 178] 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.272e-06/1.272e-06, allocations: 0 / 250.4 MB, free: 7.844 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.38e-05/2.507e-05, allocations: 6.109 kB / 250.4 MB, free: 7.84 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004683/0.004708, allocations: 2.78 MB / 253.1 MB, free: 5.039 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00211/0.006818, allocations: 0.92 MB / 254.1 MB, free: 4.105 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001555/0.006974, allocations: 4 kB / 254.1 MB, free: 4.102 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002496/0.007224, allocations: 67.39 kB / 254.1 MB, free: 4.035 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002749/0.007499, allocations: 111 kB / 254.2 MB, free: 3.926 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005582/0.008057, allocations: 227.5 kB / 254.5 MB, free: 3.703 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006894/0.008746, allocations: 0.5771 MB / 255 MB, free: 3.125 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002029/0.008949, allocations: 79.05 kB / 255.1 MB, free: 3.047 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000492/0.009441, allocations: 347.3 kB / 255.5 MB, free: 2.707 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003965/0.009838, allocations: 231.4 kB / 255.7 MB, free: 2.48 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 9.343e-05/0.009931, allocations: 44 kB / 255.7 MB, free: 2.438 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002082/0.01014, allocations: 91.94 kB / 255.8 MB, free: 2.348 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001686/0.01031, allocations: 115.6 kB / 255.9 MB, free: 2.234 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002204/0.01053, allocations: 163.6 kB / 256.1 MB, free: 2.074 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008119/0.01134, allocations: 0.5764 MB / 256.7 MB, free: 1.496 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.01134, allocations: 0 / 256.7 MB, free: 1.496 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.01134, allocations: 0 / 256.7 MB, free: 1.496 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.01135, allocations: 7.938 kB / 256.7 MB, free: 1.488 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.001528/0.01288, allocations: 0.7569 MB / 257.4 MB, free: 0.6914 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.01292, allocations: 15.98 kB / 257.4 MB, free: 0.6758 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001742/0.0131, allocations: 72.66 kB / 257.5 MB, free: 0.6055 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004543/0.01355, allocations: 255.4 kB / 257.8 MB, free: 336 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.945e-05/0.0136, allocations: 33.36 kB / 257.8 MB, free: 304 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.073e-05/0.01369, allocations: 44.31 kB / 257.8 MB, free: 260 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009155/0.01461, allocations: 423 kB / 258.3 MB, free: 15.83 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.986e-05/0.01463, allocations: 192 / 258.3 MB, free: 15.83 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.919e-05/0.01468, allocations: 16.38 kB / 258.3 MB, free: 15.82 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.618e-05/0.01469, allocations: 11.94 kB / 258.3 MB, free: 15.8 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009984/0.01569, allocations: 431.7 kB / 258.7 MB, free: 15.38 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002562/0.01825, allocations: 1.145 MB / 259.9 MB, free: 14.19 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008802/0.01913, allocations: 332.8 kB / 260.2 MB, free: 13.85 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000733/0.01987, allocations: 220.3 kB / 260.4 MB, free: 13.63 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.255e-05/0.01992, allocations: 8.375 kB / 260.4 MB, free: 13.62 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.832e-05/0.01996, allocations: 41.7 kB / 260.4 MB, free: 13.57 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.864e-06/0.01996, allocations: 0 / 260.4 MB, free: 13.57 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.00536/0.02532, allocations: 1.903 MB / 262.3 MB, free: 11.6 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.357e-05/0.02537, allocations: 59.91 kB / 262.4 MB, free: 11.53 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003782/0.02575, allocations: 324.3 kB / 262.7 MB, free: 11.2 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 6.603e-05/0.02582, allocations: 45.69 kB / 262.8 MB, free: 11.14 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001855/0.026, allocations: 231.6 kB / 263 MB, free: 10.91 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001918/0.02619, allocations: 178.6 kB / 263.2 MB, free: 10.74 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002225/0.02642, allocations: 119.9 kB / 263.3 MB, free: 10.61 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003356/0.02675, allocations: 0.5235 MB / 263.8 MB, free: 10.08 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005095/0.02726, allocations: 225.2 kB / 264 MB, free: 9.859 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006025/0.02786, allocations: 317.1 kB / 264.3 MB, free: 9.523 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008775/0.02874, allocations: 443.9 kB / 264.8 MB, free: 9.066 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.02874, allocations: 4 kB / 264.8 MB, free: 9.062 MB / 250.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00175/0.03049, allocations: 0.7656 MB / 265.5 MB, free: 8.277 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.927e-05/0.03052, allocations: 8 kB / 265.5 MB, free: 8.27 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.996e-06/0.03053, allocations: 3.984 kB / 265.5 MB, free: 8.266 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001289/0.03182, allocations: 0.5456 MB / 266.1 MB, free: 7.707 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002859/0.03211, allocations: 63.91 kB / 266.2 MB, free: 7.645 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004615/0.03672, allocations: 4.724 MB / 270.9 MB, free: 2.645 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004333/0.03716, allocations: 55.88 kB / 270.9 MB, free: 2.59 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.152e-05/0.03721, allocations: 16 kB / 271 MB, free: 2.574 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.0002969/0.0375, allocations: 216.5 kB / 271.2 MB, free: 2.352 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001307/0.03764, allocations: 55.75 kB / 271.2 MB, free: 2.297 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001688/0.03932, allocations: 0.6995 MB / 271.9 MB, free: 1.574 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.03933, allocations: 8 kB / 271.9 MB, free: 1.566 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.03934, allocations: 4 kB / 271.9 MB, free: 1.562 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.03935, allocations: 7.922 kB / 271.9 MB, free: 1.555 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002398/0.04174, allocations: 1.178 MB / 273.1 MB, free: 336 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.04175, allocations: 0 / 273.1 MB, free: 336 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000276/0.04202, allocations: 55.91 kB / 273.2 MB, free: 280 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00118/0.0432, allocations: 0.5259 MB / 273.7 MB, free: 15.73 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.246e-05/0.04325, allocations: 19.97 kB / 273.7 MB, free: 15.71 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004424/0.04768, allocations: 4.681 MB / 278.4 MB, free: 10.76 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.04768, allocations: 0 / 278.4 MB, free: 10.76 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002144/0.04982, allocations: 1.071 MB / 279.5 MB, free: 9.652 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002279/0.05005, allocations: 87.88 kB / 279.6 MB, free: 9.566 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.238e-05/0.05014, allocations: 19.94 kB / 279.6 MB, free: 9.547 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003951/0.05053, allocations: 47.94 kB / 279.6 MB, free: 9.5 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002405/0.05077, allocations: 96.31 kB / 279.7 MB, free: 9.406 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.806e-05/0.05082, allocations: 23.97 kB / 279.7 MB, free: 9.383 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002332/0.05105, allocations: 221.1 kB / 280 MB, free: 9.164 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.05105, allocations: 0 / 280 MB, free: 9.164 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005322/0.05158, allocations: 127.9 kB / 280.1 MB, free: 9.039 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.0002693/0.05185, allocations: 135.2 kB / 280.2 MB, free: 8.898 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00178/0.05363, allocations: 0.8991 MB / 281.1 MB, free: 7.965 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.05364, allocations: 4 kB / 281.1 MB, free: 7.961 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.05474, allocations: 0.6461 MB / 281.8 MB, free: 7.277 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008322/0.05557, allocations: 88.38 kB / 281.8 MB, free: 7.191 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002165/0.05773, allocations: 0.896 MB / 282.7 MB, free: 6.262 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002403/0.05797, allocations: 205.7 kB / 282.9 MB, free: 6.043 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001329/0.05811, allocations: 30.97 kB / 283 MB, free: 6.016 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001092/0.05822, allocations: 32.48 kB / 283 MB, free: 5.984 MB / 266.7 MB Notification: Performance of SimCode: time 5.81e-07/0.05822, allocations: 0 / 283 MB, free: 5.984 MB / 266.7 MB Notification: Performance of Templates: time 0.01703/0.07524, allocations: 8.59 MB / 291.6 MB, free: 13.41 MB / 282.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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.665779168950394]