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.001084/0.001084, allocations: 171.3 kB / 7.638 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.255/1.255, allocations: 170.7 MB / 178.7 MB, free: 15.65 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.001609/0.001609, allocations: 99.52 kB / 218 MB, free: 8.41 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.255e-05/1.257e-05, allocations: 0 / 262.2 MB, free: 26.42 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08312/0.08315, allocations: 38.78 MB / 301 MB, free: 3.633 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3196/0.4028, allocations: 67.18 MB / 368.2 MB, free: 1.168 MB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002014/0.4031, allocations: 70.95 kB / 368.2 MB, free: 1.133 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01481/0.4179, allocations: 5.339 MB / 373.6 MB, free: 12.53 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.418, allocations: 0 / 373.6 MB, free: 12.53 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.42e-05/0.418, allocations: 12 kB / 373.6 MB, free: 12.52 MB / 266.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.001413/0.4194, allocations: 0.595 MB / 374.2 MB, free: 11.9 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.219e-05/0.4195, allocations: 8.031 kB / 374.2 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001589/0.4197, allocations: 31.62 kB / 374.2 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004469/0.4201, allocations: 275.1 kB / 374.5 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.63e-05/0.4202, allocations: 12 kB / 374.5 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.919e-05/0.4203, allocations: 16 kB / 374.5 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000668/0.4209, allocations: 369.9 kB / 374.9 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005725/0.4215, allocations: 331.1 kB / 375.2 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.503e-05/0.4216, allocations: 7.906 kB / 375.2 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.897e-05/0.4216, allocations: 4 kB / 375.2 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.4216, allocations: 4 kB / 375.2 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002193/0.4238, allocations: 1.063 MB / 376.3 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004473/0.4243, allocations: 270.8 kB / 376.5 MB, free: 9.914 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002831/0.4246, allocations: 178.2 kB / 376.7 MB, free: 9.805 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.505e-05/0.4247, allocations: 8 kB / 376.7 MB, free: 9.797 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.614e-05/0.4247, allocations: 41.56 kB / 376.8 MB, free: 9.75 MB / 266.7 MB Notification: Performance of pre-optimization done (n=39): time 2.765e-06/0.4247, allocations: 0 / 376.8 MB, free: 9.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.003392/0.4281, allocations: 1.515 MB / 378.3 MB, free: 8.379 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.062e-05/0.4282, allocations: 59.41 kB / 378.3 MB, free: 8.309 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002028/0.4284, allocations: 186.5 kB / 378.5 MB, free: 8.148 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.101e-05/0.4285, allocations: 37.44 kB / 378.6 MB, free: 8.109 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.4286, allocations: 154.8 kB / 378.7 MB, free: 7.973 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001393/0.4287, allocations: 143.3 kB / 378.8 MB, free: 7.852 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.249e-05/0.4288, allocations: 3.984 kB / 378.8 MB, free: 7.848 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.4289, allocations: 349.6 kB / 379.2 MB, free: 7.508 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003009/0.4292, allocations: 188.2 kB / 379.4 MB, free: 7.395 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000312/0.4296, allocations: 249.1 kB / 379.6 MB, free: 7.207 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003695/0.4299, allocations: 157.9 kB / 379.8 MB, free: 7.094 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.43, allocations: 0 / 379.8 MB, free: 7.094 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001589/0.4315, allocations: 0.7346 MB / 380.5 MB, free: 6.504 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.4316, allocations: 4 kB / 380.5 MB, free: 6.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.4316, allocations: 8 kB / 380.5 MB, free: 6.492 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008383/0.4324, allocations: 0.5071 MB / 381 MB, free: 6.074 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003004/0.4328, allocations: 71.78 kB / 381.1 MB, free: 6.008 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001403/0.4342, allocations: 1.424 MB / 382.5 MB, free: 4.676 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004962/0.4347, allocations: 88.03 kB / 382.6 MB, free: 4.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.383e-05/0.4348, allocations: 23.86 kB / 382.6 MB, free: 4.57 MB / 266.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real 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 (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.0002156/0.435, allocations: 120.5 kB / 382.7 MB, free: 4.449 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.277e-05/0.4351, allocations: 31.62 kB / 382.8 MB, free: 4.418 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001146/0.4352, allocations: 49.84 kB / 382.8 MB, free: 4.398 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.4352, allocations: 7.938 kB / 382.8 MB, free: 4.391 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/0.4352, allocations: 4.062 kB / 382.8 MB, free: 4.387 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.4352, allocations: 0 / 382.8 MB, free: 4.387 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002817/0.4381, allocations: 1.38 MB / 384.2 MB, free: 3.184 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.4381, allocations: 4 kB / 384.2 MB, free: 3.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000296/0.4384, allocations: 63.41 kB / 384.3 MB, free: 3.121 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007056/0.4391, allocations: 477.4 kB / 384.7 MB, free: 2.73 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.408e-05/0.4392, allocations: 19.14 kB / 384.8 MB, free: 2.715 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001199/0.4404, allocations: 1.367 MB / 386.1 MB, free: 1.406 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/0.4404, allocations: 4.031 kB / 386.1 MB, free: 1.402 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001718/0.4421, allocations: 1.038 MB / 387.2 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001931/0.4423, allocations: 152.7 kB / 387.3 MB, free: 380 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.871e-05/0.4424, allocations: 11.38 kB / 387.3 MB, free: 372 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003483/0.4428, allocations: 43.95 kB / 387.4 MB, free: 328 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002008/0.443, allocations: 99.53 kB / 387.5 MB, free: 236 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.428e-05/0.4431, allocations: 37.97 kB / 387.5 MB, free: 204 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001465/0.4432, allocations: 148.8 kB / 387.7 MB, free: 72 kB / 266.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4432, allocations: 0 / 387.7 MB, free: 72 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004849/0.4437, allocations: 84.05 kB / 387.7 MB, free: 15.98 MB / 282.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 (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.0002531/0.444, allocations: 139.7 kB / 387.9 MB, free: 15.85 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000804/0.4448, allocations: 451.7 kB / 388.3 MB, free: 15.55 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.4448, allocations: 0 / 388.3 MB, free: 15.55 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004594/0.4453, allocations: 259.5 kB / 388.6 MB, free: 15.38 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003636/0.4456, allocations: 39.14 kB / 388.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002066/0.4477, allocations: 0.8399 MB / 389.4 MB, free: 14.54 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004206/0.4482, allocations: 0.7839 MB / 390.2 MB, free: 13.73 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001576/0.4483, allocations: 39.27 kB / 390.3 MB, free: 13.69 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.085e-05/0.4484, allocations: 27.42 kB / 390.3 MB, free: 13.66 MB / 282.7 MB Notification: Performance of SimCode: time 4.71e-07/0.4484, allocations: 0 / 390.3 MB, free: 13.66 MB / 282.7 MB Notification: Performance of Templates: time 0.0123/0.4607, allocations: 6.78 MB / 397.1 MB, free: 6.891 MB / 282.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)