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.001177/0.001178, allocations: 182.3 kB / 13.64 MB, free: 1.676 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.452/1.452, allocations: 194.3 MB / 208.4 MB, free: 6.699 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.001678/0.001678, allocations: 112.7 kB / 253.5 MB, free: 9.57 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.781e-05/2.782e-05, allocations: 0 / 304.9 MB, free: 29.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09693/0.09697, allocations: 44.5 MB / 349.4 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3626/0.4597, allocations: 73.18 MB / 422.6 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002351/0.46, allocations: 73.88 kB / 422.7 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01354/0.4735, allocations: 5.447 MB / 428.1 MB, free: 9.258 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4736, allocations: 0 / 428.1 MB, free: 9.258 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.551e-05/0.4736, allocations: 7.875 kB / 428.1 MB, free: 9.258 MB / 298.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.0009451/0.4745, allocations: 0.5922 MB / 428.7 MB, free: 8.777 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.4746, allocations: 11.69 kB / 428.7 MB, free: 8.777 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.592e-05/0.4747, allocations: 34.31 kB / 428.8 MB, free: 8.762 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000297/0.475, allocations: 274.9 kB / 429 MB, free: 8.508 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.991e-05/0.475, allocations: 25.84 kB / 429.1 MB, free: 8.504 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.488e-05/0.4751, allocations: 34.94 kB / 429.1 MB, free: 8.496 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005496/0.4757, allocations: 345.3 kB / 429.4 MB, free: 8.391 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.4757, allocations: 0 / 429.4 MB, free: 8.391 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.058e-05/0.4757, allocations: 14.34 kB / 429.5 MB, free: 8.391 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.4758, allocations: 7.531 kB / 429.5 MB, free: 8.391 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005089/0.4763, allocations: 340.9 kB / 429.8 MB, free: 8.348 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001812/0.4781, allocations: 1.124 MB / 430.9 MB, free: 7.684 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003922/0.4785, allocations: 279.5 kB / 431.2 MB, free: 7.637 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002446/0.4788, allocations: 174.4 kB / 431.4 MB, free: 7.625 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.258e-05/0.4788, allocations: 4.531 kB / 431.4 MB, free: 7.625 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.97e-05/0.4788, allocations: 37.55 kB / 431.4 MB, free: 7.582 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 2.655e-06/0.4789, allocations: 4.109 kB / 431.4 MB, free: 7.578 MB / 298.7 MB Notification: Performance of matching and sorting (n=47): time 0.002421/0.4813, allocations: 1.418 MB / 432.8 MB, free: 6.891 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.817e-05/0.4813, allocations: 55.75 kB / 432.9 MB, free: 6.828 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001699/0.4815, allocations: 193.2 kB / 433.1 MB, free: 6.711 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.437e-05/0.4816, allocations: 36.05 kB / 433.1 MB, free: 6.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.29e-05/0.4816, allocations: 152.3 kB / 433.2 MB, free: 6.562 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.771e-05/0.4817, allocations: 157.8 kB / 433.4 MB, free: 6.453 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.754e-05/0.4818, allocations: 7.438 kB / 433.4 MB, free: 6.453 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.294e-05/0.4818, allocations: 339.2 kB / 433.7 MB, free: 6.133 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002501/0.4821, allocations: 170.1 kB / 433.9 MB, free: 6.129 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002898/0.4824, allocations: 256.9 kB / 434.2 MB, free: 6.043 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002316/0.4826, allocations: 139 kB / 434.3 MB, free: 6.027 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.4826, allocations: 3.953 kB / 434.3 MB, free: 6.023 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001108/0.4838, allocations: 0.6232 MB / 434.9 MB, free: 5.867 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.4838, allocations: 10.33 kB / 434.9 MB, free: 5.863 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/0.4838, allocations: 7.844 kB / 434.9 MB, free: 5.859 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005652/0.4844, allocations: 377 kB / 435.3 MB, free: 5.766 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002262/0.4846, allocations: 80.75 kB / 435.4 MB, free: 5.742 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008282/0.4855, allocations: 1.314 MB / 436.7 MB, free: 4.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003998/0.4859, allocations: 93.86 kB / 436.8 MB, free: 4.637 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.372e-05/0.4859, allocations: 26.42 kB / 436.8 MB, free: 4.629 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 () * 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.0001154/0.4861, allocations: 126.3 kB / 436.9 MB, free: 4.52 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.093e-05/0.4861, allocations: 34.64 kB / 437 MB, free: 4.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001206/0.4873, allocations: 0.6335 MB / 437.6 MB, free: 4.293 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.4874, allocations: 3.688 kB / 437.6 MB, free: 4.293 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.4874, allocations: 0 / 437.6 MB, free: 4.293 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.4874, allocations: 0 / 437.6 MB, free: 4.293 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002099/0.4895, allocations: 1.307 MB / 438.9 MB, free: 3.641 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.4895, allocations: 4.031 kB / 438.9 MB, free: 3.637 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002454/0.4897, allocations: 61.17 kB / 439 MB, free: 3.629 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004743/0.4902, allocations: 346.1 kB / 439.3 MB, free: 3.531 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.744e-05/0.4903, allocations: 14.45 kB / 439.3 MB, free: 3.527 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007368/0.491, allocations: 1.267 MB / 440.6 MB, free: 2.441 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.491, allocations: 0 / 440.6 MB, free: 2.441 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001278/0.4923, allocations: 0.8933 MB / 441.5 MB, free: 2.059 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/0.4925, allocations: 151.5 kB / 441.6 MB, free: 1.926 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.642e-05/0.4925, allocations: 19.12 kB / 441.7 MB, free: 1.926 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002813/0.4928, allocations: 50.23 kB / 441.7 MB, free: 1.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001862/0.493, allocations: 105.6 kB / 441.8 MB, free: 1.852 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.448e-05/0.4931, allocations: 27 kB / 441.8 MB, free: 1.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001093/0.4932, allocations: 161 kB / 442 MB, free: 1.754 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4932, allocations: 0 / 442 MB, free: 1.754 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004225/0.4936, allocations: 103.9 kB / 442.1 MB, free: 1.75 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) * 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.0002088/0.4938, allocations: 142.4 kB / 442.2 MB, free: 1.648 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000749/0.4946, allocations: 0.5128 MB / 442.7 MB, free: 1.535 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.4946, allocations: 3.938 kB / 442.8 MB, free: 1.531 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004221/0.495, allocations: 272 kB / 443 MB, free: 1.496 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003401/0.4954, allocations: 40.66 kB / 443.1 MB, free: 1.488 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001725/0.4971, allocations: 0.8616 MB / 443.9 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001977/0.4973, allocations: 0.7885 MB / 444.7 MB, free: 228 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001203/0.4975, allocations: 30.19 kB / 444.7 MB, free: 216 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.585e-05/0.4975, allocations: 26.66 kB / 444.8 MB, free: 208 kB / 298.7 MB Notification: Performance of SimCode: time 5.71e-07/0.4975, allocations: 0 / 444.8 MB, free: 208 kB / 298.7 MB Notification: Performance of Templates: time 0.01234/0.5099, allocations: 7.41 MB / 452.2 MB, free: 9.34 MB / 314.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)