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.007395/0.007395, allocations: 99.31 kB / 15.73 MB, free: 6.047 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.001524/0.001524, allocations: 187.4 kB / 16.67 MB, free: 5.977 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.593/1.593, allocations: 205.1 MB / 222.5 MB, free: 4.496 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.001456/0.001456, allocations: 53.83 kB / 326.5 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1157, 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.005685/0.1215, allocations: 2.416 MB / 375.6 MB, free: 14.89 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002003/0.1235, allocations: 0.5039 MB / 376.1 MB, free: 14.38 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003353/0.1239, allocations: 4 kB / 376.1 MB, free: 14.38 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004365/0.1244, allocations: 47.52 kB / 376.1 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004666/0.1249, allocations: 79.34 kB / 376.2 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001067/0.126, allocations: 191.6 kB / 376.4 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008865/0.1269, allocations: 495.1 kB / 376.9 MB, free: 13.58 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002454/0.1271, allocations: 77.77 kB / 377 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004719/0.1276, allocations: 211.4 kB / 377.2 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005229/0.1281, allocations: 239.2 kB / 377.4 MB, free: 13.06 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000178/0.1283, allocations: 36 kB / 377.4 MB, free: 13.03 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002588/0.1286, allocations: 83.95 kB / 377.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001777/0.1288, allocations: 99.7 kB / 377.6 MB, free: 12.85 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000283/0.1291, allocations: 187.1 kB / 377.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008174/0.1299, allocations: 466.5 kB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1299, allocations: 0 / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.13, allocations: 0 / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.266e-05/0.13, 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.001908/0.1319, allocations: 0.6626 MB / 378.9 MB, free: 11.49 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.132, allocations: 8.031 kB / 378.9 MB, free: 11.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001396/0.1321, allocations: 36.56 kB / 379 MB, free: 11.45 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005654/0.1327, allocations: 292.5 kB / 379.2 MB, free: 11.12 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.777e-05/0.1327, allocations: 24.88 kB / 379.3 MB, free: 11.1 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.442e-05/0.1328, allocations: 28.38 kB / 379.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001138/0.134, allocations: 385.2 kB / 379.7 MB, free: 10.69 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.33e-05/0.134, allocations: 192 / 379.7 MB, free: 10.69 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.403e-05/0.1341, allocations: 15.94 kB / 379.7 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-06/0.1341, allocations: 4 kB / 379.7 MB, free: 10.67 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/0.1352, allocations: 406 kB / 380.1 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002712/0.1379, allocations: 1.096 MB / 381.2 MB, free: 9.105 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007069/0.1386, allocations: 295.6 kB / 381.5 MB, free: 8.809 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004967/0.1391, allocations: 201.7 kB / 381.7 MB, free: 8.609 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.156e-05/0.1392, allocations: 8 kB / 381.7 MB, free: 8.602 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.441e-05/0.1392, allocations: 38.5 kB / 381.7 MB, free: 8.555 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 2.134e-06/0.1393, allocations: 0 / 381.7 MB, free: 8.555 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.006491/0.1458, allocations: 2.035 MB / 383.7 MB, free: 6.387 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.824e-05/0.1459, allocations: 55.41 kB / 383.8 MB, free: 6.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003518/0.1462, allocations: 240.9 kB / 384 MB, free: 6.074 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.953e-05/0.1463, allocations: 41.69 kB / 384.1 MB, free: 6.027 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001374/0.1465, allocations: 156.7 kB / 384.2 MB, free: 5.871 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000169/0.1466, allocations: 153.9 kB / 384.4 MB, free: 5.719 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003686/0.147, allocations: 94.14 kB / 384.5 MB, free: 5.621 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.1472, allocations: 342.8 kB / 384.8 MB, free: 5.277 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004025/0.1476, allocations: 213 kB / 385 MB, free: 5.066 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004286/0.1481, allocations: 280.8 kB / 385.3 MB, free: 4.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000605/0.1487, allocations: 381.7 kB / 385.7 MB, free: 4.371 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1487, allocations: 0 / 385.7 MB, free: 4.371 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001423/0.1501, allocations: 0.6924 MB / 386.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.322e-05/0.1501, allocations: 4 kB / 386.4 MB, free: 3.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.1502, allocations: 4 kB / 386.4 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008781/0.1511, allocations: 497.5 kB / 386.8 MB, free: 3.164 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002887/0.1514, allocations: 71.91 kB / 386.9 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001398/0.1528, allocations: 1.39 MB / 388.3 MB, free: 1.652 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004546/0.1532, allocations: 67.91 kB / 388.4 MB, free: 1.586 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.056e-05/0.1533, 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.0002539/0.1535, allocations: 174 kB / 388.6 MB, free: 1.391 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.029e-05/0.1536, allocations: 35.56 kB / 388.6 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001616/0.1538, allocations: 43.31 kB / 388.6 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.687e-06/0.1538, allocations: 4 kB / 388.6 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.384e-05/0.1538, allocations: 3.984 kB / 388.6 MB, free: 1.301 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.1539, allocations: 4 kB / 388.6 MB, free: 1.297 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002923/0.1568, allocations: 1.366 MB / 390 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.381e-06/0.1568, allocations: 0 / 390 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002818/0.1571, allocations: 63.84 kB / 390.1 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007952/0.1579, allocations: 473.4 kB / 390.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.991e-05/0.158, allocations: 19.98 kB / 390.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001222/0.1592, allocations: 1.331 MB / 391.9 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.1592, allocations: 3.969 kB / 391.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001756/0.161, allocations: 0.9443 MB / 392.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002102/0.1612, allocations: 152.7 kB / 393 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.721e-05/0.1613, allocations: 23.94 kB / 393 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000297/0.1616, allocations: 31.95 kB / 393 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002123/0.1618, allocations: 87.86 kB / 393.1 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.417e-05/0.1619, allocations: 23.97 kB / 393.1 MB, free: 12.6 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001655/0.162, allocations: 168.5 kB / 393.3 MB, free: 12.43 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.162, allocations: 0 / 393.3 MB, free: 12.43 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004976/0.1625, allocations: 104 kB / 393.4 MB, free: 12.33 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.0002722/0.1628, allocations: 139.2 kB / 393.5 MB, free: 12.19 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001145/0.164, allocations: 0.5061 MB / 394.1 MB, free: 11.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.164, allocations: 0 / 394.1 MB, free: 11.68 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006294/0.1646, allocations: 296 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.0005284/0.1652, allocations: 61.36 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.00244/0.1676, allocations: 0.973 MB / 395.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004162/0.1681, allocations: 0.7836 MB / 396.2 MB, free: 9.508 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001457/0.1682, allocations: 34.97 kB / 396.2 MB, free: 9.477 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.379e-05/0.1683, allocations: 31.42 kB / 396.2 MB, free: 9.449 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1683, allocations: 0 / 396.2 MB, free: 9.449 MB / 334.1 MB Notification: Performance of Templates: time 0.01515/0.1835, allocations: 9.107 MB / 405.3 MB, free: 332 kB / 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)