Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.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.DCLinesLinearized,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized") translateModel(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 192.5 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002073/0.002072, allocations: 279.1 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.981/0.981, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00183/0.00183, allocations: 94.47 kB / 0.5952 GB, free: 27.96 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.1548, allocations: 86.99 MB / 0.6802 GB, free: 0.6758 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02416/0.179, allocations: 22.61 MB / 0.7023 GB, free: 10 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0247/0.2038, allocations: 17.63 MB / 0.7195 GB, free: 8.312 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003024/0.2069, allocations: 115.4 kB / 0.7196 GB, free: 8.199 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.009817/0.2167, allocations: 4.171 MB / 0.7237 GB, free: 4.02 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.009308/0.2261, allocations: 3.511 MB / 0.7271 GB, free: 0.5078 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003098/0.2292, allocations: 1.316 MB / 0.7284 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.007602/0.2368, allocations: 5.773 MB / 0.734 GB, free: 9.406 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005787/0.2426, allocations: 3.608 MB / 0.7375 GB, free: 5.723 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004107/0.2467, allocations: 2.398 MB / 0.7399 GB, free: 3.316 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004487/0.2512, allocations: 2.448 MB / 0.7423 GB, free: 0.8594 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.001182/0.2524, allocations: 368 kB / 0.7426 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003154/0.2556, allocations: 1.037 MB / 0.7436 GB, free: 15.46 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.001739/0.2573, allocations: 1.199 MB / 0.7448 GB, free: 14.26 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.003838/0.2612, allocations: 1.994 MB / 0.7468 GB, free: 12.25 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.007216/0.2684, allocations: 5.112 MB / 0.7517 GB, free: 7.125 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.2684, allocations: 0 / 0.7517 GB, free: 7.125 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.853e-06/0.2684, allocations: 4 kB / 0.7518 GB, free: 7.121 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0001709/0.2686, allocations: 0 / 0.7518 GB, free: 7.121 MB / 0.545 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.009594/0.2782, allocations: 4.616 MB / 0.7563 GB, free: 2.391 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.2783, allocations: 8.031 kB / 0.7563 GB, free: 2.383 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01572/0.294, allocations: 3.261 MB / 0.7595 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004196/0.2982, allocations: 2.088 MB / 0.7615 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003764/0.2986, allocations: 466.3 kB / 0.7619 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005039/0.2991, allocations: 235.9 kB / 0.7622 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01022/0.3094, allocations: 4.822 MB / 0.7669 GB, free: 7.238 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.488e-05/0.3094, allocations: 0 / 0.7669 GB, free: 7.238 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003051/0.3097, allocations: 107.9 kB / 0.767 GB, free: 7.133 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001927/0.3099, allocations: 176.8 kB / 0.7671 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.013/0.3229, allocations: 5.194 MB / 0.7722 GB, free: 1.746 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3356/0.6585, allocations: 14.47 MB / 0.7863 GB, free: 79.09 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01034/0.6689, allocations: 3.396 MB / 0.7897 GB, free: 78.06 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003621/0.6726, allocations: 1.467 MB / 0.7911 GB, free: 77.61 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001412/0.6727, allocations: 26.42 kB / 0.7911 GB, free: 77.61 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004351/0.6771, allocations: 1.791 MB / 0.7929 GB, free: 76.99 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=163): time 6.663e-06/0.6771, allocations: 0 / 0.7929 GB, free: 76.99 MB / 0.5606 GB Notification: Performance of matching and sorting (n=250): time 0.1259/0.803, allocations: 28.23 MB / 0.8204 GB, free: 65.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001487/0.8032, allocations: 0.4904 MB / 0.8209 GB, free: 64.53 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003888/0.8071, allocations: 2.3 MB / 0.8232 GB, free: 62.73 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006361/0.8077, allocations: 77.7 kB / 0.8232 GB, free: 62.64 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001194/0.809, allocations: 1.437 MB / 0.8246 GB, free: 61.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009399/0.8099, allocations: 0.8142 MB / 0.8254 GB, free: 60.39 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001187/0.8111, allocations: 412.5 kB / 0.8258 GB, free: 59.98 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.687e-05/0.8112, allocations: 305.1 kB / 0.8261 GB, free: 59.68 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00476/0.8159, allocations: 1.933 MB / 0.828 GB, free: 57.74 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004884/0.8208, allocations: 2.233 MB / 0.8302 GB, free: 55.43 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009259/0.8301, allocations: 4.161 MB / 0.8342 GB, free: 51.13 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/0.8301, allocations: 4 kB / 0.8342 GB, free: 51.12 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01683/0.847, allocations: 6.536 MB / 0.8406 GB, free: 44.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.885e-05/0.8471, allocations: 151.7 kB / 0.8408 GB, free: 44.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.078e-05/0.8471, allocations: 4 kB / 0.8408 GB, free: 44.32 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009319/0.8565, allocations: 2.958 MB / 0.8437 GB, free: 41.36 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002799/0.8593, allocations: 483.2 kB / 0.8441 GB, free: 40.89 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0348/0.8941, allocations: 18.86 MB / 0.8625 GB, free: 21.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004156/0.8983, allocations: 319.6 kB / 0.8628 GB, free: 21.51 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004826/0.8988, allocations: 91.25 kB / 0.8629 GB, free: 21.43 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 (varLoad5.count,$PRE.varLoad5.count,varLoad5.T_start,$PRE.varLoad5.T_start,varLoad4.count,$PRE.varLoad4.count,varLoad4.T_start,$PRE.varLoad4.T_start,varLoad3.count,$PRE.varLoad3.count,varLoad3.T_start,$PRE.varLoad3.T_start,varLoad2.count,$PRE.varLoad2.count,varLoad2.T_start,$PRE.varLoad2.T_start,varLoad1.count,$PRE.varLoad1.count,varLoad1.T_start,$PRE.varLoad1.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 5 * 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): 1 system {(10,52,45.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,64)} Notification: Performance of prepare postOptimizeDAE: time 0.001625/0.9005, allocations: 0.7041 MB / 0.8636 GB, free: 20.71 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007997/0.9013, allocations: 328 kB / 0.8639 GB, free: 20.39 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008507/0.9021, allocations: 392 kB / 0.8643 GB, free: 20 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.55e-05/0.9021, allocations: 24 kB / 0.8643 GB, free: 19.98 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.927e-05/0.9022, allocations: 12 kB / 0.8643 GB, free: 19.97 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.327e-05/0.9022, allocations: 11.95 kB / 0.8644 GB, free: 19.96 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004593/0.9068, allocations: 3.623 MB / 0.8679 GB, free: 16.33 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.707e-05/0.9069, allocations: 0 / 0.8679 GB, free: 16.33 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002331/0.9092, allocations: 423.3 kB / 0.8683 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008844/0.9181, allocations: 2.88 MB / 0.8711 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003522/0.9184, allocations: 55.91 kB / 0.8712 GB, free: 12.97 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03567/0.9541, allocations: 18.63 MB / 0.8894 GB, free: 10.07 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.9542, allocations: 0 / 0.8894 GB, free: 10.07 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01876/0.9729, allocations: 6.17 MB / 0.8954 GB, free: 3.863 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001817/0.9748, allocations: 0.7 MB / 0.8961 GB, free: 3.141 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008946/0.9757, allocations: 51.98 kB / 0.8961 GB, free: 3.09 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003594/0.9793, allocations: 311.6 kB / 0.8964 GB, free: 2.785 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001192/0.9805, allocations: 354.7 kB / 0.8968 GB, free: 2.441 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002392/0.9808, allocations: 67.97 kB / 0.8968 GB, free: 2.375 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00258/0.9834, allocations: 1.532 MB / 0.8983 GB, free: 0.8438 MB / 0.5762 GB Notification: Performance of sort global known variables: time 4.71e-07/0.9834, allocations: 0 / 0.8983 GB, free: 0.8438 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003327/0.9867, allocations: 1.043 MB / 0.8993 GB, free: 15.8 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 (118): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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): 1 system {(10,52,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(10,62)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004508/0.9872, allocations: 174.9 kB / 0.8995 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02683/1.014, allocations: 7.304 MB / 0.9066 GB, free: 8.234 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.733e-06/1.014, allocations: 3.375 kB / 0.9066 GB, free: 8.234 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.01826/1.032, allocations: 4.058 MB / 0.9106 GB, free: 4.156 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005831/1.038, allocations: 1.144 MB / 0.9117 GB, free: 3.094 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01543/1.054, allocations: 6.772 MB / 0.9183 GB, free: 12.3 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002088/1.056, allocations: 2.238 MB / 0.9205 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.002744/1.059, allocations: 0.5099 MB / 0.921 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007045/1.059, allocations: 183.4 kB / 0.9212 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of SimCode: time 1.553e-06/1.059, allocations: 0 / 0.9212 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of Templates: time 0.1259/1.185, allocations: 77.64 MB / 0.997 GB, free: 12.63 MB / 0.6856 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)