Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.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.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001451/0.001451, allocations: 169.2 kB / 12.72 MB, free: 2.59 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.203/1.203, allocations: 170.6 MB / 183.8 MB, free: 11.43 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.001668/0.001668, allocations: 110.2 kB / 223.2 MB, free: 4.051 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.92e-05/2.943e-05, allocations: 4 kB / 268.9 MB, free: 20.94 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07385/0.07389, allocations: 38.77 MB / 307.6 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.255/0.329, allocations: 67.23 MB / 374.9 MB, free: 8.941 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002574/0.3293, allocations: 64.28 kB / 374.9 MB, free: 8.91 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007738/0.3371, allocations: 2.666 MB / 377.6 MB, free: 6.613 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3371, allocations: 0 / 377.6 MB, free: 6.613 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.41e-05/0.3371, allocations: 8 kB / 377.6 MB, free: 6.605 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0006159/0.3377, allocations: 467.8 kB / 378 MB, free: 6.109 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.3378, allocations: 16.03 kB / 378.1 MB, free: 6.094 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.042e-05/0.3378, allocations: 19.72 kB / 378.1 MB, free: 6.074 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002661/0.3381, allocations: 242.3 kB / 378.3 MB, free: 5.809 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.3381, allocations: 12.22 kB / 378.3 MB, free: 5.801 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.924e-05/0.3382, allocations: 15.77 kB / 378.3 MB, free: 5.789 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002803/0.3385, allocations: 184.6 kB / 378.5 MB, free: 5.633 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.3385, allocations: 0 / 378.5 MB, free: 5.633 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.922e-05/0.3385, allocations: 7.75 kB / 378.5 MB, free: 5.629 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.964e-05/0.3385, allocations: 15.92 kB / 378.5 MB, free: 5.613 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001954/0.3387, allocations: 110.7 kB / 378.7 MB, free: 5.535 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.3398, allocations: 0.7902 MB / 379.4 MB, free: 4.758 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002382/0.34, allocations: 151.2 kB / 379.6 MB, free: 4.629 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.65e-05/0.3401, allocations: 56.14 kB / 379.6 MB, free: 4.582 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.246e-05/0.3402, allocations: 7.875 kB / 379.7 MB, free: 4.578 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001937/0.3404, allocations: 140.3 kB / 379.8 MB, free: 4.445 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.433e-06/0.3404, allocations: 0 / 379.8 MB, free: 4.445 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003163/0.3407, allocations: 163.7 kB / 380 MB, free: 4.309 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.544e-05/0.3408, allocations: 81.11 kB / 380 MB, free: 4.211 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001553/0.3409, allocations: 180.8 kB / 380.2 MB, free: 4.047 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.268e-05/0.341, allocations: 33.64 kB / 380.2 MB, free: 4.012 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.983e-05/0.341, allocations: 147 kB / 380.4 MB, free: 3.887 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.31e-05/0.3411, allocations: 39.28 kB / 380.4 MB, free: 3.855 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.207e-06/0.3411, allocations: 7.5 kB / 380.4 MB, free: 3.852 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.3412, allocations: 334.6 kB / 380.8 MB, free: 3.523 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.837e-05/0.3413, allocations: 55.3 kB / 380.8 MB, free: 3.484 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000116/0.3414, allocations: 113.1 kB / 380.9 MB, free: 3.371 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001068/0.3416, allocations: 75.39 kB / 381 MB, free: 3.316 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3416, allocations: 0 / 381 MB, free: 3.316 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003068/0.3419, allocations: 215.5 kB / 381.2 MB, free: 3.137 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.3419, allocations: 4 kB / 381.2 MB, free: 3.133 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.3419, allocations: 0 / 381.2 MB, free: 3.133 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.3419, allocations: 4.109 kB / 381.2 MB, free: 3.129 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001742/0.3421, allocations: 47.8 kB / 381.3 MB, free: 3.086 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.807e-06/0.3421, allocations: 4 kB / 381.3 MB, free: 3.082 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001588/0.3423, allocations: 39.81 kB / 381.3 MB, free: 3.047 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.275e-05/0.3423, allocations: 8 kB / 381.3 MB, free: 3.039 MB / 266.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: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulsStart,booleanPulse1.pulsStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulsStart,booleanPulse2.pulsStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.585e-05/0.3424, allocations: 132.5 kB / 381.4 MB, free: 2.91 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.68e-05/0.3425, allocations: 19.8 kB / 381.5 MB, free: 2.891 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000328/0.3428, allocations: 189.3 kB / 381.6 MB, free: 2.738 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.3428, allocations: 0 / 381.6 MB, free: 2.738 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3428, allocations: 0 / 381.6 MB, free: 2.738 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3428, allocations: 0 / 381.6 MB, free: 2.738 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002368/0.3431, allocations: 279.9 kB / 381.9 MB, free: 2.453 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.3431, allocations: 0 / 381.9 MB, free: 2.453 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001156/0.3432, allocations: 19.98 kB / 381.9 MB, free: 2.434 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.3432, allocations: 4 kB / 381.9 MB, free: 2.43 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.3432, allocations: 0 / 381.9 MB, free: 2.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.601e-06/0.3432, allocations: 7.922 kB / 382 MB, free: 2.422 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3432, allocations: 0 / 382 MB, free: 2.422 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002777/0.3435, allocations: 218.6 kB / 382.2 MB, free: 2.219 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.359e-05/0.3436, allocations: 104.8 kB / 382.3 MB, free: 2.102 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.511e-05/0.3437, allocations: 7.938 kB / 382.3 MB, free: 2.094 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00014/0.3438, allocations: 23.84 kB / 382.3 MB, free: 2.074 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.682e-05/0.3439, allocations: 15.97 kB / 382.3 MB, free: 2.059 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/0.3439, allocations: 7.875 kB / 382.3 MB, free: 2.055 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001042/0.344, allocations: 148.1 kB / 382.5 MB, free: 1.926 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.344, allocations: 0 / 382.5 MB, free: 1.926 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002302/0.3443, allocations: 35.56 kB / 382.5 MB, free: 1.898 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulsStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulsStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001571/0.3444, allocations: 107.1 kB / 382.6 MB, free: 1.785 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002452/0.3447, allocations: 150.3 kB / 382.8 MB, free: 1.676 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.3447, allocations: 4 kB / 382.8 MB, free: 1.672 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001177/0.3448, allocations: 63.67 kB / 382.8 MB, free: 1.625 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002639/0.3451, allocations: 46.2 kB / 382.9 MB, free: 1.59 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004687/0.3456, allocations: 262.6 kB / 383.1 MB, free: 1.34 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002854/0.3459, allocations: 0.7438 MB / 383.9 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001086/0.346, allocations: 37.5 kB / 383.9 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.504e-05/0.346, allocations: 15.44 kB / 383.9 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of SimCode: time 3.3e-07/0.346, allocations: 0 / 383.9 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of Templates: time 0.0043/0.3503, allocations: 1.827 MB / 385.7 MB, free: 14.71 MB / 282.7 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1)