Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.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.007746/0.007746, allocations: 99.75 kB / 15.73 MB, free: 6.039 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.00142/0.00142, allocations: 191.9 kB / 16.67 MB, free: 5.949 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.597/1.597, allocations: 205.1 MB / 222.6 MB, free: 4.543 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.001216/0.001217, allocations: 47.88 kB / 326.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.112, allocations: 46.63 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004255/0.1163, allocations: 2.408 MB / 375.6 MB, free: 14.9 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001278/0.1177, allocations: 0.5 MB / 376.1 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002092/0.1179, allocations: 7.938 kB / 376.1 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002415/0.1182, allocations: 47.52 kB / 376.1 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002619/0.1184, allocations: 83.28 kB / 376.2 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008706/0.1193, allocations: 195.6 kB / 376.4 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009317/0.1203, allocations: 495.1 kB / 376.9 MB, free: 13.58 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002951/0.1206, allocations: 64.7 kB / 376.9 MB, free: 13.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005597/0.1212, allocations: 215.4 kB / 377.2 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006414/0.1218, allocations: 235.2 kB / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001763/0.122, allocations: 40 kB / 377.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003857/0.1224, allocations: 87.89 kB / 377.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001821/0.1226, allocations: 107.6 kB / 377.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002435/0.1228, allocations: 179.2 kB / 377.8 MB, free: 12.67 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000687/0.1235, allocations: 462.3 kB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.1236, allocations: 0 / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.19e-06/0.1236, allocations: 4 kB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.366e-05/0.1236, allocations: 0 / 378.2 MB, free: 12.21 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.001465/0.1251, allocations: 0.6662 MB / 378.9 MB, free: 11.49 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.1251, allocations: 12.03 kB / 378.9 MB, free: 11.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001098/0.1252, allocations: 36.7 kB / 379 MB, free: 11.45 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004143/0.1257, allocations: 280.8 kB / 379.2 MB, free: 11.13 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.844e-05/0.1257, allocations: 28.94 kB / 379.3 MB, free: 11.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.677e-05/0.1258, allocations: 36.33 kB / 379.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000742/0.1265, allocations: 381.2 kB / 379.7 MB, free: 10.69 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.188e-05/0.1266, allocations: 4.188 kB / 379.7 MB, free: 10.69 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.134e-05/0.1266, allocations: 11.94 kB / 379.7 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.1266, allocations: 8 kB / 379.7 MB, free: 10.67 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007751/0.1274, allocations: 402 kB / 380.1 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00195/0.1294, allocations: 1.104 MB / 381.2 MB, free: 9.098 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000518/0.1299, allocations: 287.7 kB / 381.5 MB, free: 8.809 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003576/0.1303, allocations: 201.7 kB / 381.7 MB, free: 8.609 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.479e-05/0.1303, allocations: 4 kB / 381.7 MB, free: 8.605 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.925e-05/0.1304, allocations: 42.5 kB / 381.7 MB, free: 8.555 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.603e-06/0.1304, allocations: 0 / 381.7 MB, free: 8.555 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004621/0.135, allocations: 2.039 MB / 383.7 MB, free: 6.383 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.329e-05/0.1351, allocations: 59.41 kB / 383.8 MB, free: 6.312 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003387/0.1354, allocations: 244.9 kB / 384 MB, free: 6.062 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.785e-05/0.1355, allocations: 37.7 kB / 384.1 MB, free: 6.02 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.1356, allocations: 157 kB / 384.2 MB, free: 5.863 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000141/0.1357, allocations: 154.7 kB / 384.4 MB, free: 5.711 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001814/0.1359, allocations: 102.2 kB / 384.5 MB, free: 5.605 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.1361, allocations: 342.7 kB / 384.8 MB, free: 5.262 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003915/0.1365, allocations: 209 kB / 385 MB, free: 5.055 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004852/0.137, allocations: 292.8 kB / 385.3 MB, free: 4.746 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006238/0.1376, allocations: 373.7 kB / 385.7 MB, free: 4.355 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.1376, allocations: 0 / 385.7 MB, free: 4.355 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00147/0.1391, allocations: 0.6964 MB / 386.4 MB, free: 3.645 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.33e-05/0.1392, allocations: 9.094 kB / 386.4 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.1392, allocations: 0 / 386.4 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008844/0.1401, allocations: 493.5 kB / 386.9 MB, free: 3.148 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002932/0.1404, allocations: 71.84 kB / 386.9 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001488/0.1419, allocations: 1.398 MB / 388.3 MB, free: 1.629 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004379/0.1423, allocations: 67.94 kB / 388.4 MB, free: 1.562 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.315e-05/0.1424, allocations: 24.06 kB / 388.4 MB, free: 1.539 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.0002359/0.1426, allocations: 170 kB / 388.6 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.1428, allocations: 35.75 kB / 388.6 MB, free: 1.328 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001394/0.1429, allocations: 51.3 kB / 388.7 MB, free: 1.273 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.1429, allocations: 4 kB / 388.7 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/0.1429, allocations: 0 / 388.7 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.1429, allocations: 0 / 388.7 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002773/0.1457, allocations: 1.374 MB / 390 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.1457, allocations: 0 / 390 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002717/0.146, allocations: 59.91 kB / 390.1 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007915/0.1468, allocations: 473.5 kB / 390.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.496e-05/0.1469, allocations: 11.98 kB / 390.6 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001132/0.148, allocations: 1.339 MB / 391.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.148, allocations: 0 / 391.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001678/0.1497, allocations: 0.9484 MB / 392.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001652/0.1499, allocations: 148.9 kB / 393 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.161e-05/0.15, allocations: 27.92 kB / 393 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002909/0.1503, allocations: 31.97 kB / 393.1 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001912/0.1505, allocations: 87.86 kB / 393.2 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.403e-05/0.1505, allocations: 23.97 kB / 393.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001535/0.1507, allocations: 168.5 kB / 393.3 MB, free: 12.4 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.372e-06/0.1507, allocations: 0 / 393.3 MB, free: 12.4 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004625/0.1512, allocations: 107.9 kB / 393.5 MB, free: 12.3 MB / 334.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.000244/0.1514, allocations: 139 kB / 393.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001031/0.1525, allocations: 0.5022 MB / 394.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.1525, allocations: 0 / 394.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005904/0.1531, allocations: 299.9 kB / 394.4 MB, free: 11.36 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004999/0.1536, allocations: 69.14 kB / 394.5 MB, free: 11.29 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002234/0.1558, allocations: 0.98 MB / 395.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004146/0.1563, allocations: 0.7837 MB / 396.2 MB, free: 9.457 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001502/0.1564, allocations: 30.97 kB / 396.2 MB, free: 9.43 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.692e-05/0.1565, allocations: 31.44 kB / 396.3 MB, free: 9.402 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1565, allocations: 0 / 396.3 MB, free: 9.402 MB / 334.1 MB Notification: Performance of Templates: time 0.016/0.1725, allocations: 8.779 MB / 405.1 MB, free: 0.6055 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1)