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.00192/0.00192, allocations: 87.45 kB / 21.99 MB, free: 5.195 MB / 14.72 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.002326/0.002326, allocations: 161.8 kB / 25.24 MB, free: 3.035 MB / 14.72 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.344/1.344, allocations: 158.6 MB / 187 MB, free: 6.258 MB / 174.1 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001825/0.001825, allocations: 60.3 kB / 299.4 MB, free: 6.871 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2035/0.2053, allocations: 49.14 MB / 348.5 MB, free: 15.54 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.00488/0.2102, allocations: 2.621 MB / 351.1 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002131/0.2123, allocations: 0.916 MB / 352 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002759/0.2126, allocations: 11.94 kB / 352.1 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002649/0.2129, allocations: 59.44 kB / 352.1 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003586/0.2132, allocations: 107.1 kB / 352.2 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00062/0.2138, allocations: 223.6 kB / 352.4 MB, free: 11.58 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007176/0.2146, allocations: 0.5617 MB / 353 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002009/0.2148, allocations: 86.81 kB / 353.1 MB, free: 10.93 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004293/0.2152, allocations: 259.2 kB / 353.3 MB, free: 10.68 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000441/0.2156, allocations: 255 kB / 353.6 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001025/0.2157, allocations: 44 kB / 353.6 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002162/0.2159, allocations: 91.95 kB / 353.7 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001609/0.2161, allocations: 119.6 kB / 353.8 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002567/0.2164, allocations: 183.2 kB / 354 MB, free: 9.996 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007442/0.2171, allocations: 0.5356 MB / 354.5 MB, free: 9.465 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.2171, allocations: 4 kB / 354.6 MB, free: 9.461 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2171, allocations: 0 / 354.6 MB, free: 9.461 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.93e-05/0.2171, allocations: 0 / 354.6 MB, free: 9.461 MB / 318.1 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.001653/0.2188, allocations: 0.6767 MB / 355.2 MB, free: 8.75 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.2188, allocations: 15.92 kB / 355.2 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001284/0.219, allocations: 48.66 kB / 355.3 MB, free: 8.688 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000512/0.2195, allocations: 249.3 kB / 355.5 MB, free: 8.418 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.226e-05/0.2195, allocations: 25.38 kB / 355.6 MB, free: 8.395 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.259e-05/0.2196, allocations: 36.38 kB / 355.6 MB, free: 8.359 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009313/0.2205, allocations: 442.6 kB / 356 MB, free: 7.922 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.066e-05/0.2205, allocations: 4 kB / 356 MB, free: 7.918 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.741e-05/0.2206, allocations: 16 kB / 356 MB, free: 7.902 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.2206, allocations: 8 kB / 356.1 MB, free: 7.895 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001063/0.2217, allocations: 455.7 kB / 356.5 MB, free: 7.445 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002435/0.2241, allocations: 1.047 MB / 357.5 MB, free: 6.352 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/0.2251, allocations: 344.2 kB / 357.9 MB, free: 6.008 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005078/0.2256, allocations: 229.5 kB / 358.1 MB, free: 5.781 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.274e-05/0.2257, allocations: 8.312 kB / 358.1 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.614e-05/0.2257, allocations: 38.94 kB / 358.2 MB, free: 5.727 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 1.873e-06/0.2257, allocations: 4 kB / 358.2 MB, free: 5.723 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.005624/0.2313, allocations: 1.952 MB / 360.1 MB, free: 3.711 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.684e-05/0.2314, allocations: 59.84 kB / 360.2 MB, free: 3.641 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000334/0.2317, allocations: 253.8 kB / 360.4 MB, free: 3.387 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.581e-05/0.2318, allocations: 41.7 kB / 360.5 MB, free: 3.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001496/0.2319, allocations: 176.8 kB / 360.6 MB, free: 3.16 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001883/0.2321, allocations: 174.6 kB / 360.8 MB, free: 2.988 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001923/0.2323, allocations: 98.28 kB / 360.9 MB, free: 2.887 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.2325, allocations: 338.8 kB / 361.2 MB, free: 2.547 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005377/0.233, allocations: 233.2 kB / 361.5 MB, free: 2.316 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005771/0.2336, allocations: 308.1 kB / 361.8 MB, free: 2 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008674/0.2345, allocations: 415 kB / 362.2 MB, free: 1.574 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.2345, allocations: 0 / 362.2 MB, free: 1.574 MB / 318.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001685/0.2362, allocations: 0.7496 MB / 362.9 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.2362, allocations: 8 kB / 362.9 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.2362, allocations: 0 / 362.9 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001122/0.2373, allocations: 0.5452 MB / 363.5 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002914/0.2376, allocations: 75.83 kB / 363.5 MB, free: 176 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003451/0.2411, allocations: 3.404 MB / 366.9 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005131/0.2416, allocations: 79.97 kB / 367 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.564e-05/0.2416, allocations: 23.98 kB / 367 MB, free: 12.43 MB / 334.1 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.0002402/0.2419, allocations: 162.3 kB / 367.2 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.859e-05/0.242, allocations: 31.81 kB / 367.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001647/0.2436, allocations: 0.7107 MB / 367.9 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.457e-06/0.2436, allocations: 11.92 kB / 368 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2436, allocations: 7.875 kB / 368 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.2436, allocations: 7.984 kB / 368 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002267/0.2459, allocations: 1.103 MB / 369.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.122e-06/0.2459, allocations: 7.984 kB / 369.1 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002882/0.2462, allocations: 47.97 kB / 369.1 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001124/0.2473, allocations: 0.5371 MB / 369.7 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.994e-05/0.2474, allocations: 19.97 kB / 369.7 MB, free: 9.715 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003208/0.2506, allocations: 3.377 MB / 373.1 MB, free: 6.105 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.2506, allocations: 0 / 373.1 MB, free: 6.105 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002167/0.2527, allocations: 1.019 MB / 374.1 MB, free: 5.059 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002162/0.2529, allocations: 87.72 kB / 374.2 MB, free: 4.973 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.545e-05/0.253, allocations: 20.16 kB / 374.2 MB, free: 4.953 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005447/0.2536, allocations: 71.91 kB / 374.3 MB, free: 4.883 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002124/0.2538, allocations: 92.31 kB / 374.3 MB, free: 4.793 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.327e-05/0.2538, allocations: 15.98 kB / 374.4 MB, free: 4.777 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001763/0.254, allocations: 177.2 kB / 374.5 MB, free: 4.605 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.254, allocations: 0 / 374.5 MB, free: 4.605 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005665/0.2546, allocations: 131.9 kB / 374.7 MB, free: 4.477 MB / 334.1 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.0002439/0.2548, allocations: 135 kB / 374.8 MB, free: 4.332 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001727/0.2565, allocations: 0.7716 MB / 375.6 MB, free: 3.531 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.2565, allocations: 0 / 375.6 MB, free: 3.531 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009612/0.2575, allocations: 0.5104 MB / 376.1 MB, free: 2.996 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005136/0.258, allocations: 64.45 kB / 376.1 MB, free: 2.934 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002069/0.2601, allocations: 0.9884 MB / 377.1 MB, free: 1.918 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002103/0.2603, allocations: 193.8 kB / 377.3 MB, free: 1.711 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001297/0.2604, allocations: 30.97 kB / 377.4 MB, free: 1.68 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.443e-05/0.2605, allocations: 28.5 kB / 377.4 MB, free: 1.652 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2605, allocations: 4 kB / 377.4 MB, free: 1.648 MB / 334.1 MB Notification: Performance of Templates: time 0.01616/0.2767, allocations: 8.572 MB / 386 MB, free: 9.055 MB / 350.1 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/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.583368133986369]