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.001299/0.0013, allocations: 106.3 kB / 16.41 MB, free: 6.516 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.001531/0.001531, allocations: 192.2 kB / 17.34 MB, free: 5.742 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.362/1.362, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002241/0.002241, allocations: 285.9 kB / 291.5 MB, free: 14.44 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.2 MB / 0.499 GB, free: 4.41 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00178/0.001781, allocations: 107.8 kB / 0.6821 GB, free: 6.91 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4663/0.4681, allocations: 86.98 MB / 0.7671 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02626/0.4944, allocations: 22.62 MB / 0.7892 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02581/0.5203, allocations: 17.63 MB / 0.8064 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003173/0.5235, allocations: 115.4 kB / 0.8065 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.01073/0.5343, allocations: 4.178 MB / 0.8106 GB, free: 7.207 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01065/0.5449, allocations: 3.504 MB / 0.814 GB, free: 3.703 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003615/0.5486, allocations: 1.319 MB / 0.8153 GB, free: 2.387 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.008548/0.5571, allocations: 5.796 MB / 0.8209 GB, free: 12.57 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005846/0.563, allocations: 3.587 MB / 0.8244 GB, free: 8.914 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00446/0.5675, allocations: 2.48 MB / 0.8269 GB, free: 6.426 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004972/0.5725, allocations: 2.444 MB / 0.8293 GB, free: 3.973 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.001465/0.574, allocations: 368 kB / 0.8296 GB, free: 3.613 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003037/0.577, allocations: 1.034 MB / 0.8306 GB, free: 2.578 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.00179/0.5788, allocations: 1.199 MB / 0.8318 GB, free: 1.375 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.003962/0.5828, allocations: 1.998 MB / 0.8337 GB, free: 15.36 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.007836/0.5907, allocations: 5.182 MB / 0.8388 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.5907, allocations: 0 / 0.8388 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.673e-06/0.5907, allocations: 0 / 0.8388 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001966/0.5909, allocations: 0 / 0.8388 GB, free: 10.17 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.01258/0.6035, allocations: 4.605 MB / 0.8433 GB, free: 5.449 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.6035, allocations: 11.97 kB / 0.8433 GB, free: 5.438 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01691/0.6205, allocations: 3.269 MB / 0.8465 GB, free: 2.16 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005144/0.6256, allocations: 2.224 MB / 0.8487 GB, free: 15.87 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004334/0.6261, allocations: 470.3 kB / 0.8491 GB, free: 15.34 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009942/0.6271, allocations: 231.9 kB / 0.8493 GB, free: 15.12 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0129/0.64, allocations: 4.814 MB / 0.854 GB, free: 10.16 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.221e-05/0.6401, allocations: 4 kB / 0.854 GB, free: 10.16 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00056/0.6407, allocations: 108 kB / 0.8542 GB, free: 10.05 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002181/0.6409, allocations: 172.8 kB / 0.8543 GB, free: 9.879 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0143/0.6552, allocations: 5.198 MB / 0.8594 GB, free: 4.664 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02378/0.6791, allocations: 14.38 MB / 0.8734 GB, free: 5.113 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01013/0.6892, allocations: 3.386 MB / 0.8767 GB, free: 1.723 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003922/0.6932, allocations: 1.471 MB / 0.8782 GB, free: 256 kB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001501/0.6933, allocations: 25.28 kB / 0.8782 GB, free: 228 kB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00446/0.6978, allocations: 1.79 MB / 0.88 GB, free: 14.37 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=163): time 4.158e-06/0.6978, allocations: 0 / 0.88 GB, free: 14.37 MB / 0.6544 GB Notification: Performance of matching and sorting (n=250): time 0.132/0.8299, allocations: 28.25 MB / 0.9075 GB, free: 1.891 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002199/0.8301, allocations: 0.4928 MB / 0.908 GB, free: 1.289 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003516/0.8337, allocations: 2.296 MB / 0.9103 GB, free: 14.98 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0004697/0.8341, allocations: 77.69 kB / 0.9103 GB, free: 14.89 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.001147/0.8353, allocations: 1.434 MB / 0.9117 GB, free: 13.45 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009075/0.8362, allocations: 0.8162 MB / 0.9125 GB, free: 12.62 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001016/0.8372, allocations: 420.4 kB / 0.9129 GB, free: 12.2 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 8.407e-05/0.8373, allocations: 301.1 kB / 0.9132 GB, free: 11.91 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005479/0.8428, allocations: 1.933 MB / 0.9151 GB, free: 9.969 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006135/0.849, allocations: 2.231 MB / 0.9173 GB, free: 7.652 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01104/0.8601, allocations: 4.161 MB / 0.9214 GB, free: 3.355 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.189e-05/0.8601, allocations: 0 / 0.9214 GB, free: 3.355 MB / 0.6856 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01971/0.8798, allocations: 6.539 MB / 0.9277 GB, free: 12.72 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001149/0.88, allocations: 148.5 kB / 0.9279 GB, free: 12.55 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.943e-05/0.88, allocations: 12 kB / 0.9279 GB, free: 12.54 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01026/0.8903, allocations: 2.922 MB / 0.9307 GB, free: 9.609 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002998/0.8933, allocations: 487.2 kB / 0.9312 GB, free: 9.133 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04033/0.9337, allocations: 18.84 MB / 0.9496 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004165/0.9379, allocations: 319.6 kB / 0.9499 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004725/0.9384, allocations: 87.97 kB / 0.95 GB, free: 5.641 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.001765/0.9401, allocations: 0.7065 MB / 0.9507 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008937/0.941, allocations: 328.2 kB / 0.951 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009337/0.942, allocations: 380.1 kB / 0.9514 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.009e-05/0.942, allocations: 28 kB / 0.9514 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.643e-05/0.9421, allocations: 11.94 kB / 0.9514 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.308e-05/0.9421, allocations: 11.95 kB / 0.9514 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005183/0.9473, allocations: 3.636 MB / 0.955 GB, free: 492 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-05/0.9473, allocations: 0 / 0.955 GB, free: 492 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002527/0.9499, allocations: 415.3 kB / 0.9554 GB, free: 76 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009888/0.9598, allocations: 2.868 MB / 0.9582 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004508/0.9603, allocations: 51.97 kB / 0.9582 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5699/1.53, allocations: 18.6 MB / 0.9764 GB, free: 185.5 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/1.53, allocations: 2.219 kB / 0.9764 GB, free: 185.5 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03249/1.563, allocations: 6.179 MB / 0.9824 GB, free: 183.8 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002457/1.565, allocations: 0.7011 MB / 0.9831 GB, free: 183.5 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001118/1.566, allocations: 47.72 kB / 0.9831 GB, free: 183.5 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005889/1.572, allocations: 316.3 kB / 0.9834 GB, free: 183.4 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001808/1.574, allocations: 360 kB / 0.9838 GB, free: 183.4 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003958/1.575, allocations: 64.73 kB / 0.9838 GB, free: 183.3 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.003159/1.578, allocations: 1.534 MB / 0.9853 GB, free: 182.8 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.4e-07/1.578, allocations: 3.906 kB / 0.9854 GB, free: 182.8 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.004492/1.582, allocations: 1.041 MB / 0.9864 GB, free: 182.7 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.000601/1.583, allocations: 170.4 kB / 0.9865 GB, free: 182.5 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0395/1.622, allocations: 6.471 MB / 0.9928 GB, free: 180.3 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.071e-05/1.623, allocations: 3.656 kB / 0.9929 GB, free: 180.3 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.03055/1.653, allocations: 4.045 MB / 0.9968 GB, free: 179 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006922/1.66, allocations: 1.142 MB / 0.9979 GB, free: 178.7 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01366/1.674, allocations: 6.886 MB / 1.005 GB, free: 173.3 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001762/1.676, allocations: 2.234 MB / 1.007 GB, free: 171.3 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001156/1.677, allocations: 203.4 kB / 1.007 GB, free: 171.1 MB / 0.7325 GB Notification: Performance of SimCode: time 1.162e-06/1.677, allocations: 0 / 1.007 GB, free: 171.1 MB / 0.7325 GB Notification: Performance of Templates: time 0.07077/1.748, allocations: 80.25 MB / 1.085 GB, free: 91.34 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)