Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.00167/0.00167, allocations: 114.5 kB / 21.18 MB, free: 0.7422 MB / 14.72 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.00201/0.00201, allocations: 211.4 kB / 24.48 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.433/1.433, allocations: 230.4 MB / 258.1 MB, free: 8.145 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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002063/0.002063, allocations: 71.83 kB / 378.7 MB, free: 2.898 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.218, allocations: 53.31 MB / 432.1 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004524/0.2226, allocations: 2.993 MB / 435 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001668/0.2242, allocations: 1.056 MB / 436.1 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.2243, allocations: 7.938 kB / 436.1 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002574/0.2246, allocations: 79.34 kB / 436.2 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003351/0.2249, allocations: 158.8 kB / 436.3 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003392/0.2253, allocations: 187.7 kB / 436.5 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006219/0.2259, allocations: 0.6007 MB / 437.1 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.2261, allocations: 82.7 kB / 437.2 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003092/0.2264, allocations: 267.2 kB / 437.5 MB, free: 1.949 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003912/0.2268, allocations: 291 kB / 437.8 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.782e-05/0.2269, allocations: 48 kB / 437.8 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001764/0.227, allocations: 95.98 kB / 437.9 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001615/0.2272, allocations: 131.6 kB / 438 MB, free: 1.395 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002267/0.2274, allocations: 242.9 kB / 438.3 MB, free: 1.156 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006562/0.2281, allocations: 0.5891 MB / 438.8 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.2281, allocations: 0 / 438.8 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2281, allocations: 0 / 438.8 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.2281, allocations: 0 / 438.8 MB, free: 0.5664 MB / 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.001569/0.2297, allocations: 0.7831 MB / 439.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.2297, allocations: 8.031 kB / 439.6 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.2298, allocations: 44.66 kB / 439.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004753/0.2303, allocations: 334.5 kB / 440 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.283e-05/0.2303, allocations: 29.38 kB / 440 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.615e-05/0.2304, allocations: 40.38 kB / 440.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008945/0.2313, allocations: 438.6 kB / 440.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.576e-05/0.2313, allocations: 7.953 kB / 440.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.715e-05/0.2314, allocations: 12 kB / 440.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.2314, allocations: 8 kB / 440.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001025/0.2324, allocations: 443.7 kB / 441 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002466/0.2349, allocations: 1.277 MB / 442.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008992/0.2358, allocations: 380.3 kB / 442.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004993/0.2363, allocations: 226.1 kB / 442.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.38e-05/0.2363, allocations: 12.41 kB / 442.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.794e-05/0.2363, allocations: 39 kB / 442.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.703e-06/0.2363, allocations: 4 kB / 442.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005782/0.2421, allocations: 2.241 MB / 445.1 MB, free: 9.961 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.84e-05/0.2422, allocations: 59.84 kB / 445.2 MB, free: 9.891 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003109/0.2425, allocations: 278.5 kB / 445.5 MB, free: 9.613 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.947e-05/0.2425, allocations: 37.7 kB / 445.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.2427, allocations: 173 kB / 445.7 MB, free: 9.398 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001723/0.2428, allocations: 186.5 kB / 445.8 MB, free: 9.215 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001852/0.243, allocations: 102.2 kB / 445.9 MB, free: 9.109 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.2432, allocations: 346.8 kB / 446.3 MB, free: 8.762 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000534/0.2437, allocations: 225 kB / 446.5 MB, free: 8.539 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000566/0.2443, allocations: 287.2 kB / 446.8 MB, free: 8.246 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009194/0.2452, allocations: 399.7 kB / 447.2 MB, free: 7.836 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2452, allocations: 0 / 447.2 MB, free: 7.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001695/0.2469, allocations: 0.7276 MB / 447.9 MB, free: 7.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.2469, allocations: 4 kB / 447.9 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.2469, allocations: 0 / 447.9 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001084/0.248, allocations: 426.3 kB / 448.3 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002845/0.2483, allocations: 71.88 kB / 448.4 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003396/0.2517, allocations: 3.657 MB / 452.1 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005288/0.2522, allocations: 79.81 kB / 452.1 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.782e-05/0.2523, allocations: 19.98 kB / 452.1 MB, free: 2.535 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.0002352/0.2525, allocations: 170.4 kB / 452.3 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.2526, allocations: 39.77 kB / 452.4 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001732/0.2543, allocations: 0.7084 MB / 453.1 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/0.2543, allocations: 7.922 kB / 453.1 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.2543, allocations: 0 / 453.1 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002234/0.2546, allocations: 160.8 kB / 453.2 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.742e-05/0.2547, allocations: 19.98 kB / 453.2 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005225/0.2552, allocations: 75.91 kB / 453.3 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002072/0.2554, allocations: 92.34 kB / 453.4 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002462/0.2579, allocations: 0.7939 MB / 454.2 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001793/0.2596, allocations: 0.92 MB / 455.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004985/0.2601, allocations: 212.4 kB / 455.3 MB, free: 15.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002028/0.2603, allocations: 194 kB / 455.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of Backend: time 1.6e-07/0.2603, allocations: 0 / 455.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003372/0.2637, allocations: 1.064 MB / 456.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of SimCode: time 0.001966/0.2657, allocations: 1.501 MB / 458.1 MB, free: 12.66 MB / 366.1 MB Notification: Performance of Templates: time 0.01751/0.2832, allocations: 10.05 MB / 468.1 MB, free: 2.648 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 4.454115256201476] 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.29117591585963964 0.30465890700000003 0.073675525 Calling exit ...