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.001305/0.001305, allocations: 112.6 kB / 16.37 MB, free: 6 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.001075/0.001075, allocations: 196 kB / 17.31 MB, free: 5.613 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.288/1.288, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002097/0.002097, allocations: 287 kB / 291.4 MB, free: 14.49 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9232/0.9232, allocations: 169.3 MB / 0.4989 GB, free: 4.473 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001679/0.00168, allocations: 91.36 kB / 0.5967 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1724/0.1741, allocations: 86.97 MB / 0.6816 GB, free: 7.469 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.3152/0.4893, allocations: 22.63 MB / 0.7037 GB, free: 5.887 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.02646/0.5158, allocations: 17.62 MB / 0.7209 GB, free: 9.699 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003819/0.5197, allocations: 115.1 kB / 0.721 GB, free: 9.66 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.01147/0.5312, allocations: 4.18 MB / 0.7251 GB, free: 7.145 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.01252/0.5438, allocations: 3.508 MB / 0.7285 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004262/0.548, allocations: 1.318 MB / 0.7298 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.009524/0.5576, allocations: 5.791 MB / 0.7355 GB, free: 0.8242 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005237/0.5629, allocations: 3.593 MB / 0.739 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005329/0.5682, allocations: 2.408 MB / 0.7413 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005215/0.5734, allocations: 2.444 MB / 0.7437 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0008348/0.5743, allocations: 368.7 kB / 0.7441 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002776/0.5771, allocations: 1.034 MB / 0.7451 GB, free: 11.56 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.00117/0.5783, allocations: 1.193 MB / 0.7462 GB, free: 10.69 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.002557/0.5808, allocations: 1.997 MB / 0.7482 GB, free: 9.328 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.005446/0.5863, allocations: 5.167 MB / 0.7532 GB, free: 5.516 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.5863, allocations: 15.92 kB / 0.7532 GB, free: 5.5 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.713e-06/0.5863, allocations: 0 / 0.7532 GB, free: 5.5 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.000103/0.5864, allocations: 0 / 0.7532 GB, free: 5.5 MB / 0.5137 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.009073/0.5955, allocations: 4.612 MB / 0.7578 GB, free: 0.7734 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.5956, allocations: 12.03 kB / 0.7578 GB, free: 0.7617 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01435/0.6099, allocations: 3.261 MB / 0.7609 GB, free: 13.49 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00514/0.6151, allocations: 2.228 MB / 0.7631 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00037/0.6155, allocations: 462.5 kB / 0.7636 GB, free: 10.68 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006922/0.6162, allocations: 243.9 kB / 0.7638 GB, free: 10.44 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01003/0.6262, allocations: 4.811 MB / 0.7685 GB, free: 5.484 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.313e-05/0.6263, allocations: 0 / 0.7685 GB, free: 5.484 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002965/0.6266, allocations: 108 kB / 0.7686 GB, free: 5.379 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001826/0.6268, allocations: 172.8 kB / 0.7688 GB, free: 5.207 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01207/0.6389, allocations: 5.191 MB / 0.7738 GB, free: 0 / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02175/0.6607, allocations: 14.4 MB / 0.7879 GB, free: 448 kB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008823/0.6695, allocations: 3.391 MB / 0.7912 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003363/0.6729, allocations: 1.472 MB / 0.7926 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001364/0.6731, allocations: 25.23 kB / 0.7927 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0038/0.6769, allocations: 1.8 MB / 0.7944 GB, free: 9.672 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=163): time 3.496e-06/0.6769, allocations: 0 / 0.7944 GB, free: 9.672 MB / 0.5606 GB Notification: Performance of matching and sorting (n=250): time 0.1113/0.7882, allocations: 28.2 MB / 0.822 GB, free: 13.24 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002248/0.7885, allocations: 0.4928 MB / 0.8224 GB, free: 12.64 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003034/0.7915, allocations: 2.3 MB / 0.8247 GB, free: 10.32 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0005129/0.792, allocations: 81.69 kB / 0.8248 GB, free: 10.24 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.001189/0.7932, allocations: 1.434 MB / 0.8262 GB, free: 8.789 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009094/0.7941, allocations: 0.8162 MB / 0.827 GB, free: 7.961 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000846/0.795, allocations: 420.5 kB / 0.8274 GB, free: 7.543 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.16e-05/0.7951, allocations: 301.1 kB / 0.8277 GB, free: 7.246 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004666/0.7998, allocations: 1.933 MB / 0.8295 GB, free: 5.309 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004954/0.8047, allocations: 2.231 MB / 0.8317 GB, free: 2.992 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00933/0.8141, allocations: 4.158 MB / 0.8358 GB, free: 14.7 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.047e-05/0.8141, allocations: 4 kB / 0.8358 GB, free: 14.69 MB / 0.6075 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.017/0.8312, allocations: 6.539 MB / 0.8422 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001221/0.8313, allocations: 148.8 kB / 0.8423 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.024e-05/0.8313, allocations: 14.69 kB / 0.8423 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009402/0.8408, allocations: 2.926 MB / 0.8452 GB, free: 4.949 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002867/0.8437, allocations: 495.2 kB / 0.8457 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03769/0.8814, allocations: 18.84 MB / 0.8641 GB, free: 1.375 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003928/0.8853, allocations: 315.6 kB / 0.8644 GB, free: 1.066 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003707/0.8857, allocations: 87.97 kB / 0.8644 GB, free: 0.9805 MB / 0.6231 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.001404/0.8872, allocations: 0.7104 MB / 0.8651 GB, free: 268 kB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006837/0.8878, allocations: 332.1 kB / 0.8655 GB, free: 15.93 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007265/0.8886, allocations: 376.1 kB / 0.8658 GB, free: 15.56 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.029e-05/0.8886, allocations: 24 kB / 0.8658 GB, free: 15.54 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.932e-05/0.8887, allocations: 12 kB / 0.8658 GB, free: 15.52 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-05/0.8887, allocations: 11.95 kB / 0.8659 GB, free: 15.51 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005/0.8937, allocations: 3.62 MB / 0.8694 GB, free: 11.83 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.997e-06/0.8937, allocations: 4 kB / 0.8694 GB, free: 11.83 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002287/0.896, allocations: 419.3 kB / 0.8698 GB, free: 11.42 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008946/0.905, allocations: 2.868 MB / 0.8726 GB, free: 8.547 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004043/0.9054, allocations: 51.97 kB / 0.8726 GB, free: 8.496 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03594/0.9414, allocations: 18.61 MB / 0.8908 GB, free: 5.586 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.9414, allocations: 0 / 0.8908 GB, free: 5.586 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01669/0.9581, allocations: 6.178 MB / 0.8969 GB, free: 15.36 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002261/0.9604, allocations: 0.6922 MB / 0.8975 GB, free: 14.65 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006347/0.961, allocations: 44 kB / 0.8976 GB, free: 14.61 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003052/0.9641, allocations: 315.5 kB / 0.8979 GB, free: 14.3 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001165/0.9653, allocations: 354.7 kB / 0.8982 GB, free: 13.95 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002118/0.9655, allocations: 71.97 kB / 0.8983 GB, free: 13.88 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.002019/0.9675, allocations: 1.536 MB / 0.8998 GB, free: 12.35 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9675, allocations: 4 kB / 0.8998 GB, free: 12.34 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.00282/0.9704, allocations: 1.047 MB / 0.9008 GB, free: 11.3 MB / 0.67 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.0003574/0.9707, allocations: 164.9 kB / 0.901 GB, free: 11.13 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.02105/0.9918, allocations: 6.477 MB / 0.9073 GB, free: 4.559 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 1.138e-05/0.9918, allocations: 4 kB / 0.9073 GB, free: 4.555 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.01533/1.007, allocations: 4.06 MB / 0.9113 GB, free: 480 kB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004519/1.012, allocations: 1.155 MB / 0.9124 GB, free: 15.37 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01862/1.03, allocations: 6.688 MB / 0.9189 GB, free: 8.664 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002217/1.033, allocations: 2.231 MB / 0.9211 GB, free: 6.402 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.002335/1.035, allocations: 0.5138 MB / 0.9216 GB, free: 5.883 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009307/1.036, allocations: 183.4 kB / 0.9218 GB, free: 5.703 MB / 0.6856 GB Notification: Performance of SimCode: time 7.42e-07/1.036, allocations: 0 / 0.9218 GB, free: 5.703 MB / 0.6856 GB Notification: Performance of Templates: time 0.4169/1.453, allocations: 74.9 MB / 0.9949 GB, free: 222.8 MB / 0.7169 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)