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.001059/0.001059, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001044/0.001044, allocations: 199.2 kB / 16.14 MB, free: 6.664 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.327/1.327, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002045/0.002045, allocations: 282.4 kB / 290.2 MB, free: 2.18 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9662/0.9662, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001661, allocations: 91.14 kB / 0.5945 GB, free: 28.23 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1689/0.1706, allocations: 86.98 MB / 0.6794 GB, free: 1.18 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02333/0.1939, allocations: 22.42 MB / 0.7013 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02498/0.219, allocations: 17.59 MB / 0.7185 GB, free: 9.055 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003294/0.2223, allocations: 103.4 kB / 0.7186 GB, free: 8.953 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.01039/0.2327, allocations: 3.921 MB / 0.7224 GB, free: 5.027 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.01191/0.2447, allocations: 3.206 MB / 0.7256 GB, free: 1.828 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003746/0.2484, allocations: 1.181 MB / 0.7267 GB, free: 0.6484 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.00905/0.2575, allocations: 7.055 MB / 0.7336 GB, free: 9.574 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004518/0.262, allocations: 2.495 MB / 0.736 GB, free: 7.004 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004392/0.2664, allocations: 2.179 MB / 0.7382 GB, free: 4.816 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004407/0.2709, allocations: 2.463 MB / 0.7406 GB, free: 2.344 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.001183/0.2721, allocations: 228 kB / 0.7408 GB, free: 2.121 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003062/0.2751, allocations: 1.107 MB / 0.7419 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.001858/0.277, allocations: 1.059 MB / 0.7429 GB, free: 15.95 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.003598/0.2806, allocations: 1.861 MB / 0.7447 GB, free: 14.08 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.005853/0.2865, allocations: 5.073 MB / 0.7497 GB, free: 8.988 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.2865, allocations: 0 / 0.7497 GB, free: 8.988 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.132e-06/0.2865, allocations: 0 / 0.7497 GB, free: 8.988 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0001242/0.2867, allocations: 4 kB / 0.7497 GB, free: 8.984 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.01051/0.2972, allocations: 4.614 MB / 0.7542 GB, free: 4.258 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.2972, allocations: 8.031 kB / 0.7542 GB, free: 4.25 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01718/0.3144, allocations: 3.261 MB / 0.7574 GB, free: 0.9805 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005035/0.3195, allocations: 2.096 MB / 0.7594 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004151/0.3199, allocations: 470.3 kB / 0.7599 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000667/0.3206, allocations: 235.9 kB / 0.7601 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01153/0.3322, allocations: 4.806 MB / 0.7648 GB, free: 9.105 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.542e-05/0.3322, allocations: 4 kB / 0.7648 GB, free: 9.102 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003383/0.3326, allocations: 108 kB / 0.7649 GB, free: 8.996 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000209/0.3328, allocations: 168.8 kB / 0.7651 GB, free: 8.828 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01322/0.346, allocations: 5.202 MB / 0.7701 GB, free: 3.609 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.283/0.629, allocations: 14.48 MB / 0.7843 GB, free: 80.41 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009124/0.6382, allocations: 3.385 MB / 0.7876 GB, free: 79.38 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003268/0.6415, allocations: 1.467 MB / 0.789 GB, free: 78.93 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000121/0.6416, allocations: 27.22 kB / 0.7891 GB, free: 78.93 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003974/0.6456, allocations: 1.791 MB / 0.7908 GB, free: 78.31 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=163): time 3.286e-06/0.6456, allocations: 0.6875 kB / 0.7908 GB, free: 78.31 MB / 0.5606 GB Notification: Performance of matching and sorting (n=250): time 0.1156/0.7613, allocations: 28.23 MB / 0.8184 GB, free: 66.75 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.7614, allocations: 0.491 MB / 0.8188 GB, free: 66.18 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002387/0.7638, allocations: 2.293 MB / 0.8211 GB, free: 64.98 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0003076/0.7641, allocations: 78.33 kB / 0.8212 GB, free: 64.91 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007461/0.7649, allocations: 1.433 MB / 0.8226 GB, free: 63.65 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005155/0.7654, allocations: 0.8163 MB / 0.8234 GB, free: 62.94 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007649/0.7662, allocations: 422.9 kB / 0.8238 GB, free: 62.67 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.174e-05/0.7662, allocations: 301.1 kB / 0.8241 GB, free: 62.37 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004306/0.7705, allocations: 1.929 MB / 0.8259 GB, free: 60.44 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004479/0.775, allocations: 2.231 MB / 0.8281 GB, free: 58.12 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00857/0.7836, allocations: 4.157 MB / 0.8322 GB, free: 53.83 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.357e-06/0.7837, allocations: 4 kB / 0.8322 GB, free: 53.82 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01631/0.8, allocations: 6.547 MB / 0.8386 GB, free: 47.19 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.266e-05/0.8001, allocations: 149.9 kB / 0.8387 GB, free: 47.01 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.521e-05/0.8001, allocations: 4 kB / 0.8387 GB, free: 47.01 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008972/0.8091, allocations: 2.932 MB / 0.8416 GB, free: 44.08 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002733/0.8118, allocations: 491.2 kB / 0.842 GB, free: 43.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03142/0.8433, allocations: 17.33 MB / 0.859 GB, free: 26.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003826/0.8471, allocations: 327.6 kB / 0.8593 GB, free: 25.77 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002932/0.8474, allocations: 87.97 kB / 0.8594 GB, free: 25.68 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.001355/0.8488, allocations: 0.7048 MB / 0.8601 GB, free: 24.96 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000569/0.8494, allocations: 333 kB / 0.8604 GB, free: 24.64 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005537/0.8499, allocations: 380.1 kB / 0.8607 GB, free: 24.26 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-05/0.85, allocations: 24 kB / 0.8608 GB, free: 24.23 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.122e-05/0.85, allocations: 13.44 kB / 0.8608 GB, free: 24.22 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.585e-05/0.85, allocations: 19.23 kB / 0.8608 GB, free: 24.21 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003575/0.8536, allocations: 3.633 MB / 0.8643 GB, free: 20.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.738e-06/0.8536, allocations: 1.594 kB / 0.8643 GB, free: 20.57 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002329/0.856, allocations: 419.3 kB / 0.8647 GB, free: 20.16 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008722/0.8647, allocations: 2.867 MB / 0.8675 GB, free: 17.29 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003474/0.8651, allocations: 51.97 kB / 0.8676 GB, free: 17.23 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03197/0.897, allocations: 17.1 MB / 0.8843 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.8971, allocations: 7.984 kB / 0.8843 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01728/0.9144, allocations: 6.173 MB / 0.8903 GB, free: 9.652 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001831/0.9162, allocations: 0.7 MB / 0.891 GB, free: 8.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006188/0.9169, allocations: 44 kB / 0.8911 GB, free: 8.887 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003226/0.9201, allocations: 315.5 kB / 0.8914 GB, free: 8.578 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001258/0.9214, allocations: 358.6 kB / 0.8917 GB, free: 8.23 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002337/0.9216, allocations: 69.84 kB / 0.8918 GB, free: 8.164 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002189/0.9238, allocations: 1.532 MB / 0.8933 GB, free: 6.633 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.71e-07/0.9238, allocations: 0 / 0.8933 GB, free: 6.633 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002977/0.9268, allocations: 1.043 MB / 0.8943 GB, free: 5.59 MB / 0.5762 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.0003927/0.9272, allocations: 172 kB / 0.8944 GB, free: 5.414 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.02254/0.9498, allocations: 6.443 MB / 0.9007 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 9.919e-06/0.9498, allocations: 0 / 0.9007 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.01673/0.9666, allocations: 4.044 MB / 0.9047 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005014/0.9716, allocations: 1.049 MB / 0.9057 GB, free: 9.797 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01523/0.9869, allocations: 8.043 MB / 0.9136 GB, free: 1.734 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002099/0.989, allocations: 2.234 MB / 0.9157 GB, free: 15.47 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.00296/0.992, allocations: 0.5099 MB / 0.9162 GB, free: 14.95 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007837/0.9928, allocations: 179.3 kB / 0.9164 GB, free: 14.78 MB / 0.6075 GB Notification: Performance of SimCode: time 9.61e-07/0.9928, allocations: 0 / 0.9164 GB, free: 14.78 MB / 0.6075 GB Notification: Performance of Templates: time 0.1107/1.103, allocations: 73.01 MB / 0.9877 GB, free: 6.617 MB / 0.67 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)