Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.009183/0.009183, allocations: 164.8 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.32/1.32, allocations: 170.8 MB / 186.6 MB, free: 1.121 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001708/0.001708, allocations: 106.6 kB / 226.2 MB, free: 10.11 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003731/0.0003732, allocations: 12 kB / 274.1 MB, free: 10.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2562/0.2566, allocations: 38.77 MB / 312.9 MB, free: 38.79 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08893/0.3456, allocations: 67.94 MB / 380.8 MB, free: 6.574 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002618/0.3459, allocations: 67.97 kB / 380.9 MB, free: 6.508 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01643/0.3624, allocations: 5.372 MB / 386.3 MB, free: 1.121 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.3624, allocations: 0 / 386.3 MB, free: 1.121 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.927e-05/0.3624, allocations: 4 kB / 386.3 MB, free: 1.117 MB / 282.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.0013/0.3637, allocations: 0.6391 MB / 386.9 MB, free: 436 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/0.3638, allocations: 8.031 kB / 386.9 MB, free: 428 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.3639, allocations: 31.62 kB / 387 MB, free: 396 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004286/0.3644, allocations: 267.5 kB / 387.2 MB, free: 88 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.481e-05/0.3644, allocations: 20.56 kB / 387.2 MB, free: 68 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.243e-05/0.3645, allocations: 32 kB / 387.3 MB, free: 36 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007205/0.3652, allocations: 384.6 kB / 387.6 MB, free: 15.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.934e-05/0.3652, allocations: 7.906 kB / 387.6 MB, free: 15.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.824e-05/0.3653, allocations: 12 kB / 387.7 MB, free: 15.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.3653, allocations: 4 kB / 387.7 MB, free: 15.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007164/0.366, allocations: 406 kB / 388.1 MB, free: 15.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001977/0.368, allocations: 1.127 MB / 389.2 MB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000522/0.3686, allocations: 292.7 kB / 389.5 MB, free: 13.74 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.454e-05/0.3686, allocations: 4 kB / 389.5 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.102e-05/0.3686, allocations: 42.45 kB / 389.5 MB, free: 13.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 2.054e-06/0.3687, allocations: 4 kB / 389.5 MB, free: 13.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.004707/0.3734, allocations: 2.208 MB / 391.7 MB, free: 11.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.916e-05/0.3734, allocations: 59.41 kB / 391.8 MB, free: 11.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001985/0.3736, allocations: 200.2 kB / 392 MB, free: 11.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.982e-05/0.3737, allocations: 49.69 kB / 392 MB, free: 11.01 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.948e-05/0.3738, allocations: 152.7 kB / 392.2 MB, free: 10.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001245/0.3739, allocations: 154 kB / 392.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.168e-05/0.374, allocations: 12 kB / 392.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.3741, allocations: 342.8 kB / 392.7 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003706/0.3745, allocations: 209 kB / 392.9 MB, free: 10.15 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004145/0.3749, allocations: 284.8 kB / 393.2 MB, free: 9.844 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003153/0.3752, allocations: 172.8 kB / 393.3 MB, free: 9.676 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3752, allocations: 0 / 393.3 MB, free: 9.676 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001587/0.3768, allocations: 0.8018 MB / 394.1 MB, free: 8.863 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.3769, allocations: 8 kB / 394.1 MB, free: 8.855 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.3769, allocations: 0 / 394.1 MB, free: 8.855 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008605/0.3777, allocations: 0.513 MB / 394.6 MB, free: 8.336 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002805/0.378, allocations: 75.91 kB / 394.7 MB, free: 8.262 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001193/0.3792, allocations: 1.382 MB / 396.1 MB, free: 6.828 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004099/0.3797, allocations: 91.97 kB / 396.2 MB, free: 6.738 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.904e-05/0.3797, allocations: 31.88 kB / 396.2 MB, free: 6.707 MB / 298.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): 47 * 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.0001888/0.3799, allocations: 158.7 kB / 396.4 MB, free: 6.543 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.715e-05/0.38, allocations: 35.58 kB / 396.4 MB, free: 6.508 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001139/0.3801, allocations: 55.3 kB / 396.5 MB, free: 6.453 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.3801, allocations: 4 kB / 396.5 MB, free: 6.449 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.331e-06/0.3801, allocations: 0 / 396.5 MB, free: 6.449 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.3801, allocations: 0 / 396.5 MB, free: 6.449 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002823/0.383, allocations: 1.483 MB / 398 MB, free: 4.887 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.383, allocations: 0 / 398 MB, free: 4.887 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002691/0.3833, allocations: 63.91 kB / 398 MB, free: 4.824 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007282/0.384, allocations: 493.4 kB / 398.5 MB, free: 4.336 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.625e-05/0.3841, allocations: 27.92 kB / 398.5 MB, free: 4.309 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001105/0.3852, allocations: 1.319 MB / 399.8 MB, free: 2.938 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3852, allocations: 0 / 399.8 MB, free: 2.938 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001837/0.387, allocations: 1.112 MB / 401 MB, free: 1.758 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001894/0.3872, allocations: 148.7 kB / 401.1 MB, free: 1.594 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.943e-05/0.3873, allocations: 24 kB / 401.1 MB, free: 1.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002878/0.3876, allocations: 47.95 kB / 401.2 MB, free: 1.523 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001848/0.3878, allocations: 107.7 kB / 401.3 MB, free: 1.418 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.572e-05/0.3879, allocations: 27.98 kB / 401.3 MB, free: 1.391 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001424/0.388, allocations: 160.5 kB / 401.5 MB, free: 1.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.388, allocations: 0 / 401.5 MB, free: 1.23 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004575/0.3885, allocations: 103.9 kB / 401.6 MB, free: 1.129 MB / 298.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.0002318/0.3887, allocations: 138.9 kB / 401.7 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009513/0.3897, allocations: 0.4951 MB / 402.2 MB, free: 500 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3897, allocations: 0 / 402.2 MB, free: 500 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005304/0.3902, allocations: 284.4 kB / 402.5 MB, free: 216 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003578/0.3906, allocations: 44.67 kB / 402.5 MB, free: 176 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002282/0.3929, allocations: 1.18 MB / 403.7 MB, free: 14.95 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003723/0.3933, allocations: 0.7919 MB / 404.5 MB, free: 14.13 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001467/0.3934, allocations: 34.97 kB / 404.5 MB, free: 14.1 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.892e-05/0.3935, allocations: 23.44 kB / 404.5 MB, free: 14.07 MB / 314.7 MB Notification: Performance of SimCode: time 4.61e-07/0.3935, allocations: 0 / 404.5 MB, free: 14.07 MB / 314.7 MB Notification: Performance of Templates: time 0.01205/0.4056, allocations: 7.075 MB / 411.6 MB, free: 7.02 MB / 314.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1)