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.0008009/0.0008009, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.00563/0.00563, allocations: 172.5 kB / 16.26 MB, free: 6.613 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.581/1.581, allocations: 205.4 MB / 222.4 MB, free: 5.559 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.0007451/0.0007452, allocations: 8 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.2893, allocations: 47.58 MB / 327 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00258/0.2919, allocations: 2.113 MB / 329.1 MB, free: 15.73 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009956/0.2929, allocations: 0.5072 MB / 329.6 MB, free: 15.31 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000123/0.2931, allocations: 11.38 kB / 329.7 MB, free: 15.3 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000202/0.2933, allocations: 31.64 kB / 329.7 MB, free: 15.28 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001554/0.2934, allocations: 68.84 kB / 329.8 MB, free: 15.23 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004031/0.2938, allocations: 162 kB / 329.9 MB, free: 15.09 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004859/0.2943, allocations: 467.6 kB / 330.4 MB, free: 14.83 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001717/0.2945, allocations: 53.17 kB / 330.4 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002397/0.2948, allocations: 188.9 kB / 330.6 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002934/0.2951, allocations: 220.7 kB / 330.8 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.181e-05/0.2951, allocations: 23.47 kB / 330.8 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000154/0.2953, allocations: 65.52 kB / 330.9 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001112/0.2954, allocations: 83.23 kB / 331 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001775/0.2956, allocations: 184.9 kB / 331.2 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004532/0.2961, allocations: 431.5 kB / 331.6 MB, free: 14.02 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2961, allocations: 1.406 kB / 331.6 MB, free: 14.02 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2961, allocations: 0 / 331.6 MB, free: 14.02 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.2961, allocations: 0 / 331.6 MB, free: 14.02 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.001227/0.2973, allocations: 0.6262 MB / 332.2 MB, free: 13.48 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.2974, allocations: 8.625 kB / 332.2 MB, free: 13.48 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.47e-05/0.2975, allocations: 34.16 kB / 332.3 MB, free: 13.47 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002978/0.2978, allocations: 276.2 kB / 332.5 MB, free: 13.19 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.266e-05/0.2978, allocations: 29.34 kB / 332.6 MB, free: 13.18 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.069e-05/0.2979, allocations: 34.66 kB / 332.6 MB, free: 13.16 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007299/0.2986, allocations: 380 kB / 333 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.2987, allocations: 1.344 kB / 333 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.736e-05/0.2987, allocations: 15.25 kB / 333 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.2987, allocations: 6.5 kB / 333 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008166/0.2996, allocations: 407.3 kB / 333.4 MB, free: 12.73 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002037/0.3016, allocations: 1.134 MB / 334.5 MB, free: 11.69 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000511/0.3021, allocations: 295.5 kB / 334.8 MB, free: 11.39 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003552/0.3025, allocations: 205.6 kB / 335 MB, free: 11.19 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.693e-05/0.3025, allocations: 7.984 kB / 335 MB, free: 11.18 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.042e-05/0.3026, allocations: 46.5 kB / 335.1 MB, free: 11.13 MB / 270.1 MB Notification: Performance of pre-optimization done (n=39): time 1.543e-06/0.3026, allocations: 3.938 kB / 335.1 MB, free: 11.12 MB / 270.1 MB Notification: Performance of matching and sorting (n=45): time 0.004582/0.3072, allocations: 2.105 MB / 337.2 MB, free: 8.887 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.598e-05/0.3073, allocations: 55.41 kB / 337.2 MB, free: 8.82 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002919/0.3076, allocations: 240.9 kB / 337.5 MB, free: 8.574 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.735e-05/0.3076, allocations: 37.7 kB / 337.5 MB, free: 8.531 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.3078, allocations: 152.7 kB / 337.6 MB, free: 8.375 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000135/0.3079, allocations: 153.9 kB / 337.8 MB, free: 8.223 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.395e-05/0.308, allocations: 53.69 kB / 337.8 MB, free: 8.164 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.3081, allocations: 338.8 kB / 338.2 MB, free: 7.824 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003818/0.3085, allocations: 217 kB / 338.4 MB, free: 7.613 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000447/0.309, allocations: 276.8 kB / 338.7 MB, free: 7.316 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006247/0.3096, allocations: 401.6 kB / 339.1 MB, free: 6.898 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3096, allocations: 0 / 339.1 MB, free: 6.898 MB / 270.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001369/0.311, allocations: 0.7003 MB / 339.8 MB, free: 6.184 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.311, allocations: 4 kB / 339.8 MB, free: 6.18 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.3111, allocations: 4 kB / 339.8 MB, free: 6.176 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000888/0.312, allocations: 497.4 kB / 340.2 MB, free: 5.684 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002873/0.3122, allocations: 71.91 kB / 340.3 MB, free: 5.613 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001341/0.3136, allocations: 1.394 MB / 341.7 MB, free: 4.168 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004679/0.3141, allocations: 91.97 kB / 341.8 MB, free: 4.078 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.514e-05/0.3141, allocations: 23.98 kB / 341.8 MB, free: 4.055 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.0002292/0.3144, allocations: 162.6 kB / 342 MB, free: 3.887 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.282e-05/0.3145, allocations: 39.5 kB / 342 MB, free: 3.848 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001163/0.3146, allocations: 47.31 kB / 342.1 MB, free: 3.805 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.3146, allocations: 4 kB / 342.1 MB, free: 3.801 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/0.3146, allocations: 3.984 kB / 342.1 MB, free: 3.797 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.3146, allocations: 0 / 342.1 MB, free: 3.797 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002805/0.3174, allocations: 1.393 MB / 343.5 MB, free: 2.324 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.3174, allocations: 4 kB / 343.5 MB, free: 2.32 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002663/0.3177, allocations: 68.06 kB / 343.5 MB, free: 2.254 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007249/0.3185, allocations: 469.3 kB / 344 MB, free: 1.789 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.936e-05/0.3185, allocations: 15.98 kB / 344 MB, free: 1.773 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001126/0.3196, allocations: 1.343 MB / 345.4 MB, free: 388 kB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.3197, allocations: 0 / 345.4 MB, free: 388 kB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001759/0.3214, allocations: 0.9432 MB / 346.3 MB, free: 15.4 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001975/0.3216, allocations: 152.7 kB / 346.4 MB, free: 15.23 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.655e-05/0.3217, allocations: 24.12 kB / 346.5 MB, free: 15.21 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003098/0.322, allocations: 55.95 kB / 346.5 MB, free: 15.15 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001933/0.3222, allocations: 83.78 kB / 346.6 MB, free: 15.07 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.801e-05/0.3223, allocations: 23.98 kB / 346.6 MB, free: 15.05 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001642/0.3225, allocations: 172.5 kB / 346.8 MB, free: 14.88 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.3225, allocations: 0 / 346.8 MB, free: 14.88 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004953/0.323, allocations: 104 kB / 346.9 MB, free: 14.77 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.0002484/0.3232, allocations: 131.2 kB / 347 MB, free: 14.64 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001075/0.3243, allocations: 0.5139 MB / 347.5 MB, free: 14.12 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3243, allocations: 3.938 kB / 347.5 MB, free: 14.12 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006018/0.3249, allocations: 292.6 kB / 347.8 MB, free: 13.84 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005257/0.3255, allocations: 56.34 kB / 347.9 MB, free: 13.78 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002326/0.3278, allocations: 1.198 MB / 349.1 MB, free: 12.54 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003415/0.3282, allocations: 0.7841 MB / 349.9 MB, free: 11.73 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001329/0.3283, allocations: 34.97 kB / 349.9 MB, free: 11.7 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.355e-05/0.3284, allocations: 27.42 kB / 349.9 MB, free: 11.67 MB / 286.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3284, allocations: 0 / 349.9 MB, free: 11.67 MB / 286.1 MB Notification: Performance of Templates: time 0.01327/0.3417, allocations: 8.115 MB / 358 MB, free: 3.543 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)