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.001903/0.001903, allocations: 110.9 kB / 16.92 MB, free: 5.766 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.002029/0.002029, allocations: 191.5 kB / 17.85 MB, free: 5.172 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.579/1.579, allocations: 205.1 MB / 223.7 MB, free: 12.29 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.001795/0.001795, allocations: 51.92 kB / 280 MB, free: 3.176 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.109, allocations: 46.62 MB / 326.6 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004641/0.1137, allocations: 2.423 MB / 329 MB, free: 2.027 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001463/0.1152, allocations: 0.4998 MB / 329.5 MB, free: 1.523 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001791/0.1154, allocations: 7.938 kB / 329.5 MB, free: 1.516 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003303/0.1158, allocations: 51.52 kB / 329.6 MB, free: 1.465 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001886/0.116, allocations: 87.25 kB / 329.7 MB, free: 1.379 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005639/0.1166, allocations: 195.6 kB / 329.9 MB, free: 1.188 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000475/0.1171, allocations: 491.1 kB / 330.4 MB, free: 0.707 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000183/0.1173, allocations: 72.67 kB / 330.4 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002305/0.1175, allocations: 203.4 kB / 330.6 MB, free: 452 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003077/0.1178, allocations: 243.2 kB / 330.9 MB, free: 208 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.449e-05/0.1179, allocations: 36 kB / 330.9 MB, free: 172 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001703/0.1181, allocations: 79.97 kB / 331 MB, free: 92 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000156/0.1182, allocations: 99.78 kB / 331.1 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001802/0.1184, allocations: 179.1 kB / 331.2 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005288/0.119, allocations: 466.7 kB / 331.7 MB, free: 15.36 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.665e-06/0.119, allocations: 8 kB / 331.7 MB, free: 15.35 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.113e-06/0.119, allocations: 0 / 331.7 MB, free: 15.35 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.242e-05/0.119, allocations: 4 kB / 331.7 MB, free: 15.35 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.001346/0.1204, allocations: 0.6471 MB / 332.4 MB, free: 14.65 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.1204, allocations: 12.03 kB / 332.4 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001049/0.1205, allocations: 40.47 kB / 332.4 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003453/0.1209, allocations: 280.6 kB / 332.7 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.319e-05/0.1209, allocations: 24.94 kB / 332.7 MB, free: 14.26 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.533e-05/0.121, allocations: 28.38 kB / 332.7 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007013/0.1217, allocations: 377.2 kB / 333.1 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.962e-05/0.1217, allocations: 4.094 kB / 333.1 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.343e-05/0.1218, allocations: 15.94 kB / 333.1 MB, free: 13.84 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.1218, allocations: 8 kB / 333.1 MB, free: 13.83 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007546/0.1226, allocations: 406 kB / 333.5 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001934/0.1245, allocations: 1.1 MB / 334.6 MB, free: 12.26 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005155/0.125, allocations: 307.4 kB / 334.9 MB, free: 11.95 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003503/0.1254, allocations: 201.4 kB / 335.1 MB, free: 11.75 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.389e-05/0.1254, allocations: 7.938 kB / 335.1 MB, free: 11.74 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.504e-05/0.1255, allocations: 34.56 kB / 335.2 MB, free: 11.7 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 1.623e-06/0.1255, allocations: 0 / 335.2 MB, free: 11.7 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.0046/0.1301, allocations: 2.029 MB / 337.2 MB, free: 9.535 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.052e-05/0.1302, allocations: 59.34 kB / 337.3 MB, free: 9.465 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002198/0.1304, allocations: 233 kB / 337.5 MB, free: 9.227 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.909e-05/0.1305, allocations: 41.69 kB / 337.5 MB, free: 9.18 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.1306, allocations: 152.7 kB / 337.7 MB, free: 9.023 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001206/0.1307, allocations: 146 kB / 337.8 MB, free: 8.879 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001654/0.1309, allocations: 102.1 kB / 337.9 MB, free: 8.773 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.131, allocations: 342.8 kB / 338.2 MB, free: 8.43 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004337/0.1314, allocations: 213 kB / 338.5 MB, free: 8.223 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004914/0.1319, allocations: 284.8 kB / 338.7 MB, free: 7.918 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006056/0.1326, allocations: 381.7 kB / 339.1 MB, free: 7.52 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1326, allocations: 0 / 339.1 MB, free: 7.52 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001338/0.1339, allocations: 0.7001 MB / 339.8 MB, free: 6.805 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.1339, allocations: 8 kB / 339.8 MB, free: 6.797 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.134, allocations: 0 / 339.8 MB, free: 6.797 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008661/0.1348, allocations: 493.5 kB / 340.3 MB, free: 6.309 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003019/0.1351, allocations: 67.91 kB / 340.4 MB, free: 6.242 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001182/0.1363, allocations: 1.397 MB / 341.8 MB, free: 4.793 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000452/0.1368, allocations: 75.97 kB / 341.8 MB, free: 4.719 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.87e-05/0.1368, allocations: 16 kB / 341.9 MB, free: 4.703 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.000192/0.137, allocations: 169.3 kB / 342 MB, free: 4.527 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.899e-05/0.1371, allocations: 35.56 kB / 342.1 MB, free: 4.492 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001126/0.1372, allocations: 43.31 kB / 342.1 MB, free: 4.453 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.1373, allocations: 4 kB / 342.1 MB, free: 4.449 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.1373, allocations: 3.984 kB / 342.1 MB, free: 4.445 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.064e-06/0.1373, allocations: 7.984 kB / 342.1 MB, free: 4.438 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002604/0.1399, allocations: 1.349 MB / 343.5 MB, free: 3.012 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.1399, allocations: 4 kB / 343.5 MB, free: 3.008 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002578/0.1402, allocations: 55.91 kB / 343.5 MB, free: 2.953 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000682/0.1409, allocations: 465.5 kB / 344 MB, free: 2.492 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.184e-05/0.1409, allocations: 19.97 kB / 344 MB, free: 2.473 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001146/0.1421, allocations: 1.347 MB / 345.3 MB, free: 1.074 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.1421, allocations: 7.969 kB / 345.3 MB, free: 1.066 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001791/0.1439, allocations: 0.9316 MB / 346.3 MB, free: 100 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002108/0.1441, allocations: 164.6 kB / 346.4 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.119e-05/0.1442, allocations: 19.94 kB / 346.5 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002959/0.1445, allocations: 35.95 kB / 346.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000195/0.1447, allocations: 83.86 kB / 346.6 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.804e-05/0.1448, allocations: 19.97 kB / 346.6 MB, free: 15.76 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001612/0.1449, allocations: 172.5 kB / 346.8 MB, free: 15.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 3e-07/0.1449, allocations: 4 kB / 346.8 MB, free: 15.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004516/0.1454, allocations: 100 kB / 346.9 MB, free: 15.49 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.0002343/0.1456, allocations: 135.2 kB / 347 MB, free: 15.35 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001142/0.1468, allocations: 0.5255 MB / 347.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.1468, allocations: 4.312 kB / 347.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005829/0.1474, allocations: 296 kB / 347.8 MB, free: 14.53 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004915/0.1479, allocations: 57.12 kB / 347.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002233/0.1501, allocations: 0.9691 MB / 348.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003409/0.1505, allocations: 0.78 MB / 349.6 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001356/0.1506, allocations: 34.95 kB / 349.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.588e-05/0.1507, allocations: 31.44 kB / 349.7 MB, free: 12.59 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1507, allocations: 0 / 349.7 MB, free: 12.59 MB / 302.1 MB Notification: Performance of Templates: time 0.01322/0.164, allocations: 8.707 MB / 358.4 MB, free: 3.879 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)