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.001306/0.001306, allocations: 100.8 kB / 16.51 MB, free: 6.645 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.001377/0.001377, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.478/1.478, allocations: 205.1 MB / 223.3 MB, free: 12.46 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.001678/0.001678, allocations: 52.2 kB / 279.3 MB, free: 3.605 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1093, allocations: 46.64 MB / 326 MB, free: 4.902 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004106/0.1135, allocations: 2.464 MB / 328.4 MB, free: 2.418 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001026/0.1146, allocations: 0.5076 MB / 328.9 MB, free: 1.906 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.1147, allocations: 4 kB / 328.9 MB, free: 1.902 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002275/0.1149, allocations: 43.69 kB / 329 MB, free: 1.859 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001434/0.1151, allocations: 67.47 kB / 329 MB, free: 1.793 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004401/0.1155, allocations: 163.8 kB / 329.2 MB, free: 1.633 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004588/0.116, allocations: 467.1 kB / 329.7 MB, free: 1.176 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002032/0.1162, allocations: 60.66 kB / 329.7 MB, free: 1.121 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001913/0.1164, allocations: 191.3 kB / 329.9 MB, free: 0.9336 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000255/0.1167, allocations: 223.2 kB / 330.1 MB, free: 0.7148 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.31e-05/0.1168, allocations: 24 kB / 330.1 MB, free: 0.6914 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001497/0.1169, allocations: 71.89 kB / 330.2 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.117, allocations: 83.72 kB / 330.3 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001581/0.1172, allocations: 167.1 kB / 330.5 MB, free: 384 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004096/0.1176, allocations: 434.8 kB / 330.9 MB, free: 15.95 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.1176, allocations: 4 kB / 330.9 MB, free: 15.95 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.02e-07/0.1176, allocations: 0 / 330.9 MB, free: 15.95 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.1176, allocations: 0 / 330.9 MB, free: 15.95 MB / 286.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.001228/0.1189, allocations: 0.6588 MB / 331.5 MB, free: 15.23 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.1189, allocations: 8.031 kB / 331.6 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.464e-05/0.119, allocations: 40.45 kB / 331.6 MB, free: 15.19 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003231/0.1193, allocations: 280.6 kB / 331.9 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.51e-05/0.1194, allocations: 20.94 kB / 331.9 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.681e-05/0.1195, allocations: 36.38 kB / 331.9 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006966/0.1202, allocations: 377.2 kB / 332.3 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.004e-05/0.1202, allocations: 8.094 kB / 332.3 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.067e-05/0.1203, allocations: 19.88 kB / 332.3 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/0.1203, allocations: 8 kB / 332.3 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007469/0.121, allocations: 405.9 kB / 332.7 MB, free: 14.01 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002051/0.1231, allocations: 1.1 MB / 333.8 MB, free: 12.83 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005298/0.1236, allocations: 303.4 kB / 334.1 MB, free: 12.53 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003549/0.124, allocations: 197.4 kB / 334.3 MB, free: 12.33 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.49e-05/0.124, allocations: 7.938 kB / 334.3 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.662e-05/0.1241, allocations: 42.5 kB / 334.4 MB, free: 12.27 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 1.523e-06/0.1241, allocations: 0 / 334.4 MB, free: 12.27 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004406/0.1285, allocations: 2.025 MB / 336.4 MB, free: 10.11 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.736e-05/0.1286, allocations: 55.41 kB / 336.4 MB, free: 10.05 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003045/0.1289, allocations: 233 kB / 336.7 MB, free: 9.809 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.121e-05/0.1289, allocations: 41.69 kB / 336.7 MB, free: 9.762 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.416e-05/0.129, allocations: 156.7 kB / 336.9 MB, free: 9.602 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001215/0.1292, allocations: 146 kB / 337 MB, free: 9.457 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001595/0.1293, allocations: 98.14 kB / 337.1 MB, free: 9.355 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.1294, allocations: 342.8 kB / 337.4 MB, free: 9.012 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003825/0.1298, allocations: 213 kB / 337.6 MB, free: 8.805 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004163/0.1303, allocations: 280.8 kB / 337.9 MB, free: 8.504 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006137/0.1309, allocations: 381.7 kB / 338.3 MB, free: 8.105 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1309, allocations: 0 / 338.3 MB, free: 8.105 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001376/0.1323, allocations: 0.6923 MB / 339 MB, free: 7.398 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.1323, allocations: 12.16 kB / 339 MB, free: 7.387 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.1323, allocations: 0 / 339 MB, free: 7.387 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008922/0.1332, allocations: 497.4 kB / 339.5 MB, free: 6.895 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002798/0.1335, allocations: 75.84 kB / 339.6 MB, free: 6.82 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001245/0.1348, allocations: 1.394 MB / 340.9 MB, free: 5.375 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003864/0.1352, allocations: 67.91 kB / 341 MB, free: 5.309 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.104e-05/0.1352, allocations: 16 kB / 341 MB, free: 5.293 MB / 286.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.0001999/0.1354, allocations: 165.4 kB / 341.2 MB, free: 5.121 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.973e-05/0.1355, allocations: 39.55 kB / 341.2 MB, free: 5.082 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001046/0.1356, allocations: 47.31 kB / 341.3 MB, free: 5.039 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.1356, allocations: 8.047 kB / 341.3 MB, free: 5.031 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.475e-06/0.1357, allocations: 4 kB / 341.3 MB, free: 5.027 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.1357, allocations: 0 / 341.3 MB, free: 5.027 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0026/0.1383, allocations: 1.356 MB / 342.6 MB, free: 3.594 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.1383, allocations: 4 kB / 342.6 MB, free: 3.59 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002683/0.1386, allocations: 55.91 kB / 342.7 MB, free: 3.535 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006782/0.1392, allocations: 469.5 kB / 343.2 MB, free: 3.07 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.102e-05/0.1393, allocations: 23.92 kB / 343.2 MB, free: 3.047 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001171/0.1405, allocations: 1.339 MB / 344.5 MB, free: 1.656 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.1405, allocations: 4.031 kB / 344.5 MB, free: 1.652 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001763/0.1423, allocations: 0.9432 MB / 345.5 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001737/0.1424, allocations: 152.7 kB / 345.6 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.161e-05/0.1425, allocations: 23.94 kB / 345.6 MB, free: 492 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002791/0.1428, allocations: 31.95 kB / 345.7 MB, free: 460 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002048/0.143, allocations: 91.84 kB / 345.8 MB, free: 368 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.874e-05/0.1431, allocations: 15.98 kB / 345.8 MB, free: 352 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001763/0.1433, allocations: 172.5 kB / 345.9 MB, free: 176 kB / 286.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1433, allocations: 0 / 345.9 MB, free: 176 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005268/0.1438, allocations: 104 kB / 346 MB, free: 72 kB / 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.0002766/0.1441, allocations: 135.2 kB / 346.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001016/0.1451, allocations: 0.5099 MB / 346.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1451, allocations: 0 / 346.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007382/0.1459, allocations: 292 kB / 347 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000495/0.1464, allocations: 56.97 kB / 347 MB, free: 15.08 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00221/0.1486, allocations: 1.089 MB / 348.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000354/0.149, allocations: 0.7803 MB / 348.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001392/0.1491, allocations: 42.97 kB / 348.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.563e-05/0.1492, allocations: 23.44 kB / 349 MB, free: 13.08 MB / 302.1 MB Notification: Performance of SimCode: time 3.056e-06/0.1492, allocations: 0 / 349 MB, free: 13.08 MB / 302.1 MB Notification: Performance of Templates: time 0.0129/0.1621, allocations: 8.193 MB / 357.2 MB, free: 4.883 MB / 302.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)