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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001511/0.001511, allocations: 109.9 kB / 17.06 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001682/0.001683, allocations: 200 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.559/1.559, allocations: 205.1 MB / 223.9 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 51.92 kB / 327.8 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1046, allocations: 46.62 MB / 374.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004166/0.1089, allocations: 2.419 MB / 376.9 MB, free: 2.137 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001266/0.1102, allocations: 0.5 MB / 377.4 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002387/0.1104, allocations: 4 kB / 377.4 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003274/0.1108, allocations: 51.5 kB / 377.4 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002706/0.1111, allocations: 83.33 kB / 377.5 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006141/0.1117, allocations: 191.6 kB / 377.7 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000645/0.1124, allocations: 495.1 kB / 378.2 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002279/0.1126, allocations: 72.66 kB / 378.3 MB, free: 0.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004223/0.113, allocations: 215.4 kB / 378.5 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004617/0.1135, allocations: 239.2 kB / 378.7 MB, free: 312 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000101/0.1136, allocations: 36 kB / 378.7 MB, free: 276 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002835/0.1139, allocations: 91.88 kB / 378.8 MB, free: 184 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001812/0.1141, allocations: 99.7 kB / 378.9 MB, free: 84 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2274/0.3415, allocations: 180.5 kB / 379.1 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006909/0.3422, allocations: 461.2 kB / 379.6 MB, free: 10.29 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3422, allocations: 0 / 379.6 MB, free: 10.29 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3423, allocations: 0 / 379.6 MB, free: 10.29 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.3423, allocations: 0 / 379.6 MB, free: 10.29 MB / 318.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.001254/0.3435, allocations: 0.668 MB / 380.2 MB, free: 9.828 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.3436, allocations: 12.06 kB / 380.2 MB, free: 9.828 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.998e-05/0.3437, allocations: 33.34 kB / 380.3 MB, free: 9.812 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004233/0.3441, allocations: 283.8 kB / 380.5 MB, free: 9.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.495e-05/0.3441, allocations: 26.91 kB / 380.6 MB, free: 9.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.784e-05/0.3442, allocations: 29.62 kB / 380.6 MB, free: 9.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007294/0.345, allocations: 377.2 kB / 381 MB, free: 9.555 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.973e-05/0.345, allocations: 1.562 kB / 381 MB, free: 9.555 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.096e-05/0.345, allocations: 13.98 kB / 381 MB, free: 9.551 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.3451, allocations: 7.688 kB / 381 MB, free: 9.551 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007879/0.3458, allocations: 405.3 kB / 381.4 MB, free: 9.547 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002331/0.3482, allocations: 1.104 MB / 382.5 MB, free: 9.105 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000567/0.3488, allocations: 297 kB / 382.8 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003576/0.3491, allocations: 201.2 kB / 383 MB, free: 9.07 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.985e-05/0.3492, allocations: 3.125 kB / 383 MB, free: 9.07 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.623e-05/0.3492, allocations: 36.84 kB / 383 MB, free: 9.031 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 2.104e-06/0.3492, allocations: 0 / 383 MB, free: 9.031 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004544/0.3538, allocations: 2.036 MB / 385.1 MB, free: 8.117 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.316e-05/0.3538, allocations: 57.19 kB / 385.1 MB, free: 8.055 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002643/0.3541, allocations: 241 kB / 385.3 MB, free: 7.906 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.964e-05/0.3542, allocations: 44.62 kB / 385.4 MB, free: 7.863 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.626e-05/0.3543, allocations: 147.8 kB / 385.5 MB, free: 7.73 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/0.3544, allocations: 157 kB / 385.7 MB, free: 7.617 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001891/0.3546, allocations: 96.73 kB / 385.8 MB, free: 7.566 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.3547, allocations: 345.3 kB / 386.1 MB, free: 7.234 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005115/0.3552, allocations: 211.6 kB / 386.3 MB, free: 7.16 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005994/0.3558, allocations: 283.1 kB / 386.6 MB, free: 7.012 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008565/0.3567, allocations: 379.5 kB / 387 MB, free: 6.824 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.3567, allocations: 1.125 kB / 387 MB, free: 6.824 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001696/0.3584, allocations: 0.6894 MB / 387.7 MB, free: 6.562 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.872e-05/0.3585, allocations: 9.094 kB / 387.7 MB, free: 6.562 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.3585, allocations: 2.312 kB / 387.7 MB, free: 6.562 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00112/0.3596, allocations: 496 kB / 388.2 MB, free: 6.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003178/0.3599, allocations: 74.61 kB / 388.2 MB, free: 6.426 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001239/0.3612, allocations: 1.388 MB / 389.6 MB, free: 5.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004546/0.3617, allocations: 71.2 kB / 389.7 MB, free: 5.238 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.403e-05/0.3617, allocations: 22.08 kB / 389.7 MB, free: 5.234 MB / 318.1 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 (brake1.mode,$PRE.brake1.mode,brake1.locked,brake1.startBackward,$PRE.brake1.startBackward,brake1.startForward,$PRE.brake1.startForward,brake1.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002003/0.3619, allocations: 163.4 kB / 389.9 MB, free: 5.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.51e-05/0.362, allocations: 34.75 kB / 389.9 MB, free: 5.07 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001066/0.3621, allocations: 51.27 kB / 390 MB, free: 5.031 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.3621, allocations: 4.672 kB / 390 MB, free: 5.031 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.3622, allocations: 1.312 kB / 390 MB, free: 5.031 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.3622, allocations: 6.203 kB / 390 MB, free: 5.027 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002853/0.365, allocations: 1.351 MB / 391.3 MB, free: 4.352 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.3651, allocations: 6 kB / 391.3 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002885/0.3653, allocations: 59.88 kB / 391.4 MB, free: 4.344 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008153/0.3662, allocations: 463.7 kB / 391.8 MB, free: 4.223 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.861e-05/0.3662, allocations: 21.06 kB / 391.9 MB, free: 4.215 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001026/0.3673, allocations: 1.339 MB / 393.2 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/0.3673, allocations: 4.812 kB / 393.2 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001753/0.369, allocations: 0.9378 MB / 394.1 MB, free: 2.602 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001971/0.3692, allocations: 154.1 kB / 394.3 MB, free: 2.473 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.453e-05/0.3693, allocations: 19.88 kB / 394.3 MB, free: 2.461 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000297/0.3696, allocations: 42.61 kB / 394.3 MB, free: 2.449 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000242/0.3699, allocations: 88.17 kB / 394.4 MB, free: 2.434 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.427e-05/0.3699, allocations: 20.95 kB / 394.5 MB, free: 2.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001677/0.3701, allocations: 170.7 kB / 394.6 MB, free: 2.328 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3701, allocations: 0 / 394.6 MB, free: 2.328 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005017/0.3706, allocations: 109.6 kB / 394.7 MB, free: 2.309 MB / 318.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) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002503/0.3709, allocations: 134.8 kB / 394.9 MB, free: 2.211 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.372, allocations: 0.5068 MB / 395.4 MB, free: 2.059 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.96e-06/0.372, allocations: 1.062 kB / 395.4 MB, free: 2.059 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006171/0.3726, allocations: 308.9 kB / 395.7 MB, free: 1.953 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005029/0.3731, allocations: 58.47 kB / 395.7 MB, free: 1.934 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002191/0.3753, allocations: 0.9675 MB / 396.7 MB, free: 1.359 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002746/0.3756, allocations: 0.7789 MB / 397.5 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001347/0.3758, allocations: 32 kB / 397.5 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.534e-05/0.3759, allocations: 32.12 kB / 397.5 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of SimCode: time 1.333e-06/0.3759, allocations: 3.094 kB / 397.5 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of Templates: time 0.01531/0.3912, allocations: 9.117 MB / 406.7 MB, free: 12.97 MB / 334.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)