Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001863/0.001863, allocations: 106.8 kB / 21.19 MB, free: 0.6406 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.002254/0.002254, allocations: 213.3 kB / 24.49 MB, free: 3.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.443/1.443, allocations: 230.6 MB / 258.3 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 59.92 kB / 379 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.207/0.2085, allocations: 53.36 MB / 432.3 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004446/0.213, allocations: 2.779 MB / 435.1 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001766/0.2148, allocations: 1.017 MB / 436.1 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001308/0.2149, allocations: 4 kB / 436.1 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002724/0.2152, allocations: 75.31 kB / 436.2 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003733/0.2155, allocations: 162.9 kB / 436.4 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003751/0.2159, allocations: 195.7 kB / 436.6 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006404/0.2165, allocations: 0.5969 MB / 437.2 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001825/0.2167, allocations: 85.92 kB / 437.2 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003273/0.2171, allocations: 275.2 kB / 437.5 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003901/0.2174, allocations: 295 kB / 437.8 MB, free: 1.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.672e-05/0.2175, allocations: 44 kB / 437.8 MB, free: 1.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001877/0.2177, allocations: 104 kB / 437.9 MB, free: 1.105 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001724/0.2179, allocations: 135.5 kB / 438.1 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002192/0.2181, allocations: 191.2 kB / 438.3 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006828/0.2188, allocations: 0.5951 MB / 438.9 MB, free: 196 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2188, allocations: 0 / 438.9 MB, free: 196 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2188, allocations: 0 / 438.9 MB, free: 196 kB / 334.1 MB Notification: Performance of Transformations before backend: time 6.653e-06/0.2188, allocations: 0 / 438.9 MB, free: 196 kB / 334.1 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.00159/0.2204, allocations: 0.7116 MB / 439.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.2204, allocations: 8.031 kB / 439.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001181/0.2205, allocations: 44.66 kB / 439.6 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004877/0.221, allocations: 272.8 kB / 439.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.717e-05/0.2211, allocations: 29.38 kB / 439.9 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.618e-05/0.2212, allocations: 40.25 kB / 439.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009596/0.2221, allocations: 442.6 kB / 440.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.384e-05/0.2221, allocations: 7.953 kB / 440.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.143e-05/0.2222, allocations: 12 kB / 440.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.2222, allocations: 8 kB / 440.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00107/0.2233, allocations: 443.7 kB / 440.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002428/0.2257, allocations: 1.062 MB / 441.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009442/0.2266, allocations: 381.5 kB / 442.3 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005275/0.2272, allocations: 226.1 kB / 442.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.614e-05/0.2272, allocations: 8.375 kB / 442.5 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.887e-05/0.2273, allocations: 39 kB / 442.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.834e-06/0.2273, allocations: 0 / 442.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005692/0.2329, allocations: 1.947 MB / 444.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.701e-05/0.233, allocations: 59.84 kB / 444.5 MB, free: 10.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003028/0.2333, allocations: 261.9 kB / 444.8 MB, free: 10.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.083e-05/0.2334, allocations: 41.69 kB / 444.8 MB, free: 9.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.2335, allocations: 180.9 kB / 445 MB, free: 9.797 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001839/0.2337, allocations: 194.4 kB / 445.2 MB, free: 9.605 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002014/0.2339, allocations: 98.33 kB / 445.3 MB, free: 9.504 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.234, allocations: 342.8 kB / 445.6 MB, free: 9.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005345/0.2346, allocations: 221.2 kB / 445.9 MB, free: 8.945 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005805/0.2352, allocations: 296 kB / 446.1 MB, free: 8.641 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008885/0.236, allocations: 398.8 kB / 446.5 MB, free: 8.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.236, allocations: 0 / 446.5 MB, free: 8.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001697/0.2377, allocations: 0.726 MB / 447.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.2378, allocations: 4 kB / 447.3 MB, free: 7.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.2378, allocations: 4 kB / 447.3 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001135/0.2389, allocations: 422.4 kB / 447.7 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002982/0.2392, allocations: 75.89 kB / 447.8 MB, free: 6.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003302/0.2425, allocations: 3.394 MB / 451.2 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005082/0.243, allocations: 75.94 kB / 451.2 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.086e-05/0.2431, allocations: 23.92 kB / 451.2 MB, free: 3.262 MB / 350.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 (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.0002414/0.2433, allocations: 174.4 kB / 451.4 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/0.2434, allocations: 39.75 kB / 451.5 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001741/0.2451, allocations: 0.703 MB / 452.2 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.2452, allocations: 0 / 452.2 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.2452, allocations: 4 kB / 452.2 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002231/0.2454, allocations: 87.67 kB / 452.3 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.918e-05/0.2455, allocations: 19.94 kB / 452.3 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004883/0.246, allocations: 67.91 kB / 452.3 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002088/0.2462, allocations: 96.3 kB / 452.4 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002383/0.2485, allocations: 0.7958 MB / 453.2 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001746/0.2503, allocations: 0.9219 MB / 454.1 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005052/0.2508, allocations: 215.8 kB / 454.4 MB, free: 104 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002106/0.251, allocations: 189.2 kB / 454.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of Backend: time 3.51e-07/0.251, allocations: 0 / 454.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003615/0.2546, allocations: 1.107 MB / 455.7 MB, free: 15.03 MB / 366.1 MB Notification: Performance of SimCode: time 0.001884/0.2565, allocations: 1.489 MB / 457.1 MB, free: 13.49 MB / 366.1 MB Notification: Performance of Templates: time 0.01711/0.2736, allocations: 9.92 MB / 467.1 MB, free: 3.633 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 4.552701865999552] Failed to read output from testmodel.py, exit status != 0: ['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'] 0.2814352410059655 0.296123363 0.074268832 Calling exit ...