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.00169/0.00169, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001424/0.001424, allocations: 192.8 kB / 16.53 MB, free: 6.664 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.599/1.599, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.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.001407/0.001407, allocations: 55.92 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2913/0.2927, allocations: 46.63 MB / 325.3 MB, free: 1.898 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00347/0.2962, allocations: 2.426 MB / 327.7 MB, free: 15.97 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.2973, allocations: 0.5067 MB / 328.2 MB, free: 15.55 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001321/0.2975, allocations: 4.031 kB / 328.2 MB, free: 15.55 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002427/0.2978, allocations: 47.52 kB / 328.3 MB, free: 15.51 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000165/0.2979, allocations: 84.05 kB / 328.4 MB, free: 15.44 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005261/0.2985, allocations: 196.5 kB / 328.6 MB, free: 15.28 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005062/0.299, allocations: 486.8 kB / 329 MB, free: 15 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001907/0.2992, allocations: 66.86 kB / 329.1 MB, free: 14.98 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003129/0.2995, allocations: 212.5 kB / 329.3 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003602/0.2999, allocations: 237.7 kB / 329.5 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.463e-05/0.3, allocations: 38.56 kB / 329.6 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002076/0.3002, allocations: 82.67 kB / 329.7 MB, free: 14.68 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000147/0.3003, allocations: 103.2 kB / 329.8 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002075/0.3006, allocations: 176.8 kB / 329.9 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005264/0.3011, allocations: 464.6 kB / 330.4 MB, free: 14.12 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3011, allocations: 1.469 kB / 330.4 MB, free: 14.12 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3011, allocations: 0 / 330.4 MB, free: 14.12 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.3011, allocations: 0 / 330.4 MB, free: 14.12 MB / 270.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.001356/0.3025, allocations: 0.6619 MB / 331 MB, free: 13.55 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.3026, allocations: 13.75 kB / 331.1 MB, free: 13.54 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.3027, allocations: 37.12 kB / 331.1 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004218/0.3031, allocations: 277.4 kB / 331.4 MB, free: 13.25 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.096e-05/0.3032, allocations: 20.47 kB / 331.4 MB, free: 13.24 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.904e-05/0.3032, allocations: 27.81 kB / 331.4 MB, free: 13.23 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007501/0.304, allocations: 382.2 kB / 331.8 MB, free: 12.99 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.304, allocations: 5.219 kB / 331.8 MB, free: 12.99 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.364e-05/0.3041, allocations: 14.5 kB / 331.8 MB, free: 12.98 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.3041, allocations: 5.875 kB / 331.8 MB, free: 12.98 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007992/0.3049, allocations: 407.9 kB / 332.2 MB, free: 12.79 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002071/0.307, allocations: 1.103 MB / 333.3 MB, free: 11.72 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006834/0.3077, allocations: 295.5 kB / 333.6 MB, free: 11.42 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003781/0.3081, allocations: 205.4 kB / 333.8 MB, free: 11.22 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.288e-05/0.3081, allocations: 7.938 kB / 333.8 MB, free: 11.21 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.489e-05/0.3082, allocations: 46.48 kB / 333.9 MB, free: 11.16 MB / 270.1 MB Notification: Performance of pre-optimization done (n=39): time 2.675e-06/0.3082, allocations: 0 / 333.9 MB, free: 11.16 MB / 270.1 MB Notification: Performance of matching and sorting (n=45): time 0.004685/0.3129, allocations: 2.019 MB / 335.9 MB, free: 9.004 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.429e-05/0.313, allocations: 59.41 kB / 335.9 MB, free: 8.934 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002791/0.3133, allocations: 236.9 kB / 336.2 MB, free: 8.691 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.222e-05/0.3133, allocations: 45.7 kB / 336.2 MB, free: 8.641 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00012/0.3135, allocations: 152.7 kB / 336.4 MB, free: 8.484 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/0.3136, allocations: 154 kB / 336.5 MB, free: 8.332 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001712/0.3138, allocations: 98.14 kB / 336.6 MB, free: 8.23 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.314, allocations: 338.8 kB / 336.9 MB, free: 7.891 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003924/0.3144, allocations: 213 kB / 337.1 MB, free: 7.684 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004257/0.3148, allocations: 288.8 kB / 337.4 MB, free: 7.375 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006363/0.3154, allocations: 381.7 kB / 337.8 MB, free: 6.977 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3154, allocations: 0 / 337.8 MB, free: 6.977 MB / 270.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001451/0.3169, allocations: 0.6886 MB / 338.5 MB, free: 6.273 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.3169, allocations: 4 kB / 338.5 MB, free: 6.27 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.317, allocations: 4 kB / 338.5 MB, free: 6.266 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000926/0.3179, allocations: 0.4897 MB / 339 MB, free: 5.77 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003031/0.3182, allocations: 75.89 kB / 339.1 MB, free: 5.695 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00132/0.3195, allocations: 1.386 MB / 340.4 MB, free: 4.258 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004311/0.32, allocations: 63.95 kB / 340.5 MB, free: 4.195 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.572e-05/0.32, allocations: 28.11 kB / 340.5 MB, free: 4.168 MB / 270.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.0002876/0.3203, allocations: 162.6 kB / 340.7 MB, free: 4 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.747e-05/0.3204, allocations: 39.5 kB / 340.7 MB, free: 3.961 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001221/0.3206, allocations: 47.3 kB / 340.8 MB, free: 3.918 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.3206, allocations: 8 kB / 340.8 MB, free: 3.91 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/0.3206, allocations: 0 / 340.8 MB, free: 3.91 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.3206, allocations: 3.984 kB / 340.8 MB, free: 3.906 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002868/0.3235, allocations: 1.35 MB / 342.1 MB, free: 2.477 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.3235, allocations: 0 / 342.1 MB, free: 2.477 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002833/0.3238, allocations: 63.91 kB / 342.2 MB, free: 2.414 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007764/0.3246, allocations: 461.5 kB / 342.7 MB, free: 1.957 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.191e-05/0.3246, allocations: 20.03 kB / 342.7 MB, free: 1.938 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001314/0.3259, allocations: 1.347 MB / 344 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.326, allocations: 0 / 344 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0019/0.3279, allocations: 0.9433 MB / 345 MB, free: 15.56 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002003/0.3281, allocations: 148.8 kB / 345.1 MB, free: 15.39 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.418e-05/0.3282, allocations: 23.94 kB / 345.1 MB, free: 15.37 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002997/0.3285, allocations: 39.95 kB / 345.2 MB, free: 15.33 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002141/0.3287, allocations: 79.86 kB / 345.3 MB, free: 15.25 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.225e-05/0.3288, allocations: 23.92 kB / 345.3 MB, free: 15.23 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001726/0.3289, allocations: 168.5 kB / 345.4 MB, free: 15.06 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3289, allocations: 0 / 345.4 MB, free: 15.06 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004971/0.3294, allocations: 112 kB / 345.5 MB, free: 14.95 MB / 286.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.0002826/0.3297, allocations: 135.2 kB / 345.7 MB, free: 14.81 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00124/0.331, allocations: 0.5254 MB / 346.2 MB, free: 14.29 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.331, allocations: 8.188 kB / 346.2 MB, free: 14.28 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007146/0.3317, allocations: 292.1 kB / 346.5 MB, free: 14 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005095/0.3322, allocations: 52.5 kB / 346.5 MB, free: 13.95 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002545/0.3348, allocations: 0.9787 MB / 347.5 MB, free: 12.93 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004089/0.3352, allocations: 0.7761 MB / 348.3 MB, free: 12.12 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001601/0.3354, allocations: 34.97 kB / 348.3 MB, free: 12.09 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.094e-05/0.3355, allocations: 31.42 kB / 348.4 MB, free: 12.06 MB / 286.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3355, allocations: 0 / 348.4 MB, free: 12.06 MB / 286.1 MB Notification: Performance of Templates: time 0.01675/0.3522, allocations: 8.691 MB / 357.1 MB, free: 3.355 MB / 286.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)