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.000809/0.0008091, allocations: 91.69 kB / 16.65 MB, free: 6.598 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.0008692/0.0008694, allocations: 181.5 kB / 17.56 MB, free: 6.203 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.634/1.634, allocations: 205.4 MB / 223.7 MB, free: 13.08 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.0007766/0.0007765, allocations: 12 kB / 280.7 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1094, allocations: 47.58 MB / 328.3 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002749/0.1122, allocations: 2.111 MB / 330.4 MB, free: 1.629 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009297/0.1132, allocations: 0.5116 MB / 330.9 MB, free: 1.113 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.191e-05/0.1133, allocations: 0 / 330.9 MB, free: 1.113 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001739/0.1134, allocations: 39.7 kB / 331 MB, free: 1.074 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000139/0.1136, allocations: 71.47 kB / 331 MB, free: 1.004 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004073/0.114, allocations: 167.7 kB / 331.2 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004099/0.1144, allocations: 463.1 kB / 331.7 MB, free: 396 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.1146, allocations: 52.73 kB / 331.7 MB, free: 348 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002018/0.1148, allocations: 191.3 kB / 331.9 MB, free: 156 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002593/0.1151, allocations: 219.2 kB / 332.1 MB, free: 15.94 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.558e-05/0.1151, allocations: 20 kB / 332.1 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000129/0.1152, allocations: 71.89 kB / 332.2 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.4e-05/0.1153, allocations: 71.72 kB / 332.3 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000163/0.1155, allocations: 184.9 kB / 332.5 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004216/0.1159, allocations: 434.7 kB / 332.9 MB, free: 15.16 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.116, allocations: 0 / 332.9 MB, free: 15.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.116, allocations: 8 kB / 332.9 MB, free: 15.16 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.116, allocations: 0 / 332.9 MB, free: 15.16 MB / 286.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.00114/0.1171, allocations: 0.6159 MB / 333.5 MB, free: 14.49 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.1172, allocations: 12.03 kB / 333.5 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.504e-05/0.1173, allocations: 36.56 kB / 333.5 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003275/0.1176, allocations: 288.6 kB / 333.8 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.148e-05/0.1176, allocations: 20.94 kB / 333.9 MB, free: 14.1 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.989e-05/0.1177, allocations: 28.28 kB / 333.9 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006954/0.1184, allocations: 381.2 kB / 334.3 MB, free: 13.69 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.1185, allocations: 4.125 kB / 334.3 MB, free: 13.69 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.072e-05/0.1185, allocations: 15.94 kB / 334.3 MB, free: 13.67 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.1185, allocations: 12 kB / 334.3 MB, free: 13.66 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007185/0.1192, allocations: 406 kB / 334.7 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001785/0.121, allocations: 1.123 MB / 335.8 MB, free: 12.06 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004942/0.1215, allocations: 311.5 kB / 336.1 MB, free: 11.75 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003524/0.1219, allocations: 197.8 kB / 336.3 MB, free: 11.55 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.243e-05/0.122, allocations: 4 kB / 336.3 MB, free: 11.55 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/0.122, allocations: 42.48 kB / 336.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 1.623e-06/0.122, allocations: 3.938 kB / 336.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004357/0.1264, allocations: 2.115 MB / 338.5 MB, free: 9.246 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.185e-05/0.1264, allocations: 55.41 kB / 338.5 MB, free: 9.18 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002152/0.1266, allocations: 244.9 kB / 338.8 MB, free: 8.93 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.914e-05/0.1267, allocations: 41.7 kB / 338.8 MB, free: 8.883 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.886e-05/0.1268, allocations: 148.8 kB / 338.9 MB, free: 8.73 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001258/0.1269, allocations: 161.9 kB / 339.1 MB, free: 8.57 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.77e-05/0.127, allocations: 41.7 kB / 339.1 MB, free: 8.523 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.1271, allocations: 346.7 kB / 339.5 MB, free: 8.176 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003753/0.1275, allocations: 205 kB / 339.7 MB, free: 7.977 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004287/0.1279, allocations: 296.8 kB / 340 MB, free: 7.66 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005964/0.1285, allocations: 377.7 kB / 340.3 MB, free: 7.266 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1285, allocations: 0 / 340.3 MB, free: 7.266 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001417/0.13, allocations: 0.6964 MB / 341 MB, free: 6.555 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.13, allocations: 8 kB / 341 MB, free: 6.547 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.13, allocations: 0 / 341 MB, free: 6.547 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008055/0.1308, allocations: 493.5 kB / 341.5 MB, free: 6.059 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002764/0.1311, allocations: 75.84 kB / 341.6 MB, free: 5.984 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001178/0.1323, allocations: 1.39 MB / 343 MB, free: 4.543 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004548/0.1328, allocations: 96.03 kB / 343.1 MB, free: 4.449 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.879e-05/0.1328, allocations: 16 kB / 343.1 MB, free: 4.434 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 (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.0002015/0.133, allocations: 169.4 kB / 343.3 MB, free: 4.258 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.043e-05/0.1331, allocations: 35.56 kB / 343.3 MB, free: 4.223 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001155/0.1332, allocations: 47.3 kB / 343.3 MB, free: 4.18 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.503e-06/0.1332, allocations: 4 kB / 343.3 MB, free: 4.176 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/0.1332, allocations: 4 kB / 343.4 MB, free: 4.172 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.1333, allocations: 0 / 343.4 MB, free: 4.172 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002715/0.136, allocations: 1.403 MB / 344.8 MB, free: 2.691 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.136, allocations: 0 / 344.8 MB, free: 2.691 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002611/0.1363, allocations: 59.91 kB / 344.8 MB, free: 2.633 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007087/0.137, allocations: 473.4 kB / 345.3 MB, free: 2.164 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.024e-05/0.137, allocations: 20.05 kB / 345.3 MB, free: 2.145 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001189/0.1382, allocations: 1.339 MB / 346.6 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.329e-06/0.1382, allocations: 4.031 kB / 346.6 MB, free: 0.75 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001789/0.14, allocations: 0.951 MB / 347.6 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001895/0.1402, allocations: 152.7 kB / 347.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.108e-05/0.1403, allocations: 23.92 kB / 347.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003073/0.1407, allocations: 47.97 kB / 347.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001838/0.1408, allocations: 83.84 kB / 347.9 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.031e-05/0.1409, allocations: 23.97 kB / 347.9 MB, free: 15.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001692/0.1411, allocations: 168.5 kB / 348.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.3e-07/0.1411, allocations: 3.938 kB / 348.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000464/0.1415, allocations: 104 kB / 348.2 MB, free: 15.14 MB / 302.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.0002562/0.1418, allocations: 139.2 kB / 348.3 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001013/0.1428, allocations: 0.5099 MB / 348.8 MB, free: 14.49 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.237e-06/0.1428, allocations: 0 / 348.8 MB, free: 14.49 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005828/0.1434, allocations: 300.3 kB / 349.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005234/0.144, allocations: 52.28 kB / 349.2 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002569/0.1465, allocations: 1.206 MB / 350.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004127/0.147, allocations: 0.7842 MB / 351.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001354/0.1471, allocations: 30.97 kB / 351.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.517e-05/0.1472, allocations: 31.42 kB / 351.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1472, allocations: 0 / 351.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of Templates: time 0.01269/0.1599, allocations: 8.11 MB / 359.3 MB, free: 3.914 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake.makefile (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)