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.001544/0.001544, allocations: 187.9 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.463/1.463, allocations: 194.3 MB / 203.1 MB, free: 9.312 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001699/0.001699, allocations: 114.6 kB / 248.1 MB, free: 6.34 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.909e-05/1.917e-05, allocations: 0 / 298.1 MB, free: 8.25 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1082, allocations: 44.5 MB / 342.6 MB, free: 11.64 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2935/0.4018, allocations: 72.51 MB / 415.1 MB, free: 23.34 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001863/0.402, allocations: 69.72 kB / 415.1 MB, free: 23.3 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01395/0.416, allocations: 5.41 MB / 420.6 MB, free: 18.68 MB / 315.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.416, allocations: 4 kB / 420.6 MB, free: 18.68 MB / 315.1 MB Notification: Performance of Transformations before backend: time 1.685e-05/0.416, allocations: 4 kB / 420.6 MB, free: 18.68 MB / 315.1 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.001076/0.4171, allocations: 0.6007 MB / 421.2 MB, free: 18.05 MB / 315.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.4172, allocations: 12.03 kB / 421.2 MB, free: 18.04 MB / 315.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.499e-05/0.4173, allocations: 33.34 kB / 421.2 MB, free: 18.01 MB / 315.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000253/0.4175, allocations: 266.2 kB / 421.5 MB, free: 17.73 MB / 315.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.733e-05/0.4176, allocations: 20.27 kB / 421.5 MB, free: 17.72 MB / 315.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.498e-05/0.4176, allocations: 23.72 kB / 421.5 MB, free: 17.7 MB / 315.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004593/0.4181, allocations: 321.5 kB / 421.8 MB, free: 17.49 MB / 315.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004341/0.4185, allocations: 310.6 kB / 422.1 MB, free: 17.26 MB / 315.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.838e-05/0.4185, allocations: 3.938 kB / 422.1 MB, free: 17.25 MB / 315.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.629e-05/0.4186, allocations: 0.5625 kB / 422.1 MB, free: 17.25 MB / 315.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.4186, allocations: 8 kB / 422.1 MB, free: 17.25 MB / 315.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001789/0.4204, allocations: 1.059 MB / 423.2 MB, free: 16.32 MB / 315.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003192/0.4207, allocations: 275.4 kB / 423.5 MB, free: 16.13 MB / 315.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001928/0.4209, allocations: 162 kB / 423.6 MB, free: 16.04 MB / 315.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.929e-05/0.421, allocations: 7.875 kB / 423.6 MB, free: 16.03 MB / 315.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.551e-05/0.421, allocations: 36.94 kB / 423.7 MB, free: 15.99 MB / 315.1 MB Notification: Performance of pre-optimization done (n=41): time 2.124e-06/0.421, allocations: 4 kB / 423.7 MB, free: 15.98 MB / 315.1 MB Notification: Performance of matching and sorting (n=47): time 0.00256/0.4236, allocations: 1.366 MB / 425 MB, free: 14.77 MB / 315.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.732e-05/0.4236, allocations: 55.84 kB / 425.1 MB, free: 14.71 MB / 315.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001727/0.4238, allocations: 181.1 kB / 425.3 MB, free: 14.54 MB / 315.1 MB Notification: Performance of collectPreVariables (initialization): time 4.626e-05/0.4239, allocations: 33.02 kB / 425.3 MB, free: 14.51 MB / 315.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.034e-05/0.424, allocations: 149.1 kB / 425.5 MB, free: 14.38 MB / 315.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.942e-05/0.4241, allocations: 148.6 kB / 425.6 MB, free: 14.25 MB / 315.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.826e-05/0.4241, allocations: 0 / 425.6 MB, free: 14.25 MB / 315.1 MB Notification: Performance of setup shared object (initialization): time 8.394e-05/0.4242, allocations: 338.4 kB / 425.9 MB, free: 13.92 MB / 315.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002218/0.4244, allocations: 170.1 kB / 426.1 MB, free: 13.83 MB / 315.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002716/0.4247, allocations: 237.6 kB / 426.3 MB, free: 13.65 MB / 315.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003286/0.425, allocations: 145.5 kB / 426.5 MB, free: 13.55 MB / 315.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.425, allocations: 0 / 426.5 MB, free: 13.55 MB / 315.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0012/0.4263, allocations: 0.5885 MB / 427.1 MB, free: 13.09 MB / 315.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.4263, allocations: 8.938 kB / 427.1 MB, free: 13.08 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.7e-05/0.4263, allocations: 0 / 427.1 MB, free: 13.08 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005799/0.4269, allocations: 375 kB / 427.4 MB, free: 12.8 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000252/0.4272, allocations: 73.72 kB / 427.5 MB, free: 12.73 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009656/0.4281, allocations: 1.365 MB / 428.9 MB, free: 11.45 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004357/0.4286, allocations: 84.03 kB / 429 MB, free: 11.36 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.319e-05/0.4287, allocations: 19.38 kB / 429 MB, free: 11.35 MB / 315.1 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): 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.0001772/0.4288, allocations: 126.1 kB / 429.1 MB, free: 11.22 MB / 315.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.963e-05/0.4289, allocations: 35.58 kB / 429.1 MB, free: 11.19 MB / 315.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001226/0.4301, allocations: 0.5892 MB / 429.7 MB, free: 10.74 MB / 315.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.4302, allocations: 8 kB / 429.7 MB, free: 10.73 MB / 315.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.4302, allocations: 3.984 kB / 429.7 MB, free: 10.73 MB / 315.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.4302, allocations: 0 / 429.7 MB, free: 10.73 MB / 315.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002109/0.4323, allocations: 1.222 MB / 431 MB, free: 9.676 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.4323, allocations: 4.031 kB / 431 MB, free: 9.672 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002585/0.4326, allocations: 63.72 kB / 431 MB, free: 9.613 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004527/0.433, allocations: 346.9 kB / 431.4 MB, free: 9.344 MB / 315.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.409e-05/0.4331, allocations: 11.11 kB / 431.4 MB, free: 9.336 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008024/0.4339, allocations: 1.298 MB / 432.7 MB, free: 8.086 MB / 315.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.799e-05/0.4339, allocations: 9.344 kB / 432.7 MB, free: 8.078 MB / 315.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001297/0.4352, allocations: 0.8707 MB / 433.5 MB, free: 7.352 MB / 315.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001279/0.4354, allocations: 153.3 kB / 433.7 MB, free: 7.203 MB / 315.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.251e-05/0.4355, allocations: 7.438 kB / 433.7 MB, free: 7.199 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003027/0.4358, allocations: 51.91 kB / 433.8 MB, free: 7.148 MB / 315.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/0.436, allocations: 97.72 kB / 433.8 MB, free: 7.062 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.212e-05/0.436, allocations: 27.28 kB / 433.9 MB, free: 7.039 MB / 315.1 MB Notification: Performance of sorting global known variables: time 8.852e-05/0.4361, allocations: 148.7 kB / 434 MB, free: 6.91 MB / 315.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4361, allocations: 0 / 434 MB, free: 6.91 MB / 315.1 MB Notification: Performance of remove unused functions: time 0.0004198/0.4365, allocations: 88 kB / 434.1 MB, free: 6.824 MB / 315.1 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.0001987/0.4367, allocations: 138.6 kB / 434.2 MB, free: 6.684 MB / 315.1 MB Notification: Performance of simCode: created initialization part: time 0.0006584/0.4374, allocations: 487.1 kB / 434.7 MB, free: 6.34 MB / 315.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.4374, allocations: 0 / 434.7 MB, free: 6.34 MB / 315.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000371/0.4378, allocations: 256.9 kB / 435 MB, free: 6.172 MB / 315.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003502/0.4382, allocations: 38.09 kB / 435 MB, free: 6.145 MB / 315.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001702/0.4399, allocations: 0.8268 MB / 435.8 MB, free: 5.363 MB / 315.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000183/0.4401, allocations: 0.7839 MB / 436.6 MB, free: 4.551 MB / 315.1 MB Notification: Performance of simCode: alias equations: time 0.0001195/0.4402, allocations: 35.27 kB / 436.6 MB, free: 4.516 MB / 315.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.693e-05/0.4403, allocations: 27.42 kB / 436.7 MB, free: 4.488 MB / 315.1 MB Notification: Performance of SimCode: time 1.302e-06/0.4403, allocations: 0 / 436.7 MB, free: 4.488 MB / 315.1 MB Notification: Performance of Templates: time 0.01046/0.4507, allocations: 7.105 MB / 443.8 MB, free: 13.45 MB / 331.1 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)