Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_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.007434/0.007434, allocations: 102.1 kB / 15.73 MB, free: 6.043 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.001095/0.001095, allocations: 188.1 kB / 16.67 MB, free: 5.977 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.575/1.575, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001422/0.001422, allocations: 55.91 kB / 326.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1091, allocations: 46.62 MB / 373.2 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003937/0.1131, allocations: 2.415 MB / 375.6 MB, free: 2.145 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001265/0.1143, allocations: 0.4922 MB / 376.1 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002276/0.1146, allocations: 4 kB / 376.1 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000252/0.1149, allocations: 51.52 kB / 376.1 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002917/0.1152, allocations: 95.25 kB / 376.2 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006626/0.1159, allocations: 187.7 kB / 376.4 MB, free: 1.316 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008026/0.1167, allocations: 491.1 kB / 376.9 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002449/0.1169, allocations: 76.66 kB / 376.9 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000398/0.1174, allocations: 215.4 kB / 377.2 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004504/0.1178, allocations: 231.2 kB / 377.4 MB, free: 328 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001175/0.1179, allocations: 40 kB / 377.4 MB, free: 288 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002384/0.1182, allocations: 91.89 kB / 377.5 MB, free: 196 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001588/0.1184, allocations: 99.7 kB / 377.6 MB, free: 96 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2201/0.3385, allocations: 173.9 kB / 377.8 MB, free: 10.33 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001075/0.3396, allocations: 467.6 kB / 378.2 MB, free: 10.33 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.104e-06/0.3396, allocations: 0 / 378.2 MB, free: 10.33 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3396, allocations: 0 / 378.2 MB, free: 10.33 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.313e-05/0.3397, allocations: 2.094 kB / 378.2 MB, free: 10.33 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.002163/0.3418, allocations: 0.6646 MB / 378.9 MB, free: 9.871 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.66e-05/0.3419, allocations: 8.875 kB / 378.9 MB, free: 9.871 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002688/0.3422, allocations: 33.88 kB / 378.9 MB, free: 9.855 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008276/0.343, allocations: 283.9 kB / 379.2 MB, free: 9.633 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.588e-05/0.3431, allocations: 21.47 kB / 379.2 MB, free: 9.633 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001237/0.3433, allocations: 30.52 kB / 379.3 MB, free: 9.633 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001299/0.3446, allocations: 379.1 kB / 379.6 MB, free: 9.598 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.851e-05/0.3446, allocations: 3.938 kB / 379.6 MB, free: 9.598 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.441e-05/0.3447, allocations: 15.88 kB / 379.7 MB, free: 9.594 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.983e-05/0.3447, allocations: 6.875 kB / 379.7 MB, free: 9.594 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001249/0.346, allocations: 409 kB / 380.1 MB, free: 9.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002637/0.3486, allocations: 1.101 MB / 381.2 MB, free: 9.145 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005971/0.3492, allocations: 296.8 kB / 381.5 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003514/0.3496, allocations: 196.2 kB / 381.7 MB, free: 9.109 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.679e-05/0.3496, allocations: 9.562 kB / 381.7 MB, free: 9.109 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.421e-05/0.3497, allocations: 35.86 kB / 381.7 MB, free: 9.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 2.655e-06/0.3497, allocations: 2.719 kB / 381.7 MB, free: 9.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.005064/0.3548, allocations: 2.038 MB / 383.7 MB, free: 8.137 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.802e-05/0.3548, allocations: 60.64 kB / 383.8 MB, free: 8.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002825/0.3551, allocations: 240.8 kB / 384 MB, free: 7.922 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.351e-05/0.3552, allocations: 40.17 kB / 384.1 MB, free: 7.883 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.023e-05/0.3553, allocations: 148.1 kB / 384.2 MB, free: 7.75 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001283/0.3554, allocations: 154.3 kB / 384.4 MB, free: 7.637 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001911/0.3556, allocations: 99.38 kB / 384.5 MB, free: 7.582 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.794e-05/0.3557, allocations: 346.2 kB / 384.8 MB, free: 7.254 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004292/0.3561, allocations: 210.1 kB / 385 MB, free: 7.18 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004869/0.3566, allocations: 284.5 kB / 385.3 MB, free: 7.027 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007277/0.3574, allocations: 379.5 kB / 385.7 MB, free: 6.844 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.3574, allocations: 0 / 385.7 MB, free: 6.844 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00159/0.359, allocations: 0.6932 MB / 386.3 MB, free: 6.578 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.359, allocations: 6.531 kB / 386.4 MB, free: 6.578 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.359, allocations: 2.125 kB / 386.4 MB, free: 6.578 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009161/0.3599, allocations: 495.5 kB / 386.8 MB, free: 6.445 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003113/0.3603, allocations: 68.89 kB / 386.9 MB, free: 6.445 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001143/0.3614, allocations: 1.393 MB / 388.3 MB, free: 5.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005036/0.3619, allocations: 69.09 kB / 388.4 MB, free: 5.262 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.776e-05/0.362, allocations: 23.39 kB / 388.4 MB, free: 5.254 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.000236/0.3622, allocations: 164.8 kB / 388.6 MB, free: 5.109 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.448e-05/0.3623, allocations: 34.62 kB / 388.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000116/0.3625, allocations: 48.89 kB / 388.6 MB, free: 5.051 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.237e-06/0.3625, allocations: 5.438 kB / 388.6 MB, free: 5.051 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.978e-06/0.3625, allocations: 0 / 388.6 MB, free: 5.051 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.3625, allocations: 2.016 kB / 388.6 MB, free: 5.051 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003137/0.3656, allocations: 1.361 MB / 390 MB, free: 4.363 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.3657, allocations: 1.094 kB / 390 MB, free: 4.363 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003102/0.366, allocations: 62.81 kB / 390.1 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009908/0.367, allocations: 467.5 kB / 390.5 MB, free: 4.234 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.471e-05/0.3671, allocations: 15.61 kB / 390.5 MB, free: 4.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001137/0.3682, allocations: 1.34 MB / 391.9 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.3682, allocations: 8.75 kB / 391.9 MB, free: 3.082 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002166/0.3704, allocations: 0.9426 MB / 392.8 MB, free: 2.613 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002289/0.3707, allocations: 153.2 kB / 393 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.49e-05/0.3708, allocations: 19.92 kB / 393 MB, free: 2.473 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003277/0.3711, allocations: 39.75 kB / 393 MB, free: 2.465 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002125/0.3713, allocations: 83.12 kB / 393.1 MB, free: 2.449 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.175e-05/0.3714, allocations: 20.8 kB / 393.1 MB, free: 2.445 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001813/0.3716, allocations: 172.1 kB / 393.3 MB, free: 2.344 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3716, allocations: 0 / 393.3 MB, free: 2.344 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005712/0.3721, allocations: 104.7 kB / 393.4 MB, free: 2.328 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.0002845/0.3724, allocations: 140.6 kB / 393.5 MB, free: 2.227 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001347/0.3738, allocations: 0.501 MB / 394 MB, free: 2.078 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.3738, allocations: 0 / 394 MB, free: 2.078 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006678/0.3745, allocations: 304.1 kB / 394.3 MB, free: 1.977 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005724/0.3751, allocations: 66.55 kB / 394.4 MB, free: 1.945 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002459/0.3775, allocations: 0.9692 MB / 395.4 MB, free: 1.375 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003053/0.3779, allocations: 0.7776 MB / 396.2 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001932/0.3781, allocations: 32.19 kB / 396.2 MB, free: 0.668 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.3782, allocations: 33.83 kB / 396.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3782, allocations: 0 / 396.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of Templates: time 0.01948/0.3977, allocations: 8.782 MB / 405 MB, free: 13.23 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1)