Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 110.3 kB / 17.74 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 185.4 kB / 18.67 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.307/1.307, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008946/0.0008947, allocations: 47.92 kB / 352 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2108/0.2117, allocations: 49.43 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003848/0.2155, allocations: 2.817 MB / 404.2 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001586/0.2172, allocations: 0.8842 MB / 405.1 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001943/0.2174, allocations: 8 kB / 405.1 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002122/0.2176, allocations: 63.38 kB / 405.2 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002663/0.2179, allocations: 103.1 kB / 405.3 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004837/0.2184, allocations: 219.6 kB / 405.5 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005276/0.2189, allocations: 0.5735 MB / 406.1 MB, free: 4.215 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002045/0.2191, allocations: 110.7 kB / 406.2 MB, free: 4.102 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002903/0.2194, allocations: 247.2 kB / 406.4 MB, free: 3.859 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003461/0.2198, allocations: 275 kB / 406.7 MB, free: 3.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.896e-05/0.2199, allocations: 44 kB / 406.7 MB, free: 3.547 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001898/0.2201, allocations: 91.95 kB / 406.8 MB, free: 3.457 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001239/0.2202, allocations: 115.6 kB / 406.9 MB, free: 3.344 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002092/0.2204, allocations: 218.9 kB / 407.1 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005393/0.221, allocations: 0.5384 MB / 407.7 MB, free: 2.594 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.221, allocations: 0 / 407.7 MB, free: 2.594 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.221, allocations: 0 / 407.7 MB, free: 2.594 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.344e-05/0.221, allocations: 0 / 407.7 MB, free: 2.594 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.001395/0.2224, allocations: 0.7291 MB / 408.4 MB, free: 1.812 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.2224, allocations: 15.97 kB / 408.4 MB, free: 1.797 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.874e-05/0.2226, allocations: 48.38 kB / 408.5 MB, free: 1.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003977/0.223, allocations: 302.6 kB / 408.8 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.183e-05/0.223, allocations: 29.38 kB / 408.8 MB, free: 1.387 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.528e-05/0.2231, allocations: 32.38 kB / 408.8 MB, free: 1.355 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008676/0.224, allocations: 454.6 kB / 409.3 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.838e-05/0.224, allocations: 3.906 kB / 409.3 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.818e-05/0.224, allocations: 20 kB / 409.3 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.2241, allocations: 8 kB / 409.3 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009331/0.225, allocations: 451.7 kB / 409.7 MB, free: 440 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002222/0.2272, allocations: 1.258 MB / 411 MB, free: 15.1 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007966/0.228, allocations: 367.7 kB / 411.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004775/0.2285, allocations: 249.5 kB / 411.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.793e-05/0.2286, allocations: 8.312 kB / 411.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.94e-05/0.2286, allocations: 42.88 kB / 411.7 MB, free: 14.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 1.713e-06/0.2286, allocations: 0 / 411.7 MB, free: 14.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.005231/0.2339, allocations: 2.254 MB / 413.9 MB, free: 12.03 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.866e-05/0.2339, allocations: 63.83 kB / 414 MB, free: 11.95 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002332/0.2341, allocations: 246.6 kB / 414.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.842e-05/0.2342, allocations: 37.7 kB / 414.2 MB, free: 11.67 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.379e-05/0.2343, allocations: 176.6 kB / 414.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001386/0.2344, allocations: 173.7 kB / 414.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001786/0.2346, allocations: 102.1 kB / 414.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.2347, allocations: 334.8 kB / 415 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000491/0.2352, allocations: 237 kB / 415.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005346/0.2358, allocations: 299.2 kB / 415.5 MB, free: 10.33 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008007/0.2366, allocations: 423.7 kB / 416 MB, free: 9.902 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2366, allocations: 0 / 416 MB, free: 9.902 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001594/0.2382, allocations: 0.751 MB / 416.7 MB, free: 9.133 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.2382, allocations: 15.94 kB / 416.7 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.2383, allocations: 0 / 416.7 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00103/0.2393, allocations: 0.5373 MB / 417.3 MB, free: 8.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002879/0.2396, allocations: 71.89 kB / 417.3 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002827/0.2424, allocations: 3.661 MB / 421 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005064/0.243, allocations: 71.94 kB / 421.1 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.316e-05/0.243, allocations: 16 kB / 421.1 MB, free: 4.445 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.0002016/0.2432, allocations: 170.4 kB / 421.2 MB, free: 4.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.329e-05/0.2433, allocations: 31.62 kB / 421.3 MB, free: 4.238 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001596/0.2449, allocations: 0.7247 MB / 422 MB, free: 3.504 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.979e-06/0.2449, allocations: 3.984 kB / 422 MB, free: 3.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.2449, allocations: 11.88 kB / 422 MB, free: 3.488 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001857/0.2451, allocations: 152.7 kB / 422.2 MB, free: 3.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.762e-05/0.2452, allocations: 12 kB / 422.2 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005056/0.2457, allocations: 79.89 kB / 422.3 MB, free: 3.23 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001801/0.2459, allocations: 88.23 kB / 422.3 MB, free: 3.145 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002113/0.248, allocations: 0.7853 MB / 423.1 MB, free: 2.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001587/0.2496, allocations: 0.9196 MB / 424 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004733/0.2501, allocations: 239.4 kB / 424.3 MB, free: 1.176 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001456/0.2503, allocations: 174 kB / 424.4 MB, free: 1.008 MB / 334.1 MB Notification: Performance of Backend: time 4.71e-07/0.2503, allocations: 0 / 424.4 MB, free: 1.008 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001498/0.2518, allocations: 0.7102 MB / 425.2 MB, free: 268 kB / 334.1 MB Notification: Performance of SimCode: time 0.001499/0.2533, allocations: 1.385 MB / 426.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of Templates: time 0.01444/0.2678, allocations: 9.296 MB / 435.8 MB, free: 5.559 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1)