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/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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/Complex 3.2.1+maint.om/package.mo): time 0.001125/0.001125, allocations: 170.5 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.204/1.204, allocations: 170.6 MB / 183.8 MB, free: 11.49 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001783/0.001783, allocations: 103.5 kB / 223.2 MB, free: 4.113 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.452e-05/3.455e-05, allocations: 4 kB / 268.9 MB, free: 20.94 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1172, allocations: 38.77 MB / 307.6 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3574/0.4746, allocations: 67.84 MB / 375.5 MB, free: 8.398 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001829/0.4748, allocations: 74.27 kB / 375.5 MB, free: 8.359 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01476/0.4896, allocations: 5.378 MB / 380.9 MB, free: 3.645 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.4896, allocations: 0 / 380.9 MB, free: 3.645 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.54e-05/0.4896, allocations: 8 kB / 380.9 MB, free: 3.637 MB / 266.7 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.00101/0.4907, allocations: 0.5952 MB / 381.5 MB, free: 3.012 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.4907, allocations: 12.03 kB / 381.5 MB, free: 3 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.941e-05/0.4908, allocations: 35.56 kB / 381.6 MB, free: 2.965 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000304/0.4911, allocations: 258.5 kB / 381.8 MB, free: 2.695 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.163e-05/0.4912, allocations: 28.31 kB / 381.8 MB, free: 2.68 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.511e-05/0.4912, allocations: 31.42 kB / 381.9 MB, free: 2.656 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000573/0.4918, allocations: 363.8 kB / 382.2 MB, free: 2.398 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/0.4918, allocations: 15.7 kB / 382.2 MB, free: 2.387 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.816e-05/0.4919, allocations: 7.688 kB / 382.3 MB, free: 2.387 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.4919, allocations: 8 kB / 382.3 MB, free: 2.379 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005763/0.4925, allocations: 381.2 kB / 382.6 MB, free: 2.117 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001916/0.4944, allocations: 1.137 MB / 383.8 MB, free: 1.113 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004082/0.4948, allocations: 285.4 kB / 384.1 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002656/0.4951, allocations: 183.3 kB / 384.2 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.807e-05/0.4952, allocations: 4 kB / 384.2 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.858e-05/0.4952, allocations: 42.67 kB / 384.3 MB, free: 0.75 MB / 266.7 MB Notification: Performance of pre-optimization done (n=39): time 4.438e-06/0.4952, allocations: 4 kB / 384.3 MB, free: 0.7461 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.002859/0.4981, allocations: 1.595 MB / 385.9 MB, free: 15.34 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.146e-05/0.4981, allocations: 59.41 kB / 385.9 MB, free: 15.27 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002016/0.4983, allocations: 211.1 kB / 386.1 MB, free: 15.09 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.703e-05/0.4984, allocations: 36.52 kB / 386.2 MB, free: 15.05 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.964e-05/0.4985, allocations: 150 kB / 386.3 MB, free: 14.92 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.4986, allocations: 153.1 kB / 386.5 MB, free: 14.79 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.816e-05/0.4986, allocations: 13.86 kB / 386.5 MB, free: 14.79 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.4987, allocations: 341.1 kB / 386.8 MB, free: 14.46 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002956/0.499, allocations: 198.2 kB / 387 MB, free: 14.34 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003483/0.4994, allocations: 276.3 kB / 387.3 MB, free: 14.12 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002565/0.4997, allocations: 158.5 kB / 387.4 MB, free: 14.01 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.4997, allocations: 0 / 387.4 MB, free: 14.01 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001415/0.5011, allocations: 0.781 MB / 388.2 MB, free: 13.39 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.5011, allocations: 8 kB / 388.2 MB, free: 13.38 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.5011, allocations: 0 / 388.2 MB, free: 13.38 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008166/0.502, allocations: 0.506 MB / 388.7 MB, free: 12.97 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002958/0.5023, allocations: 75.91 kB / 388.8 MB, free: 12.89 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001243/0.5035, allocations: 1.377 MB / 390.2 MB, free: 11.59 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004549/0.504, allocations: 93.28 kB / 390.3 MB, free: 11.51 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.702e-05/0.5041, allocations: 27.5 kB / 390.3 MB, free: 11.49 MB / 282.7 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 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001685/0.5043, allocations: 135.8 kB / 390.4 MB, free: 11.36 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.57e-05/0.5043, allocations: 39.2 kB / 390.5 MB, free: 11.33 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001291/0.5045, allocations: 40.16 kB / 390.5 MB, free: 11.32 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.5045, allocations: 4 kB / 390.5 MB, free: 11.31 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.255e-05/0.5045, allocations: 8.047 kB / 390.5 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.5045, allocations: 0 / 390.5 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002762/0.5073, allocations: 1.455 MB / 392 MB, free: 10.04 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.5073, allocations: 160 / 392 MB, free: 10.04 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002764/0.5076, allocations: 67.41 kB / 392 MB, free: 9.98 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007342/0.5083, allocations: 485 kB / 392.5 MB, free: 9.582 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.497e-05/0.5084, allocations: 19.36 kB / 392.5 MB, free: 9.57 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001044/0.5094, allocations: 1.332 MB / 393.9 MB, free: 8.289 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/0.5095, allocations: 3.938 kB / 393.9 MB, free: 8.285 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001635/0.5111, allocations: 1.077 MB / 394.9 MB, free: 7.375 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001892/0.5113, allocations: 149.2 kB / 395.1 MB, free: 7.227 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.947e-05/0.5114, allocations: 22 kB / 395.1 MB, free: 7.215 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002961/0.5117, allocations: 55.08 kB / 395.2 MB, free: 7.168 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001874/0.5119, allocations: 99.55 kB / 395.3 MB, free: 7.078 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.914e-05/0.512, allocations: 34.86 kB / 395.3 MB, free: 7.051 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000147/0.5121, allocations: 160.1 kB / 395.5 MB, free: 6.914 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5121, allocations: 0 / 395.5 MB, free: 6.914 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004476/0.5126, allocations: 105.8 kB / 395.6 MB, free: 6.824 MB / 282.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002347/0.5128, allocations: 129.7 kB / 395.7 MB, free: 6.699 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008193/0.5136, allocations: 490.7 kB / 396.2 MB, free: 6.367 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.5137, allocations: 0 / 396.2 MB, free: 6.367 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004796/0.5141, allocations: 266.9 kB / 396.4 MB, free: 6.188 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003536/0.5145, allocations: 42.72 kB / 396.5 MB, free: 6.16 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001967/0.5165, allocations: 0.8616 MB / 397.3 MB, free: 5.336 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003326/0.5168, allocations: 0.7919 MB / 398.1 MB, free: 4.52 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001499/0.517, allocations: 34.95 kB / 398.2 MB, free: 4.488 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.757e-05/0.5171, allocations: 30.67 kB / 398.2 MB, free: 4.461 MB / 282.7 MB Notification: Performance of SimCode: time 5.31e-07/0.5171, allocations: 4 kB / 398.2 MB, free: 4.457 MB / 282.7 MB Notification: Performance of Templates: time 0.01152/0.5286, allocations: 7.085 MB / 405.3 MB, free: 13.39 MB / 298.7 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)