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.00167/0.00167, allocations: 111.8 kB / 16.41 MB, free: 6.465 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.001755/0.001755, allocations: 189.2 kB / 17.34 MB, free: 5.711 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.41/1.41, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002463/0.002463, allocations: 282.3 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.038/1.038, allocations: 169.3 MB / 0.499 GB, free: 4.398 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002812/0.002812, allocations: 99.84 kB / 0.6822 GB, free: 6.883 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4645/0.4673, allocations: 86.98 MB / 0.7671 GB, free: 3.863 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02727/0.4945, allocations: 22.66 MB / 0.7892 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02679/0.5213, allocations: 17.66 MB / 0.8065 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002912/0.5242, allocations: 115.4 kB / 0.8066 GB, free: 11.28 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.01073/0.535, allocations: 4.191 MB / 0.8107 GB, free: 7.082 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01111/0.5461, allocations: 3.578 MB / 0.8142 GB, free: 3.508 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003995/0.5501, allocations: 1.318 MB / 0.8155 GB, free: 2.195 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.009277/0.5594, allocations: 5.789 MB / 0.8211 GB, free: 12.39 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004432/0.5638, allocations: 2.804 MB / 0.8239 GB, free: 9.512 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004451/0.5682, allocations: 2.48 MB / 0.8263 GB, free: 7.023 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004858/0.5731, allocations: 2.448 MB / 0.8287 GB, free: 4.566 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0008514/0.5739, allocations: 372 kB / 0.829 GB, free: 4.203 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002379/0.5763, allocations: 1.03 MB / 0.83 GB, free: 3.172 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.001449/0.5778, allocations: 1.222 MB / 0.8312 GB, free: 1.945 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.004375/0.5822, allocations: 1.994 MB / 0.8332 GB, free: 15.94 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.007542/0.5897, allocations: 5.205 MB / 0.8383 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.5897, allocations: 4 kB / 0.8383 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.623e-06/0.5897, allocations: 0 / 0.8383 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001461/0.5898, allocations: 4 kB / 0.8383 GB, free: 10.71 MB / 0.6075 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.01125/0.6011, allocations: 4.726 MB / 0.8429 GB, free: 5.867 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.6011, allocations: 12.03 kB / 0.8429 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01731/0.6185, allocations: 3.279 MB / 0.8461 GB, free: 2.57 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005271/0.6237, allocations: 2.246 MB / 0.8483 GB, free: 264 kB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004746/0.6242, allocations: 466.3 kB / 0.8487 GB, free: 15.74 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006347/0.6248, allocations: 243.9 kB / 0.849 GB, free: 15.5 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01213/0.637, allocations: 4.806 MB / 0.8537 GB, free: 10.55 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.655e-05/0.637, allocations: 0 / 0.8537 GB, free: 10.55 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003541/0.6374, allocations: 111.9 kB / 0.8538 GB, free: 10.44 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002095/0.6376, allocations: 172.8 kB / 0.8539 GB, free: 10.27 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01475/0.6523, allocations: 5.194 MB / 0.859 GB, free: 5.059 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.026/0.6783, allocations: 14.42 MB / 0.8731 GB, free: 5.477 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01038/0.6887, allocations: 3.26 MB / 0.8763 GB, free: 2.211 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00392/0.6926, allocations: 1.369 MB / 0.8776 GB, free: 0.8398 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001191/0.6927, allocations: 29.28 kB / 0.8776 GB, free: 0.8086 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004552/0.6973, allocations: 1.795 MB / 0.8794 GB, free: 14.95 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=163): time 3.566e-06/0.6973, allocations: 0 / 0.8794 GB, free: 14.95 MB / 0.6544 GB Notification: Performance of matching and sorting (n=250): time 0.1335/0.8308, allocations: 28.22 MB / 0.9069 GB, free: 2.512 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003207/0.8311, allocations: 0.4928 MB / 0.9074 GB, free: 1.91 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00354/0.8347, allocations: 2.3 MB / 0.9097 GB, free: 15.6 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0004637/0.8351, allocations: 77.69 kB / 0.9097 GB, free: 15.52 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.001448/0.8366, allocations: 1.46 MB / 0.9112 GB, free: 14.04 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.00107/0.8376, allocations: 0.8559 MB / 0.912 GB, free: 13.18 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008896/0.8385, allocations: 420.5 kB / 0.9124 GB, free: 12.76 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001324/0.8387, allocations: 305.1 kB / 0.9127 GB, free: 12.46 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005616/0.8443, allocations: 1.925 MB / 0.9146 GB, free: 10.53 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005996/0.8503, allocations: 2.24 MB / 0.9168 GB, free: 8.207 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01126/0.8615, allocations: 4.154 MB / 0.9208 GB, free: 3.918 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/0.8616, allocations: 4 kB / 0.9208 GB, free: 3.914 MB / 0.6856 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.02033/0.8819, allocations: 6.482 MB / 0.9272 GB, free: 13.34 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001374/0.882, allocations: 144.8 kB / 0.9273 GB, free: 13.17 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.89e-05/0.882, allocations: 8 kB / 0.9273 GB, free: 13.16 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0104/0.8924, allocations: 2.93 MB / 0.9302 GB, free: 10.23 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00306/0.8955, allocations: 487.2 kB / 0.9306 GB, free: 9.754 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04275/0.9382, allocations: 18.86 MB / 0.949 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00442/0.9427, allocations: 323.6 kB / 0.9494 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003423/0.943, allocations: 87.97 kB / 0.9494 GB, free: 6.242 MB / 0.7169 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.001618/0.9446, allocations: 0.7104 MB / 0.9501 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007325/0.9454, allocations: 349.8 kB / 0.9505 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008594/0.9462, allocations: 380.3 kB / 0.9508 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.486e-05/0.9462, allocations: 24 kB / 0.9509 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.436e-05/0.9463, allocations: 11.94 kB / 0.9509 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.061e-05/0.9463, allocations: 11.95 kB / 0.9509 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005073/0.9514, allocations: 3.624 MB / 0.9544 GB, free: 1.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.878e-06/0.9514, allocations: 4 kB / 0.9544 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002595/0.954, allocations: 415.3 kB / 0.9548 GB, free: 0.6641 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01022/0.9642, allocations: 2.872 MB / 0.9576 GB, free: 13.78 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004432/0.9647, allocations: 51.97 kB / 0.9577 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.47/1.435, allocations: 18.62 MB / 0.9759 GB, free: 184.1 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/1.435, allocations: 2.625 kB / 0.9759 GB, free: 184.1 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01778/1.452, allocations: 6.117 MB / 0.9818 GB, free: 183 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001831/1.454, allocations: 0.7121 MB / 0.9825 GB, free: 182.7 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004914/1.455, allocations: 52.19 kB / 0.9826 GB, free: 182.7 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003134/1.458, allocations: 311.8 kB / 0.9829 GB, free: 182.6 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001187/1.459, allocations: 357.2 kB / 0.9832 GB, free: 182.5 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001977/1.459, allocations: 67.41 kB / 0.9833 GB, free: 182.5 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001719/1.461, allocations: 1.531 MB / 0.9848 GB, free: 182 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.11e-07/1.461, allocations: 3.938 kB / 0.9848 GB, free: 181.9 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002726/1.464, allocations: 1.048 MB / 0.9858 GB, free: 181.8 MB / 0.7325 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.0003471/1.464, allocations: 167.2 kB / 0.986 GB, free: 181.7 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.02209/1.486, allocations: 6.313 MB / 0.9921 GB, free: 179.6 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 7.804e-06/1.486, allocations: 3.875 kB / 0.9921 GB, free: 179.6 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.01626/1.502, allocations: 3.935 MB / 0.996 GB, free: 178.3 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004597/1.507, allocations: 1.142 MB / 0.9971 GB, free: 178 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0144/1.521, allocations: 6.787 MB / 1.004 GB, free: 173 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001752/1.523, allocations: 2.227 MB / 1.006 GB, free: 171.3 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.002568/1.526, allocations: 0.5125 MB / 1.006 GB, free: 170.9 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007539/1.527, allocations: 187.4 kB / 1.007 GB, free: 170.7 MB / 0.7325 GB Notification: Performance of SimCode: time 2.335e-06/1.527, allocations: 2.781 kB / 1.007 GB, free: 170.7 MB / 0.7325 GB Notification: Performance of Templates: time 0.1006/1.627, allocations: 76.07 MB / 1.081 GB, free: 95.64 MB / 0.7325 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)