Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001141/0.001141, allocations: 88.73 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008797/0.0008797, allocations: 164.2 kB / 24.91 MB, free: 8.762 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9347/0.9347, allocations: 177 MB / 205.2 MB, free: 5.035 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 273.4 MB, free: 1.098 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.161e-05/2.302e-05, allocations: 2.312 kB / 273.4 MB, free: 1.094 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003427/0.00345, allocations: 2.935 MB / 276.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001742/0.005192, allocations: 1.052 MB / 277.4 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002025/0.005394, allocations: 4 kB / 277.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002957/0.00569, allocations: 87.16 kB / 277.4 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003558/0.006045, allocations: 170.8 kB / 277.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003468/0.006392, allocations: 191.6 kB / 277.8 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005044/0.006897, allocations: 0.6162 MB / 278.4 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001645/0.007061, allocations: 79.02 kB / 278.5 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003906/0.007452, allocations: 375.2 kB / 278.9 MB, free: 11.57 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002776/0.007729, allocations: 231.4 kB / 279.1 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.744e-05/0.007797, allocations: 52 kB / 279.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001483/0.007945, allocations: 103.9 kB / 279.2 MB, free: 11.19 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001263/0.008071, allocations: 135.6 kB / 279.4 MB, free: 11.05 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.0082, allocations: 167.5 kB / 279.5 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004654/0.008665, allocations: 466.5 kB / 280 MB, free: 10.43 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.008669, allocations: 0 / 280 MB, free: 10.43 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.00867, allocations: 0 / 280 MB, free: 10.43 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.111e-06/0.008676, allocations: 0 / 280 MB, free: 10.43 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.0008099/0.009486, allocations: 0.6517 MB / 280.6 MB, free: 9.758 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.159e-05/0.009517, allocations: 15.98 kB / 280.7 MB, free: 9.742 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.717e-05/0.009604, allocations: 56.89 kB / 280.7 MB, free: 9.688 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003139/0.009918, allocations: 241.2 kB / 280.9 MB, free: 9.422 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.965e-05/0.009948, allocations: 29.38 kB / 281 MB, free: 9.395 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.234e-05/0.01, allocations: 36.38 kB / 281 MB, free: 9.359 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003676/0.01037, allocations: 318.8 kB / 281.3 MB, free: 9.043 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.01038, allocations: 4.141 kB / 281.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.626e-05/0.01041, allocations: 16.38 kB / 281.3 MB, free: 9.023 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.148e-06/0.01042, allocations: 11.94 kB / 281.3 MB, free: 9.012 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002622/0.01068, allocations: 186.8 kB / 281.5 MB, free: 8.824 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001176/0.01186, allocations: 0.7691 MB / 282.3 MB, free: 8.031 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003607/0.01222, allocations: 225.2 kB / 282.5 MB, free: 7.797 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001276/0.01235, allocations: 110.3 kB / 282.6 MB, free: 7.684 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.105e-05/0.01239, allocations: 8.5 kB / 282.6 MB, free: 7.676 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.409e-05/0.01241, allocations: 43 kB / 282.7 MB, free: 7.625 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.923e-06/0.01241, allocations: 0 / 282.7 MB, free: 7.625 MB / 266.7 MB Notification: Performance of matching and sorting (n=54): time 0.002098/0.01451, allocations: 1.287 MB / 284 MB, free: 6.281 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.411e-05/0.01454, allocations: 55.91 kB / 284 MB, free: 6.215 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001823/0.01473, allocations: 246.6 kB / 284.3 MB, free: 5.961 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.236e-05/0.01477, allocations: 41.7 kB / 284.3 MB, free: 5.914 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.843e-05/0.01485, allocations: 156.9 kB / 284.5 MB, free: 5.754 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000117/0.01496, allocations: 194.4 kB / 284.6 MB, free: 5.562 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.01509, allocations: 98.28 kB / 284.7 MB, free: 5.461 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.01519, allocations: 342.8 kB / 285.1 MB, free: 5.117 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/0.01532, allocations: 89.22 kB / 285.2 MB, free: 5.027 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001463/0.01547, allocations: 156.1 kB / 285.3 MB, free: 4.859 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00024/0.01571, allocations: 241.6 kB / 285.6 MB, free: 4.602 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.01571, allocations: 4 kB / 285.6 MB, free: 4.598 MB / 266.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0004972/0.01621, allocations: 380.9 kB / 285.9 MB, free: 4.211 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.01623, allocations: 4 kB / 285.9 MB, free: 4.207 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.01623, allocations: 8 kB / 285.9 MB, free: 4.199 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005371/0.01677, allocations: 323.9 kB / 286.3 MB, free: 3.875 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001395/0.01691, allocations: 59.91 kB / 286.3 MB, free: 3.816 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001489/0.0184, allocations: 2.995 MB / 289.3 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001906/0.01859, allocations: 60.11 kB / 289.4 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.752e-05/0.01862, allocations: 15.98 kB / 289.4 MB, free: 0.543 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.0001252/0.01874, allocations: 141.1 kB / 289.5 MB, free: 404 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.865e-05/0.0188, allocations: 39.97 kB / 289.6 MB, free: 364 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1127/0.1315, allocations: 414.3 kB / 290 MB, free: 25.25 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.185e-05/0.1315, allocations: 6.156 kB / 290 MB, free: 25.25 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1315, allocations: 1.938 kB / 290 MB, free: 25.25 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.395e-05/0.1315, allocations: 3.703 kB / 290 MB, free: 25.25 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001293/0.1328, allocations: 0.6595 MB / 290.6 MB, free: 25.05 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.1328, allocations: 1.156 kB / 290.6 MB, free: 25.05 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001957/0.133, allocations: 52.22 kB / 290.7 MB, free: 25.05 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005985/0.1336, allocations: 318.4 kB / 291 MB, free: 25.02 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.195e-05/0.1337, allocations: 16.08 kB / 291 MB, free: 25.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001299/0.135, allocations: 2.994 MB / 294 MB, free: 22.26 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.135, allocations: 0.6094 kB / 294 MB, free: 22.26 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007165/0.1357, allocations: 0.5668 MB / 294.6 MB, free: 22.09 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001305/0.1358, allocations: 58.92 kB / 294.6 MB, free: 22.09 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.953e-05/0.1359, allocations: 19.97 kB / 294.7 MB, free: 22.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/0.136, allocations: 48.06 kB / 294.7 MB, free: 22.09 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/0.1362, allocations: 98.5 kB / 294.8 MB, free: 22.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.63e-05/0.1362, allocations: 16.78 kB / 294.8 MB, free: 22.09 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.826e-05/0.1363, allocations: 81.33 kB / 294.9 MB, free: 22.08 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1363, allocations: 3.688 kB / 294.9 MB, free: 22.08 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003759/0.1367, allocations: 122.7 kB / 295 MB, free: 22.08 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.0009674/0.1377, allocations: 454.2 kB / 295.5 MB, free: 21.98 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006617/0.1383, allocations: 0.5478 MB / 296 MB, free: 21.74 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/0.1383, allocations: 1.406 kB / 296 MB, free: 21.74 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003712/0.1387, allocations: 439.1 kB / 296.4 MB, free: 21.5 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003109/0.139, allocations: 104.7 kB / 296.5 MB, free: 21.5 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00134/0.1404, allocations: 0.8116 MB / 297.4 MB, free: 21.11 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.619e-05/0.1405, allocations: 112.7 kB / 297.5 MB, free: 21.03 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001244/0.1406, allocations: 38.41 kB / 297.5 MB, free: 21.02 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001702/0.1408, allocations: 114.6 kB / 297.6 MB, free: 20.97 MB / 266.7 MB Notification: Performance of SimCode: time 1.142e-06/0.1408, allocations: 0 / 297.6 MB, free: 20.97 MB / 266.7 MB Notification: Performance of Templates: time 0.01227/0.153, allocations: 9.451 MB / 307.1 MB, free: 17.68 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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: 2.8803684702143073]