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.00118/0.00118, allocations: 107.8 kB / 17.06 MB, free: 6.02 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.001072/0.001072, allocations: 191 kB / 18 MB, free: 5.102 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.588/1.588, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001153/0.001153, allocations: 56.41 kB / 327.9 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1035, allocations: 46.61 MB / 374.5 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003546/0.107, allocations: 2.43 MB / 376.9 MB, free: 2.148 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009832/0.108, allocations: 0.4961 MB / 377.4 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001189/0.1082, allocations: 4 kB / 377.4 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002412/0.1084, allocations: 51.52 kB / 377.4 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001476/0.1086, allocations: 79.33 kB / 377.5 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004891/0.1091, allocations: 195.6 kB / 377.7 MB, free: 1.324 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004481/0.1095, allocations: 495.1 kB / 378.2 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001767/0.1097, allocations: 76.64 kB / 378.3 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002206/0.11, allocations: 207.4 kB / 378.5 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003179/0.1103, allocations: 235.2 kB / 378.7 MB, free: 336 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.686e-05/0.1104, allocations: 40 kB / 378.7 MB, free: 296 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001743/0.1105, allocations: 83.95 kB / 378.8 MB, free: 212 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001275/0.1107, allocations: 107.6 kB / 378.9 MB, free: 104 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2415/0.3522, allocations: 176.1 kB / 379.1 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001061/0.3533, allocations: 470 kB / 379.6 MB, free: 10.28 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.3533, allocations: 0 / 379.6 MB, free: 10.28 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.3533, allocations: 0.7812 kB / 379.6 MB, free: 10.28 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.819e-06/0.3534, allocations: 0 / 379.6 MB, free: 10.28 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.001231/0.3546, allocations: 0.6695 MB / 380.2 MB, free: 9.812 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.3546, allocations: 9.719 kB / 380.2 MB, free: 9.812 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.986e-05/0.3547, allocations: 37.52 kB / 380.3 MB, free: 9.793 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004418/0.3552, allocations: 285.1 kB / 380.6 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.925e-05/0.3552, allocations: 19.75 kB / 380.6 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.078e-05/0.3553, allocations: 35.52 kB / 380.6 MB, free: 9.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007314/0.3561, allocations: 382.9 kB / 381 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.046e-05/0.3561, allocations: 1.562 kB / 381 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.14e-05/0.3561, allocations: 13.44 kB / 381 MB, free: 9.531 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.3562, allocations: 7.484 kB / 381 MB, free: 9.531 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000928/0.3571, allocations: 404.6 kB / 381.4 MB, free: 9.527 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002455/0.3596, allocations: 1.099 MB / 382.5 MB, free: 9.086 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005348/0.3601, allocations: 297.9 kB / 382.8 MB, free: 9.059 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003753/0.3605, allocations: 200.3 kB / 383 MB, free: 9.051 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.563e-05/0.3605, allocations: 4.688 kB / 383 MB, free: 9.051 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.693e-05/0.3606, allocations: 37.02 kB / 383 MB, free: 9.012 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.432e-06/0.3606, allocations: 0 / 383 MB, free: 9.012 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004859/0.3654, allocations: 2.045 MB / 385.1 MB, free: 8.078 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.886e-05/0.3655, allocations: 60.86 kB / 385.1 MB, free: 8.016 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002926/0.3658, allocations: 233.7 kB / 385.4 MB, free: 7.875 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.878e-05/0.3658, allocations: 39.39 kB / 385.4 MB, free: 7.836 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.233e-05/0.3659, allocations: 152.2 kB / 385.5 MB, free: 7.699 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001258/0.3661, allocations: 160.6 kB / 385.7 MB, free: 7.582 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000201/0.3663, allocations: 96.83 kB / 385.8 MB, free: 7.531 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.3664, allocations: 346.8 kB / 386.1 MB, free: 7.199 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004424/0.3668, allocations: 210.4 kB / 386.3 MB, free: 7.125 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004581/0.3673, allocations: 282.6 kB / 386.6 MB, free: 6.977 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006368/0.368, allocations: 384.8 kB / 387 MB, free: 6.789 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.368, allocations: 0 / 387 MB, free: 6.789 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001479/0.3695, allocations: 0.6925 MB / 387.7 MB, free: 6.523 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.3695, allocations: 6.234 kB / 387.7 MB, free: 6.523 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.3695, allocations: 2.312 kB / 387.7 MB, free: 6.523 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009434/0.3704, allocations: 496.2 kB / 388.2 MB, free: 6.391 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002919/0.3708, allocations: 79.77 kB / 388.3 MB, free: 6.383 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001115/0.3719, allocations: 1.389 MB / 389.6 MB, free: 5.207 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004291/0.3723, allocations: 70.05 kB / 389.7 MB, free: 5.195 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.997e-05/0.3724, allocations: 20.06 kB / 389.7 MB, free: 5.191 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.0001819/0.3726, allocations: 164.5 kB / 389.9 MB, free: 5.047 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.311e-05/0.3727, allocations: 37.48 kB / 389.9 MB, free: 5.027 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001251/0.3728, allocations: 48.44 kB / 390 MB, free: 4.988 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.3728, allocations: 4.656 kB / 390 MB, free: 4.988 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.3728, allocations: 4 kB / 390 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.3728, allocations: 3.875 kB / 390 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002872/0.3757, allocations: 1.362 MB / 391.4 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.3757, allocations: 3.109 kB / 391.4 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002635/0.376, allocations: 59.02 kB / 391.4 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007094/0.3767, allocations: 467.8 kB / 391.9 MB, free: 4.176 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.22e-05/0.3768, allocations: 22.86 kB / 391.9 MB, free: 4.168 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009894/0.3778, allocations: 1.337 MB / 393.2 MB, free: 3.02 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.3778, allocations: 2.969 kB / 393.2 MB, free: 3.02 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001723/0.3795, allocations: 0.9449 MB / 394.2 MB, free: 2.547 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001609/0.3797, allocations: 150.5 kB / 394.3 MB, free: 2.422 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.462e-05/0.3798, allocations: 24.7 kB / 394.4 MB, free: 2.406 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002881/0.3801, allocations: 38.39 kB / 394.4 MB, free: 2.398 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002215/0.3803, allocations: 89.73 kB / 394.5 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.776e-05/0.3803, allocations: 22.69 kB / 394.5 MB, free: 2.379 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001619/0.3805, allocations: 167.7 kB / 394.7 MB, free: 2.281 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3805, allocations: 0 / 394.7 MB, free: 2.281 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006001/0.3811, allocations: 109.2 kB / 394.8 MB, free: 2.262 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.000231/0.3814, allocations: 131.7 kB / 394.9 MB, free: 2.164 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00114/0.3825, allocations: 0.512 MB / 395.4 MB, free: 2.008 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.3825, allocations: 4.125 kB / 395.4 MB, free: 2.008 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006024/0.3831, allocations: 301.2 kB / 395.7 MB, free: 1.91 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004948/0.3836, allocations: 48.12 kB / 395.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002325/0.386, allocations: 0.986 MB / 396.7 MB, free: 1.312 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000328/0.3863, allocations: 0.7782 MB / 397.5 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001402/0.3865, allocations: 32.27 kB / 397.6 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.618e-05/0.3866, allocations: 34.8 kB / 397.6 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3866, allocations: 0 / 397.6 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of Templates: time 0.01578/0.4024, allocations: 8.788 MB / 406.4 MB, free: 13.18 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)