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.007685/0.007685, allocations: 101.1 kB / 15.73 MB, free: 6.035 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.001273/0.001273, allocations: 186.8 kB / 16.67 MB, free: 5.973 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.636/1.636, allocations: 205.1 MB / 222.6 MB, free: 4.473 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.00114/0.00114, allocations: 45.47 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1052, allocations: 46.63 MB / 373.2 MB, free: 1.336 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003852/0.1091, allocations: 2.424 MB / 375.6 MB, free: 14.89 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00096/0.1101, allocations: 0.4883 MB / 376.1 MB, free: 14.4 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.1102, allocations: 8 kB / 376.1 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002152/0.1104, allocations: 55.5 kB / 376.1 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001393/0.1106, allocations: 79.28 kB / 376.2 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005111/0.1111, allocations: 191.7 kB / 376.4 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00046/0.1116, allocations: 491.1 kB / 376.9 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001827/0.1118, allocations: 68.7 kB / 376.9 MB, free: 13.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002171/0.112, allocations: 215.4 kB / 377.1 MB, free: 13.31 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002916/0.1123, allocations: 235.2 kB / 377.4 MB, free: 13.08 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.937e-05/0.1124, allocations: 43.94 kB / 377.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001665/0.1125, allocations: 95.88 kB / 377.5 MB, free: 12.94 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001232/0.1127, allocations: 99.7 kB / 377.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001563/0.1128, allocations: 179.1 kB / 377.8 MB, free: 12.67 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000468/0.1133, allocations: 466.6 kB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.1133, allocations: 0 / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.1133, allocations: 0 / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.1133, 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.001241/0.1146, allocations: 0.6626 MB / 378.9 MB, free: 11.5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.1146, allocations: 8.031 kB / 378.9 MB, free: 11.49 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001139/0.1148, allocations: 36.56 kB / 378.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000428/0.1152, allocations: 292.5 kB / 379.2 MB, free: 11.13 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.618e-05/0.1152, allocations: 20.94 kB / 379.3 MB, free: 11.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.73e-05/0.1153, allocations: 32.38 kB / 379.3 MB, free: 11.08 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007017/0.116, allocations: 373.2 kB / 379.7 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.12e-05/0.1161, allocations: 192 / 379.7 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.664e-05/0.1161, allocations: 19.88 kB / 379.7 MB, free: 10.69 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/0.1161, allocations: 15.97 kB / 379.7 MB, free: 10.67 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007644/0.1169, allocations: 398 kB / 380.1 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001943/0.1189, allocations: 1.096 MB / 381.2 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005181/0.1194, allocations: 295.7 kB / 381.5 MB, free: 8.816 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000366/0.1198, allocations: 201.7 kB / 381.7 MB, free: 8.617 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.54e-05/0.1198, allocations: 4 kB / 381.7 MB, free: 8.613 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.68e-05/0.1198, allocations: 38.5 kB / 381.7 MB, free: 8.566 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.453e-06/0.1199, allocations: 0 / 381.7 MB, free: 8.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004621/0.1245, allocations: 2.031 MB / 383.7 MB, free: 6.402 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.123e-05/0.1245, allocations: 63.39 kB / 383.8 MB, free: 6.328 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002288/0.1248, allocations: 232.9 kB / 384 MB, free: 6.09 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.14e-05/0.1248, allocations: 45.64 kB / 384.1 MB, free: 6.039 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.1249, allocations: 160.7 kB / 384.2 MB, free: 5.879 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001224/0.1251, allocations: 153.9 kB / 384.4 MB, free: 5.727 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001569/0.1252, allocations: 94.14 kB / 384.5 MB, free: 5.629 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.1254, allocations: 346.8 kB / 384.8 MB, free: 5.281 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003906/0.1258, allocations: 209 kB / 385 MB, free: 5.074 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004368/0.1262, allocations: 284.8 kB / 385.3 MB, free: 4.773 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006367/0.1269, allocations: 377.7 kB / 385.7 MB, free: 4.379 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1269, allocations: 0 / 385.7 MB, free: 4.379 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001416/0.1283, allocations: 0.6924 MB / 386.3 MB, free: 3.672 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.1283, allocations: 4 kB / 386.3 MB, free: 3.668 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.1283, allocations: 4 kB / 386.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008203/0.1292, allocations: 493.5 kB / 386.8 MB, free: 3.176 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002897/0.1295, allocations: 79.78 kB / 386.9 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001248/0.1307, allocations: 1.39 MB / 388.3 MB, free: 1.656 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004423/0.1312, allocations: 72.03 kB / 388.4 MB, free: 1.586 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.234e-05/0.1312, allocations: 16 kB / 388.4 MB, free: 1.57 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.0002031/0.1314, allocations: 165.9 kB / 388.5 MB, free: 1.398 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.753e-05/0.1315, allocations: 35.56 kB / 388.6 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001304/0.1317, allocations: 47.3 kB / 388.6 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.1317, allocations: 4 kB / 388.6 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/0.1317, allocations: 0 / 388.6 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.1317, allocations: 7.984 kB / 388.6 MB, free: 1.301 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002687/0.1344, allocations: 1.358 MB / 390 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.1344, allocations: 8.094 kB / 390 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002748/0.1347, allocations: 67.97 kB / 390.1 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000688/0.1354, allocations: 461.3 kB / 390.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.283e-05/0.1354, allocations: 23.97 kB / 390.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001102/0.1365, allocations: 1.335 MB / 391.9 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.1366, allocations: 4.031 kB / 391.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001782/0.1384, allocations: 0.9364 MB / 392.8 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001779/0.1385, allocations: 156.7 kB / 393 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.374e-05/0.1386, allocations: 19.94 kB / 393 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003089/0.1389, allocations: 39.95 kB / 393 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001767/0.1391, allocations: 83.86 kB / 393.1 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.779e-05/0.1392, allocations: 15.98 kB / 393.1 MB, free: 12.61 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001548/0.1393, allocations: 176.5 kB / 393.3 MB, free: 12.44 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1393, allocations: 0 / 393.3 MB, free: 12.44 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004495/0.1398, 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.0002348/0.14, allocations: 139.2 kB / 393.5 MB, free: 12.19 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001029/0.1411, allocations: 0.5061 MB / 394 MB, free: 11.69 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/0.1411, allocations: 0 / 394 MB, free: 11.69 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006021/0.1417, allocations: 304.6 kB / 394.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005209/0.1422, allocations: 52.88 kB / 394.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002338/0.1446, allocations: 0.9805 MB / 395.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003622/0.145, allocations: 0.7798 MB / 396.2 MB, free: 9.512 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001495/0.1451, allocations: 38.97 kB / 396.2 MB, free: 9.477 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.053e-05/0.1452, allocations: 31.42 kB / 396.2 MB, free: 9.449 MB / 334.1 MB Notification: Performance of SimCode: time 8.01e-07/0.1452, allocations: 0 / 396.2 MB, free: 9.449 MB / 334.1 MB Notification: Performance of Templates: time 0.01341/0.1586, allocations: 8.772 MB / 405 MB, free: 0.6602 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)