Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.7814/0.7814, allocations: 110.8 MB / 123.3 MB, free: 10.75 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001641/0.001641, allocations: 143.5 kB / 149.1 MB, free: 0.9648 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.936e-05/1.938e-05, allocations: 4 kB / 180.2 MB, free: 17.55 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04442/0.04445, allocations: 25.18 MB / 205.4 MB, free: 8.426 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.04703/0.09151, allocations: 34.81 MB / 240.2 MB, free: 5.555 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002212/0.09179, allocations: 63.97 kB / 240.3 MB, free: 5.492 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01447/0.1063, allocations: 5.016 MB / 245.3 MB, free: 468 kB / 186.7 MB Notification: Performance of FrontEnd: time 3.747e-06/0.1063, allocations: 0 / 245.3 MB, free: 468 kB / 186.7 MB Notification: Performance of Transformations before backend: time 2.486e-05/0.1064, allocations: 7.938 kB / 245.3 MB, free: 460 kB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.09913/0.2055, allocations: 0.5891 MB / 245.9 MB, free: 40.79 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.2056, allocations: 9.719 kB / 245.9 MB, free: 40.79 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001685/0.2057, allocations: 33.19 kB / 245.9 MB, free: 40.77 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003179/0.2061, allocations: 257.3 kB / 246.2 MB, free: 40.57 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.485e-05/0.2061, allocations: 22.98 kB / 246.2 MB, free: 40.57 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.574e-05/0.2062, allocations: 32.28 kB / 246.2 MB, free: 40.56 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000677/0.2069, allocations: 359.4 kB / 246.6 MB, free: 40.52 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.113e-05/0.2069, allocations: 5.844 kB / 246.6 MB, free: 40.52 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.759e-05/0.207, allocations: 10.45 kB / 246.6 MB, free: 40.52 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.207, allocations: 11.73 kB / 246.6 MB, free: 40.52 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006213/0.2076, allocations: 375.3 kB / 247 MB, free: 40.52 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001923/0.2095, allocations: 1.104 MB / 248.1 MB, free: 40.09 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003739/0.2099, allocations: 269.2 kB / 248.3 MB, free: 40.05 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002505/0.2102, allocations: 179.8 kB / 248.5 MB, free: 40.03 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.35e-05/0.2102, allocations: 6.766 kB / 248.5 MB, free: 40.03 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.582e-05/0.2103, allocations: 37.47 kB / 248.6 MB, free: 39.99 MB / 186.7 MB Notification: Performance of pre-optimization done (n=37): time 2.865e-06/0.2103, allocations: 0 / 248.6 MB, free: 39.99 MB / 186.7 MB Notification: Performance of matching and sorting (n=43): time 0.002605/0.2129, allocations: 1.46 MB / 250 MB, free: 39.17 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.346e-05/0.2129, allocations: 58.91 kB / 250.1 MB, free: 39.11 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001818/0.2131, allocations: 209.1 kB / 250.3 MB, free: 38.97 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 4.136e-05/0.2132, allocations: 40.55 kB / 250.3 MB, free: 38.93 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.243e-05/0.2132, allocations: 148.8 kB / 250.5 MB, free: 38.8 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.903e-05/0.2133, allocations: 149.8 kB / 250.6 MB, free: 38.7 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.647e-05/0.2134, allocations: 9.781 kB / 250.6 MB, free: 38.69 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 5.561e-05/0.2134, allocations: 341.1 kB / 251 MB, free: 38.36 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002953/0.2137, allocations: 190.8 kB / 251.1 MB, free: 38.29 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003239/0.2141, allocations: 266.5 kB / 251.4 MB, free: 38.14 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002482/0.2143, allocations: 160.5 kB / 251.6 MB, free: 38.09 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.2143, allocations: 3.953 kB / 251.6 MB, free: 38.09 MB / 186.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001275/0.2156, allocations: 0.6512 MB / 252.2 MB, free: 37.83 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.826e-05/0.2156, allocations: 6.578 kB / 252.2 MB, free: 37.83 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.2157, allocations: 5.594 kB / 252.2 MB, free: 37.83 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001042/0.2167, allocations: 0.5003 MB / 252.7 MB, free: 37.72 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002923/0.217, allocations: 73.78 kB / 252.8 MB, free: 37.71 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001073/0.2181, allocations: 1.379 MB / 254.2 MB, free: 36.54 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004755/0.2186, allocations: 91.41 kB / 254.3 MB, free: 36.53 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.067e-05/0.2187, allocations: 26.88 kB / 254.3 MB, free: 36.52 MB / 186.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001229/0.2188, allocations: 134.2 kB / 254.4 MB, free: 36.4 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.94e-05/0.2189, allocations: 26.53 kB / 254.4 MB, free: 36.39 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001259/0.219, allocations: 46.7 kB / 254.5 MB, free: 36.35 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.219, allocations: 9.625 kB / 254.5 MB, free: 36.35 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.219, allocations: 0 / 254.5 MB, free: 36.35 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.219, allocations: 7.188 kB / 254.5 MB, free: 36.34 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002419/0.2215, allocations: 1.335 MB / 255.8 MB, free: 35.67 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.2215, allocations: 0 / 255.8 MB, free: 35.67 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000243/0.2217, allocations: 58.7 kB / 255.9 MB, free: 35.66 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005933/0.2223, allocations: 483.4 kB / 256.4 MB, free: 35.54 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.728e-05/0.2224, allocations: 23.48 kB / 256.4 MB, free: 35.53 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007629/0.2231, allocations: 1.324 MB / 257.7 MB, free: 34.39 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.2232, allocations: 128 / 257.7 MB, free: 34.39 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001273/0.2244, allocations: 0.9635 MB / 258.7 MB, free: 33.84 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001552/0.2246, allocations: 153.7 kB / 258.8 MB, free: 33.71 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.433e-05/0.2247, allocations: 19.72 kB / 258.9 MB, free: 33.7 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002778/0.225, allocations: 55.73 kB / 258.9 MB, free: 33.69 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001688/0.2251, allocations: 99.3 kB / 259 MB, free: 33.67 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.175e-05/0.2252, allocations: 31.12 kB / 259 MB, free: 33.66 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001113/0.2253, allocations: 154.5 kB / 259.2 MB, free: 33.57 MB / 186.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2253, allocations: 0 / 259.2 MB, free: 33.57 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004599/0.2258, allocations: 98.56 kB / 259.3 MB, free: 33.55 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002139/0.226, allocations: 137.4 kB / 259.4 MB, free: 33.45 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0008414/0.2269, allocations: 469.5 kB / 259.9 MB, free: 33.29 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.2269, allocations: 0 / 259.9 MB, free: 33.29 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004476/0.2273, allocations: 267.7 kB / 260.1 MB, free: 33.19 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003831/0.2277, allocations: 40.58 kB / 260.2 MB, free: 33.16 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001656/0.2294, allocations: 0.8538 MB / 261 MB, free: 32.39 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001623/0.2296, allocations: 0.7832 MB / 261.8 MB, free: 31.62 MB / 186.7 MB Notification: Performance of simCode: alias equations: time 0.0001229/0.2297, allocations: 30.55 kB / 261.8 MB, free: 31.61 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.034e-05/0.2298, allocations: 23.44 kB / 261.9 MB, free: 31.58 MB / 186.7 MB Notification: Performance of SimCode: time 7.92e-07/0.2298, allocations: 0 / 261.9 MB, free: 31.58 MB / 186.7 MB Notification: Performance of Templates: time 0.008685/0.2385, allocations: 7.004 MB / 268.9 MB, free: 24.93 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1)