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.0009179/0.0009183, allocations: 95.58 kB / 16.3 MB, free: 6.461 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.0009088/0.0009088, allocations: 183 kB / 17.2 MB, free: 6.34 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.499/1.499, allocations: 205.4 MB / 223.4 MB, free: 13.17 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.0004754/0.0004755, allocations: 12 kB / 280.1 MB, free: 3.766 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1132, allocations: 47.59 MB / 327.7 MB, free: 4.105 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002477/0.1158, allocations: 1.945 MB / 329.6 MB, free: 2.141 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009282/0.1167, allocations: 0.5078 MB / 330.1 MB, free: 1.629 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001247/0.1169, allocations: 7.938 kB / 330.2 MB, free: 1.621 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001373/0.117, allocations: 27.77 kB / 330.2 MB, free: 1.594 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001924/0.1172, allocations: 91.73 kB / 330.3 MB, free: 1.504 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004174/0.1176, allocations: 151.7 kB / 330.4 MB, free: 1.355 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003659/0.118, allocations: 292 kB / 330.7 MB, free: 1.07 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000168/0.1182, allocations: 48.72 kB / 330.8 MB, free: 1.027 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002234/0.1184, allocations: 187.4 kB / 330.9 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003197/0.1187, allocations: 211.2 kB / 331.1 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.618e-05/0.1188, allocations: 20 kB / 331.2 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001376/0.1189, allocations: 59.95 kB / 331.2 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001046/0.1191, allocations: 83.7 kB / 331.3 MB, free: 488 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.076e-05/0.1191, allocations: 73.52 kB / 331.4 MB, free: 408 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003269/0.1195, allocations: 323.4 kB / 331.7 MB, free: 84 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1195, allocations: 0 / 331.7 MB, free: 84 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1195, allocations: 4 kB / 331.7 MB, free: 80 kB / 270.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.1195, allocations: 4 kB / 331.7 MB, free: 76 kB / 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.00119/0.1207, allocations: 0.6158 MB / 332.3 MB, free: 15.41 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.1208, allocations: 8.031 kB / 332.3 MB, free: 15.4 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.111e-05/0.1208, allocations: 35.62 kB / 332.4 MB, free: 15.37 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000338/0.1212, allocations: 271.4 kB / 332.6 MB, free: 15.06 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.6e-05/0.1212, allocations: 32.5 kB / 332.7 MB, free: 15.03 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.859e-05/0.1213, allocations: 28 kB / 332.7 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006622/0.122, allocations: 372.7 kB / 333 MB, free: 14.63 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.122, allocations: 3.906 kB / 333 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.873e-05/0.1221, allocations: 16 kB / 333.1 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.1221, allocations: 4 kB / 333.1 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007198/0.1228, allocations: 409.9 kB / 333.5 MB, free: 14.21 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001879/0.1247, allocations: 1.127 MB / 334.6 MB, free: 13 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004828/0.1252, allocations: 307.4 kB / 334.9 MB, free: 12.69 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.918e-05/0.1252, allocations: 12.31 kB / 334.9 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.142e-05/0.1253, allocations: 39.22 kB / 334.9 MB, free: 12.63 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 1.523e-06/0.1253, allocations: 0 / 334.9 MB, free: 12.63 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004581/0.1299, allocations: 2.112 MB / 337.1 MB, free: 10.38 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.776e-05/0.1299, allocations: 63.3 kB / 337.1 MB, free: 10.31 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002198/0.1301, allocations: 229 kB / 337.3 MB, free: 10.07 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.678e-05/0.1302, allocations: 45.62 kB / 337.4 MB, free: 10.02 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.4e-05/0.1303, allocations: 152.7 kB / 337.5 MB, free: 9.867 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001167/0.1304, allocations: 154 kB / 337.7 MB, free: 9.715 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.806e-05/0.1305, allocations: 8 kB / 337.7 MB, free: 9.707 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.1306, allocations: 342.8 kB / 338 MB, free: 9.363 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003702/0.131, allocations: 205 kB / 338.2 MB, free: 9.164 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004085/0.1314, allocations: 284.8 kB / 338.5 MB, free: 8.859 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003122/0.1317, allocations: 168.7 kB / 338.7 MB, free: 8.691 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1317, allocations: 4 kB / 338.7 MB, free: 8.688 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00135/0.1331, allocations: 0.6924 MB / 339.4 MB, free: 7.984 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.1331, allocations: 4 kB / 339.4 MB, free: 7.98 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.1331, allocations: 0 / 339.4 MB, free: 7.98 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008476/0.134, allocations: 0.4898 MB / 339.9 MB, free: 7.484 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002771/0.1343, allocations: 79.84 kB / 339.9 MB, free: 7.406 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001155/0.1354, allocations: 1.386 MB / 341.3 MB, free: 5.969 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004354/0.1359, allocations: 100.1 kB / 341.4 MB, free: 5.871 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.983e-05/0.1359, allocations: 20 kB / 341.4 MB, free: 5.852 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 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002006/0.1361, allocations: 158 kB / 341.6 MB, free: 5.688 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.854e-05/0.1362, allocations: 35.56 kB / 341.6 MB, free: 5.652 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001057/0.1363, allocations: 51.31 kB / 341.7 MB, free: 5.605 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.1363, allocations: 4 kB / 341.7 MB, free: 5.602 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.1364, allocations: 0 / 341.7 MB, free: 5.602 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.1364, allocations: 7.984 kB / 341.7 MB, free: 5.594 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00267/0.139, allocations: 1.372 MB / 343.1 MB, free: 4.145 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.1391, allocations: 3.938 kB / 343.1 MB, free: 4.141 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002634/0.1393, allocations: 67.86 kB / 343.1 MB, free: 4.074 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006873/0.14, allocations: 461.5 kB / 343.6 MB, free: 3.617 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.202e-05/0.1401, allocations: 23.97 kB / 343.6 MB, free: 3.594 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001163/0.1413, allocations: 1.335 MB / 344.9 MB, free: 2.207 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.1413, allocations: 7.984 kB / 345 MB, free: 2.199 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001757/0.143, allocations: 1.01 MB / 346 MB, free: 1.121 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000197/0.1433, allocations: 156.7 kB / 346.1 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.533e-05/0.1433, allocations: 16 kB / 346.1 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003004/0.1436, allocations: 51.95 kB / 346.2 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001989/0.1438, allocations: 103.7 kB / 346.3 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.846e-05/0.1439, allocations: 23.97 kB / 346.3 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001532/0.1441, allocations: 172.4 kB / 346.5 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1441, allocations: 0 / 346.5 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004504/0.1445, allocations: 100 kB / 346.6 MB, free: 0.4922 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.000243/0.1448, allocations: 146.9 kB / 346.7 MB, free: 348 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001008/0.1458, allocations: 0.5024 MB / 347.2 MB, free: 15.83 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/0.1458, allocations: 0 / 347.2 MB, free: 15.83 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005665/0.1464, allocations: 292.6 kB / 347.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003829/0.1468, allocations: 48.06 kB / 347.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002297/0.1491, allocations: 1.167 MB / 348.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003589/0.1494, allocations: 0.7881 MB / 349.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001478/0.1496, allocations: 34.95 kB / 349.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.349e-05/0.1497, allocations: 31.42 kB / 349.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1497, allocations: 0 / 349.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of Templates: time 0.01245/0.1621, allocations: 7.869 MB / 357.4 MB, free: 5.543 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: