Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001211/0.001211, allocations: 182.3 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.211/1.211, allocations: 194.5 MB / 211.6 MB, free: 3.051 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001505/0.001505, allocations: 117.7 kB / 256.9 MB, free: 4.348 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002955/0.0002955, allocations: 15.94 kB / 310.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07978/0.08009, allocations: 44.49 MB / 355 MB, free: 2.348 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2419/0.3221, allocations: 73.27 MB / 428.3 MB, free: 16.27 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001675/0.3223, allocations: 71.89 kB / 428.4 MB, free: 16.23 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01281/0.3351, allocations: 5.461 MB / 433.8 MB, free: 11.55 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3351, allocations: 0 / 433.8 MB, free: 11.55 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.264e-05/0.3352, allocations: 4 kB / 433.9 MB, free: 11.54 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.0008757/0.336, allocations: 0.6181 MB / 434.5 MB, free: 10.9 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.3361, allocations: 12.02 kB / 434.5 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.163e-05/0.3362, allocations: 44.5 kB / 434.5 MB, free: 10.85 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002331/0.3364, allocations: 271.2 kB / 434.8 MB, free: 10.57 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.723e-05/0.3364, allocations: 22.06 kB / 434.8 MB, free: 10.55 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.797e-05/0.3365, allocations: 30.34 kB / 434.8 MB, free: 10.54 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005521/0.3371, allocations: 355.3 kB / 435.2 MB, free: 10.29 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/0.3371, allocations: 11.88 kB / 435.2 MB, free: 10.27 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.606e-05/0.3371, allocations: 7.594 kB / 435.2 MB, free: 10.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.3371, allocations: 8 kB / 435.2 MB, free: 10.27 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005701/0.3377, allocations: 364 kB / 435.6 MB, free: 10.02 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001612/0.3393, allocations: 1.13 MB / 436.7 MB, free: 9.031 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003991/0.3397, allocations: 285.1 kB / 437 MB, free: 8.832 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.896e-05/0.3398, allocations: 8 kB / 437 MB, free: 8.824 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.413e-05/0.3398, allocations: 34.56 kB / 437 MB, free: 8.781 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 1.914e-06/0.3398, allocations: 0 / 437 MB, free: 8.781 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.003628/0.3435, allocations: 2.013 MB / 439 MB, free: 7.031 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.423e-05/0.3435, allocations: 55.84 kB / 439.1 MB, free: 6.965 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001809/0.3437, allocations: 188.5 kB / 439.3 MB, free: 6.793 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.919e-05/0.3438, allocations: 47.56 kB / 439.3 MB, free: 6.75 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.668e-05/0.3439, allocations: 150.5 kB / 439.5 MB, free: 6.617 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.344, allocations: 163 kB / 439.6 MB, free: 6.48 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.787e-05/0.344, allocations: 7.25 kB / 439.6 MB, free: 6.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.178e-05/0.3441, allocations: 345.6 kB / 440 MB, free: 6.145 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003114/0.3444, allocations: 185.4 kB / 440.2 MB, free: 6.035 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003331/0.3448, allocations: 257.3 kB / 440.4 MB, free: 5.84 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000253/0.345, allocations: 150.1 kB / 440.5 MB, free: 5.754 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.345, allocations: 0 / 440.5 MB, free: 5.754 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001207/0.3462, allocations: 0.657 MB / 441.2 MB, free: 5.262 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.3463, allocations: 4 kB / 441.2 MB, free: 5.258 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.571e-05/0.3463, allocations: 6.031 kB / 441.2 MB, free: 5.254 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000623/0.3469, allocations: 395.3 kB / 441.6 MB, free: 4.957 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002258/0.3471, allocations: 67.91 kB / 441.7 MB, free: 4.891 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008368/0.348, allocations: 1.317 MB / 443 MB, free: 3.645 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003811/0.3484, allocations: 97.78 kB / 443.1 MB, free: 3.559 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.447e-05/0.3484, allocations: 21.98 kB / 443.1 MB, free: 3.543 MB / 314.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001631/0.3486, allocations: 165.3 kB / 443.3 MB, free: 3.395 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.991e-05/0.3487, allocations: 31.58 kB / 443.3 MB, free: 3.363 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001213/0.3499, allocations: 0.6479 MB / 443.9 MB, free: 2.852 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.3499, allocations: 8 kB / 443.9 MB, free: 2.844 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.3499, allocations: 0 / 443.9 MB, free: 2.844 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.3499, allocations: 3.984 kB / 444 MB, free: 2.84 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002107/0.3521, allocations: 1.319 MB / 445.3 MB, free: 1.445 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.3521, allocations: 4 kB / 445.3 MB, free: 1.441 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002388/0.3523, allocations: 59.91 kB / 445.3 MB, free: 1.383 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004883/0.3528, allocations: 361.9 kB / 445.7 MB, free: 1.027 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.684e-05/0.3529, allocations: 19.97 kB / 445.7 MB, free: 1.008 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008369/0.3537, allocations: 1.274 MB / 447 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/0.3537, allocations: 6.031 kB / 447 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001679/0.3554, allocations: 0.9217 MB / 447.9 MB, free: 14.69 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001811/0.3556, allocations: 152.7 kB / 448.1 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.757e-05/0.3557, allocations: 15.95 kB / 448.1 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003067/0.356, allocations: 51.95 kB / 448.1 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000186/0.3562, allocations: 107.7 kB / 448.2 MB, free: 14.35 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.03e-05/0.3562, allocations: 23.97 kB / 448.3 MB, free: 14.32 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001506/0.3564, allocations: 156.5 kB / 448.4 MB, free: 14.17 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3564, allocations: 0 / 448.4 MB, free: 14.17 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004823/0.3569, allocations: 108 kB / 448.5 MB, free: 14.07 MB / 330.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * 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.0002601/0.3572, allocations: 146.4 kB / 448.7 MB, free: 13.91 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001106/0.3583, allocations: 0.5187 MB / 449.2 MB, free: 13.38 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.3583, allocations: 0 / 449.2 MB, free: 13.38 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005891/0.3589, allocations: 287.9 kB / 449.5 MB, free: 13.1 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00037/0.3593, allocations: 45.48 kB / 449.5 MB, free: 13.06 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00228/0.3616, allocations: 1.162 MB / 450.7 MB, free: 11.87 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003977/0.362, allocations: 0.7881 MB / 451.4 MB, free: 11.05 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001383/0.3621, allocations: 34.95 kB / 451.5 MB, free: 11.02 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.193e-05/0.3622, allocations: 27.98 kB / 451.5 MB, free: 10.99 MB / 330.7 MB Notification: Performance of SimCode: time 4.01e-07/0.3622, allocations: 0 / 451.5 MB, free: 10.99 MB / 330.7 MB Notification: Performance of Templates: time 0.01167/0.3739, allocations: 7.367 MB / 458.9 MB, free: 3.68 MB / 330.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1)