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.00612/0.00612, allocations: 103.5 kB / 15.74 MB, free: 6.492 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.001272/0.001272, allocations: 197.5 kB / 16.67 MB, free: 6.375 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.679/1.679, allocations: 205.1 MB / 222.6 MB, free: 4.52 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.002243/0.002243, allocations: 55.3 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.119, allocations: 46.63 MB / 373.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003884/0.123, allocations: 2.412 MB / 375.6 MB, free: 14.9 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001228/0.1242, allocations: 0.4961 MB / 376.1 MB, free: 14.4 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002743/0.1245, allocations: 4 kB / 376.1 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003718/0.1249, allocations: 55.52 kB / 376.1 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003931/0.1253, allocations: 83.27 kB / 376.2 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006362/0.126, allocations: 187.6 kB / 376.4 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005697/0.1266, allocations: 495.1 kB / 376.9 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001977/0.1268, allocations: 76.67 kB / 376.9 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003194/0.1271, allocations: 211.4 kB / 377.2 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003613/0.1275, allocations: 235.2 kB / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.353e-05/0.1276, allocations: 39.94 kB / 377.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001792/0.1278, allocations: 95.94 kB / 377.5 MB, free: 12.94 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001194/0.1279, allocations: 103.6 kB / 377.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001803/0.1281, allocations: 183.2 kB / 377.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005175/0.1286, allocations: 454.6 kB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1286, allocations: 0 / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1286, allocations: 0 / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.189e-05/0.1286, 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.001253/0.1299, allocations: 0.6665 MB / 378.9 MB, free: 11.5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.13, allocations: 8.031 kB / 378.9 MB, free: 11.49 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001015/0.1301, allocations: 36.56 kB / 379 MB, free: 11.45 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004047/0.1305, allocations: 284.6 kB / 379.2 MB, free: 11.14 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.87e-05/0.1305, allocations: 24.94 kB / 379.3 MB, free: 11.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.33e-05/0.1306, allocations: 32.38 kB / 379.3 MB, free: 11.08 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006853/0.1313, allocations: 381.2 kB / 379.7 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.313e-05/0.1313, allocations: 192 / 379.7 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.765e-05/0.1314, allocations: 15.94 kB / 379.7 MB, free: 10.69 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.1314, allocations: 8 kB / 379.7 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007545/0.1321, allocations: 402 kB / 380.1 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001997/0.1342, allocations: 1.096 MB / 381.2 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005298/0.1347, allocations: 295.7 kB / 381.5 MB, free: 8.82 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003627/0.1351, allocations: 205.7 kB / 381.7 MB, free: 8.617 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.1e-05/0.1351, allocations: 4 kB / 381.7 MB, free: 8.613 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.018e-05/0.1352, allocations: 42.44 kB / 381.7 MB, free: 8.562 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.713e-06/0.1352, allocations: 0 / 381.7 MB, free: 8.562 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.00455/0.1397, allocations: 2.035 MB / 383.7 MB, free: 6.395 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.175e-05/0.1398, allocations: 59.41 kB / 383.8 MB, free: 6.324 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002359/0.14, allocations: 236.9 kB / 384 MB, free: 6.082 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.652e-05/0.1401, allocations: 41.69 kB / 384.1 MB, free: 6.035 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.1402, allocations: 152.8 kB / 384.2 MB, free: 5.883 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/0.1404, allocations: 153.9 kB / 384.4 MB, free: 5.73 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002084/0.1406, allocations: 94.14 kB / 384.5 MB, free: 5.633 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.1407, allocations: 342.8 kB / 384.8 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004125/0.1412, allocations: 217 kB / 385 MB, free: 5.074 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004493/0.1416, allocations: 280.8 kB / 385.3 MB, free: 4.777 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006323/0.1423, allocations: 377.7 kB / 385.7 MB, free: 4.383 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.1423, allocations: 7.938 kB / 385.7 MB, free: 4.375 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00138/0.1437, allocations: 0.6885 MB / 386.3 MB, free: 3.672 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.1437, allocations: 4 kB / 386.4 MB, free: 3.668 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.1437, allocations: 4 kB / 386.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008711/0.1446, allocations: 0.4897 MB / 386.8 MB, free: 3.168 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002786/0.1449, allocations: 71.91 kB / 386.9 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001294/0.1462, allocations: 1.394 MB / 388.3 MB, free: 1.652 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003704/0.1466, allocations: 68.03 kB / 388.4 MB, free: 1.586 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.422e-05/0.1466, allocations: 20 kB / 388.4 MB, free: 1.566 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.0002019/0.1468, allocations: 165.9 kB / 388.6 MB, free: 1.395 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.296e-05/0.1469, allocations: 35.56 kB / 388.6 MB, free: 1.359 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000112/0.147, allocations: 43.31 kB / 388.6 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.147, allocations: 7.984 kB / 388.6 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.147, allocations: 0 / 388.6 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.756e-06/0.1471, allocations: 7.984 kB / 388.6 MB, free: 1.297 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002633/0.1497, allocations: 1.358 MB / 390 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.846e-06/0.1497, allocations: 8.062 kB / 390 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002627/0.15, allocations: 64.06 kB / 390.1 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007357/0.1507, allocations: 465.3 kB / 390.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.106e-05/0.1508, allocations: 19.98 kB / 390.6 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001175/0.152, allocations: 1.335 MB / 391.9 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.152, allocations: 8.094 kB / 391.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001704/0.1537, allocations: 0.9364 MB / 392.8 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001819/0.1539, allocations: 152.7 kB / 393 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.473e-05/0.154, allocations: 23.94 kB / 393 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002712/0.1543, allocations: 35.95 kB / 393 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002022/0.1545, allocations: 87.86 kB / 393.1 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.117e-05/0.1545, allocations: 23.91 kB / 393.1 MB, free: 12.6 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002133/0.1547, allocations: 168.5 kB / 393.3 MB, free: 12.44 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1548, allocations: 0 / 393.3 MB, free: 12.44 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004496/0.1552, allocations: 104 kB / 393.4 MB, free: 12.34 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.0002633/0.1555, allocations: 143.2 kB / 393.6 MB, free: 12.19 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001123/0.1566, allocations: 0.4983 MB / 394.1 MB, free: 11.69 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.1566, allocations: 0 / 394.1 MB, free: 11.69 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006215/0.1573, allocations: 300.6 kB / 394.3 MB, free: 11.4 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005008/0.1578, allocations: 64.47 kB / 394.4 MB, free: 11.33 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002192/0.16, allocations: 0.9731 MB / 395.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.1603, allocations: 0.7798 MB / 396.2 MB, free: 9.512 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001451/0.1605, allocations: 42.95 kB / 396.2 MB, free: 9.473 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.75e-05/0.1605, allocations: 31.38 kB / 396.2 MB, free: 9.445 MB / 334.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1606, allocations: 0 / 396.2 MB, free: 9.445 MB / 334.1 MB Notification: Performance of Templates: time 0.01555/0.1761, allocations: 8.776 MB / 405 MB, free: 0.6523 MB / 334.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)