Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLines.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Electrical.DC.Lines.Examples.DCLines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLines") translateModel(BuildingSystems.Electrical.DC.Lines.Examples.DCLines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009497/0.0009499, allocations: 86.33 kB / 15.06 MB, free: 1.09 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.001213/0.001213, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 223.3 MB / 240 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001682/0.001683, allocations: 274.1 kB / 291.4 MB, free: 1.949 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9912/0.9912, allocations: 169.5 MB / 0.5 GB, free: 14.21 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004372/0.0004372, allocations: 14.06 kB / 0.598 GB, free: 28.43 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1659/0.1663, allocations: 88.55 MB / 0.6845 GB, free: 15.47 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLines): time 0.02152/0.1879, allocations: 20.39 MB / 0.7044 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02289/0.2108, allocations: 16.41 MB / 0.7204 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003352/0.2142, allocations: 103.4 kB / 0.7205 GB, free: 10.49 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002527/0.2168, allocations: 0.558 MB / 0.7211 GB, free: 9.926 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.01039/0.2272, allocations: 2.862 MB / 0.7239 GB, free: 7.062 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003499/0.2307, allocations: 0.95 MB / 0.7248 GB, free: 6.117 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.01032/0.241, allocations: 5.772 MB / 0.7304 GB, free: 336 kB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004877/0.2459, allocations: 2.021 MB / 0.7324 GB, free: 14.24 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004515/0.2505, allocations: 1.867 MB / 0.7342 GB, free: 12.37 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004681/0.2552, allocations: 2.171 MB / 0.7363 GB, free: 10.19 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0009281/0.2562, allocations: 168 kB / 0.7365 GB, free: 10.02 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002002/0.2582, allocations: 0.4994 MB / 0.737 GB, free: 9.523 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.000981/0.2592, allocations: 0.9147 MB / 0.7379 GB, free: 8.605 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001222/0.2604, allocations: 0.6873 MB / 0.7386 GB, free: 7.91 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.004398/0.2648, allocations: 3.826 MB / 0.7423 GB, free: 4.074 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 8.146e-06/0.2648, allocations: 0 / 0.7423 GB, free: 4.074 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.683e-06/0.2648, allocations: 3.938 kB / 0.7423 GB, free: 4.07 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0001205/0.265, allocations: 0 / 0.7423 GB, free: 4.07 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 635 * Number of variables: 635 Notification: Performance of Generate backend data structure: time 0.007745/0.2727, allocations: 3.873 MB / 0.7461 GB, free: 88 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.2728, allocations: 8.031 kB / 0.7461 GB, free: 80 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0148/0.2876, allocations: 3.362 MB / 0.7494 GB, free: 12.71 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004465/0.2921, allocations: 1.96 MB / 0.7513 GB, free: 10.68 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000151/0.2923, allocations: 180.7 kB / 0.7515 GB, free: 10.5 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004813/0.2928, allocations: 232 kB / 0.7517 GB, free: 10.27 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01112/0.3039, allocations: 4.724 MB / 0.7563 GB, free: 5.402 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.285e-05/0.304, allocations: 0 / 0.7563 GB, free: 5.402 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003465/0.3043, allocations: 108 kB / 0.7564 GB, free: 5.297 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002104/0.3045, allocations: 168.8 kB / 0.7566 GB, free: 5.129 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01307/0.3176, allocations: 5.23 MB / 0.7617 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01949/0.3371, allocations: 14.1 MB / 0.7754 GB, free: 0.6133 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3231/0.6603, allocations: 3.844 MB / 0.7792 GB, free: 86.09 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003399/0.6637, allocations: 1.508 MB / 0.7807 GB, free: 85.68 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001198/0.6638, allocations: 26.09 kB / 0.7807 GB, free: 85.68 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003742/0.6676, allocations: 1.829 MB / 0.7825 GB, free: 85.09 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=163): time 3.947e-06/0.6676, allocations: 0 / 0.7825 GB, free: 85.09 MB / 0.5606 GB Notification: Performance of matching and sorting (n=250): time 0.1087/0.7763, allocations: 33.39 MB / 0.8151 GB, free: 73.43 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001409/0.7765, allocations: 0.4935 MB / 0.8156 GB, free: 72.83 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002505/0.779, allocations: 2.277 MB / 0.8178 GB, free: 70.54 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000336/0.7793, allocations: 73.7 kB / 0.8179 GB, free: 70.46 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007729/0.7801, allocations: 1.43 MB / 0.8193 GB, free: 69.02 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005813/0.7807, allocations: 0.8243 MB / 0.8201 GB, free: 68.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001581/0.7809, allocations: 44 kB / 0.8201 GB, free: 68.16 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.546e-05/0.781, allocations: 396.8 kB / 0.8205 GB, free: 67.77 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00366/0.7846, allocations: 1.921 MB / 0.8224 GB, free: 65.84 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003788/0.7884, allocations: 2.224 MB / 0.8245 GB, free: 63.54 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00376/0.7922, allocations: 2.128 MB / 0.8266 GB, free: 61.36 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/0.7922, allocations: 0 / 0.8266 GB, free: 61.36 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01205/0.8043, allocations: 6.17 MB / 0.8326 GB, free: 55.09 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001461/0.8045, allocations: 407.1 kB / 0.833 GB, free: 54.58 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.8045, allocations: 4 kB / 0.833 GB, free: 54.58 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005302/0.8098, allocations: 1.852 MB / 0.8348 GB, free: 52.73 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002519/0.8123, allocations: 0.5891 MB / 0.8354 GB, free: 52.14 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01755/0.8299, allocations: 14.15 MB / 0.8492 GB, free: 37.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003621/0.8336, allocations: 411.6 kB / 0.8496 GB, free: 37.39 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002765/0.8339, allocations: 87.97 kB / 0.8497 GB, free: 37.31 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.869e-06/0.8339, allocations: 7.953 kB / 0.8497 GB, free: 37.3 MB / 0.5606 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01125/0.8451, allocations: 5.755 MB / 0.8553 GB, free: 31.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.186e-05/0.8452, allocations: 8 kB / 0.8553 GB, free: 31.45 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0041/0.8493, allocations: 1.818 MB / 0.8571 GB, free: 29.63 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002579/0.8519, allocations: 0.6046 MB / 0.8577 GB, free: 29.03 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01591/0.8678, allocations: 13.44 MB / 0.8708 GB, free: 15.33 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003364/0.8712, allocations: 409.2 kB / 0.8712 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002434/0.8715, allocations: 83.98 kB / 0.8713 GB, free: 14.85 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.varLoad1.T_start,varLoad1.T_start,$PRE.varLoad1.count,varLoad1.count,$PRE.varLoad2.T_start,varLoad2.T_start,$PRE.varLoad2.count,varLoad2.count,$PRE.varLoad3.T_start,varLoad3.T_start,$PRE.varLoad3.count,varLoad3.count,$PRE.varLoad4.T_start,varLoad4.T_start,$PRE.varLoad4.count,varLoad4.count,$PRE.varLoad5.T_start,varLoad5.T_start,$PRE.varLoad5.count,varLoad5.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 5 * 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: 1 {(10,45.0%) 52} * Non-linear torn systems: 1 {10 52} Notification: Performance of prepare postOptimizeDAE: time 0.001291/0.8728, allocations: 0.7852 MB / 0.8721 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004425/0.8733, allocations: 336 kB / 0.8724 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006664/0.8739, allocations: 392.1 kB / 0.8728 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.225e-05/0.8739, allocations: 24 kB / 0.8728 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.705e-05/0.874, allocations: 8 kB / 0.8728 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.718e-05/0.874, allocations: 17.59 kB / 0.8728 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002977/0.877, allocations: 3.167 MB / 0.8759 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.407e-06/0.877, allocations: 7.953 kB / 0.8759 GB, free: 10.13 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002138/0.8792, allocations: 0.5228 MB / 0.8764 GB, free: 9.605 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004747/0.8839, allocations: 1.712 MB / 0.8781 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002187/0.8842, allocations: 51.97 kB / 0.8781 GB, free: 7.84 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0183/0.9025, allocations: 13.94 MB / 0.8917 GB, free: 9.637 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.9025, allocations: 0 / 0.8917 GB, free: 9.637 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01412/0.9166, allocations: 5.777 MB / 0.8974 GB, free: 3.824 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001809/0.9185, allocations: 0.6687 MB / 0.898 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004773/0.919, allocations: 44 kB / 0.8981 GB, free: 3.09 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002525/0.9215, allocations: 403.5 kB / 0.8985 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000814/0.9223, allocations: 310.6 kB / 0.8988 GB, free: 2.391 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000176/0.9225, allocations: 67.97 kB / 0.8988 GB, free: 2.324 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002029/0.9245, allocations: 1.517 MB / 0.9003 GB, free: 0.8086 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9246, allocations: 0 / 0.9003 GB, free: 0.8086 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003735/0.9283, allocations: 1.621 MB / 0.9019 GB, free: 15.18 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varLoad1.T_start,varLoad1.count,varLoad2.T_start,varLoad2.count,varLoad3.T_start,varLoad3.count,varLoad4.T_start,varLoad4.count,varLoad5.T_start,varLoad5.count) * Number of discrete states: 5 (varLoad1.count,varLoad2.count,varLoad3.count,varLoad4.count,varLoad5.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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: 1 {(10,60.0%) 52} * Non-linear torn systems: 1 {10 52} Notification: Performance of Backend phase and start with SimCode phase: time 0.000308/0.9286, allocations: 165.8 kB / 0.902 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02166/0.9503, allocations: 10.08 MB / 0.9119 GB, free: 4.754 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 8.276e-06/0.9503, allocations: 4 kB / 0.9119 GB, free: 4.75 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.007877/0.9582, allocations: 3.495 MB / 0.9153 GB, free: 1.23 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00471/0.963, allocations: 1.047 MB / 0.9163 GB, free: 216 kB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01371/0.9767, allocations: 7.57 MB / 0.9237 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002035/0.9788, allocations: 2.305 MB / 0.926 GB, free: 6.281 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.00349/0.9823, allocations: 0.6387 MB / 0.9266 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006714/0.983, allocations: 179.4 kB / 0.9268 GB, free: 5.461 MB / 0.6075 GB Notification: Performance of SimCode: time 9.92e-07/0.983, allocations: 0 / 0.9268 GB, free: 5.461 MB / 0.6075 GB Notification: Performance of Templates: time 0.1104/1.093, allocations: 74.13 MB / 0.9992 GB, free: 12.27 MB / 0.6856 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLines.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLines.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLines -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1)