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.001568/0.001568, allocations: 103.5 kB / 16.62 MB, free: 6.812 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.001393/0.001393, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.508/1.508, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.001166/0.001166, allocations: 43.94 kB / 279.5 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.104, allocations: 46.63 MB / 326.1 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003643/0.1077, allocations: 2.469 MB / 328.6 MB, free: 2.305 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001002/0.1087, allocations: 0.4998 MB / 329.1 MB, free: 1.801 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.1088, allocations: 0 / 329.1 MB, free: 1.801 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002178/0.1091, allocations: 39.7 kB / 329.1 MB, free: 1.762 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001368/0.1092, allocations: 71.45 kB / 329.2 MB, free: 1.691 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004111/0.1096, allocations: 167.8 kB / 329.4 MB, free: 1.527 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004105/0.11, allocations: 491.1 kB / 329.9 MB, free: 1.047 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001545/0.1102, allocations: 76.64 kB / 329.9 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002017/0.1104, allocations: 215.3 kB / 330.1 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002546/0.1107, allocations: 231.2 kB / 330.4 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.513e-05/0.1107, allocations: 40 kB / 330.4 MB, free: 0.5 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001411/0.1109, allocations: 87.89 kB / 330.5 MB, free: 424 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001101/0.111, allocations: 103.7 kB / 330.6 MB, free: 320 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001503/0.1112, allocations: 179.2 kB / 330.8 MB, free: 140 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004237/0.1116, allocations: 458.8 kB / 331.2 MB, free: 15.69 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1116, allocations: 0 / 331.2 MB, free: 15.69 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1116, allocations: 0 / 331.2 MB, free: 15.69 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.844e-06/0.1116, allocations: 4 kB / 331.2 MB, free: 15.68 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.001241/0.1129, allocations: 0.6588 MB / 331.9 MB, free: 14.97 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.1129, allocations: 16.03 kB / 331.9 MB, free: 14.96 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.88e-05/0.113, allocations: 40.41 kB / 331.9 MB, free: 14.92 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003209/0.1134, allocations: 284.6 kB / 332.2 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.211e-05/0.1134, allocations: 20.94 kB / 332.2 MB, free: 14.58 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.037e-05/0.1135, allocations: 32.38 kB / 332.3 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006704/0.1142, allocations: 377.2 kB / 332.6 MB, free: 14.17 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/0.1142, allocations: 8.078 kB / 332.6 MB, free: 14.16 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.139e-05/0.1142, allocations: 15.94 kB / 332.7 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.1142, allocations: 8 kB / 332.7 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007001/0.115, allocations: 405.9 kB / 333.1 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001812/0.1168, allocations: 1.096 MB / 334.2 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005242/0.1173, allocations: 307.4 kB / 334.5 MB, free: 12.26 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003464/0.1177, allocations: 201.4 kB / 334.6 MB, free: 12.06 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.326e-05/0.1177, allocations: 7.938 kB / 334.7 MB, free: 12.05 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.64e-05/0.1178, allocations: 38.56 kB / 334.7 MB, free: 12.01 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 1.433e-06/0.1178, allocations: 0 / 334.7 MB, free: 12.01 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004533/0.1223, allocations: 2.033 MB / 336.7 MB, free: 9.84 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.005e-05/0.1224, allocations: 55.41 kB / 336.8 MB, free: 9.773 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002429/0.1226, allocations: 233 kB / 337 MB, free: 9.535 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.82e-05/0.1227, allocations: 37.7 kB / 337 MB, free: 9.492 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.1228, allocations: 156.7 kB / 337.2 MB, free: 9.332 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001256/0.1229, allocations: 146 kB / 337.3 MB, free: 9.188 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001559/0.1231, allocations: 98.14 kB / 337.4 MB, free: 9.086 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.1233, allocations: 338.8 kB / 337.8 MB, free: 8.746 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004186/0.1237, allocations: 217 kB / 338 MB, free: 8.535 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004187/0.1241, allocations: 280.8 kB / 338.3 MB, free: 8.234 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006372/0.1248, allocations: 381.7 kB / 338.6 MB, free: 7.836 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1248, allocations: 0 / 338.6 MB, free: 7.836 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001397/0.1262, allocations: 0.6924 MB / 339.3 MB, free: 7.129 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.1262, allocations: 8 kB / 339.3 MB, free: 7.121 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.637e-06/0.1262, allocations: 0 / 339.3 MB, free: 7.121 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008785/0.1271, allocations: 0.4897 MB / 339.8 MB, free: 6.625 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002864/0.1274, allocations: 71.91 kB / 339.9 MB, free: 6.555 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001497/0.1289, allocations: 1.397 MB / 341.3 MB, free: 5.105 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004157/0.1293, allocations: 67.97 kB / 341.3 MB, free: 5.039 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.048e-05/0.1294, allocations: 24 kB / 341.4 MB, free: 5.016 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.0002463/0.1297, allocations: 161.4 kB / 341.5 MB, free: 4.848 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.562e-05/0.1297, allocations: 35.55 kB / 341.6 MB, free: 4.812 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001207/0.1299, allocations: 47.38 kB / 341.6 MB, free: 4.77 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.1299, allocations: 8 kB / 341.6 MB, free: 4.762 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.856e-06/0.1299, allocations: 3.938 kB / 341.6 MB, free: 4.758 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.1299, allocations: 3.984 kB / 341.6 MB, free: 4.754 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002819/0.1327, allocations: 1.345 MB / 343 MB, free: 3.332 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.1328, allocations: 3.938 kB / 343 MB, free: 3.328 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002724/0.133, allocations: 59.97 kB / 343 MB, free: 3.27 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006883/0.1337, allocations: 465.4 kB / 343.5 MB, free: 2.809 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.445e-05/0.1338, allocations: 23.97 kB / 343.5 MB, free: 2.785 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001182/0.135, allocations: 1.343 MB / 344.9 MB, free: 1.391 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.135, allocations: 0 / 344.9 MB, free: 1.391 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001851/0.1369, allocations: 0.9433 MB / 345.8 MB, free: 420 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002065/0.1371, allocations: 152.7 kB / 345.9 MB, free: 248 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.75e-05/0.1372, allocations: 27.94 kB / 346 MB, free: 220 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002862/0.1375, allocations: 31.95 kB / 346 MB, free: 188 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002091/0.1377, allocations: 83.86 kB / 346.1 MB, free: 104 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.442e-05/0.1377, allocations: 23.97 kB / 346.1 MB, free: 80 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002203/0.138, allocations: 168.5 kB / 346.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.81e-07/0.138, allocations: 0 / 346.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005121/0.1385, allocations: 108 kB / 346.4 MB, free: 15.8 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.0002723/0.1388, allocations: 135.2 kB / 346.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001244/0.14, allocations: 0.5293 MB / 347 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.14, allocations: 320 / 347 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006953/0.1407, allocations: 296 kB / 347.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000497/0.1413, allocations: 56.75 kB / 347.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002203/0.1435, allocations: 1.113 MB / 348.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003208/0.1438, allocations: 0.7761 MB / 349.3 MB, free: 12.83 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001365/0.1439, allocations: 38.95 kB / 349.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.353e-05/0.144, allocations: 27.44 kB / 349.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.144, allocations: 0 / 349.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of Templates: time 0.01353/0.1576, allocations: 8.653 MB / 358 MB, free: 4.109 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)