Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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(Buildings.Electrical.DC.Lines.Examples.DCLines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001166/0.001166, allocations: 91.28 kB / 15.06 MB, free: 1.078 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.001366/0.001366, allocations: 176.7 kB / 15.95 MB, free: 188 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.545/2.545, allocations: 390.9 MB / 0.666 GB, free: 2.445 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003577/0.0003579, allocations: 8 kB / 0.8154 GB, free: 13.59 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8599/0.8603, allocations: 142.4 MB / 0.9544 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLines): time 0.02398/0.8844, allocations: 20.41 MB / 0.9744 GB, free: 8.141 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0281/0.9125, allocations: 16.4 MB / 0.9904 GB, free: 10.62 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004633/0.9172, allocations: 99.44 kB / 0.9905 GB, free: 10.52 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.003117/0.9204, allocations: 0.5657 MB / 0.991 GB, free: 9.953 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.01239/0.9328, allocations: 2.858 MB / 0.9938 GB, free: 7.094 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.004459/0.9372, allocations: 0.9587 MB / 0.9948 GB, free: 6.137 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.0105/0.9478, allocations: 5.776 MB / 1 GB, free: 352 kB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004555/0.9524, allocations: 2.024 MB / 1.002 GB, free: 14.25 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004788/0.9572, allocations: 1.867 MB / 1.004 GB, free: 12.38 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005852/0.9631, allocations: 2.171 MB / 1.006 GB, free: 10.2 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.001149/0.9643, allocations: 160 kB / 1.006 GB, free: 10.04 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002441/0.9667, allocations: 499.4 kB / 1.007 GB, free: 9.551 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.001211/0.968, allocations: 0.9185 MB / 1.008 GB, free: 8.629 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.001833/0.9698, allocations: 0.6912 MB / 1.009 GB, free: 7.93 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.007015/0.9768, allocations: 3.83 MB / 1.012 GB, free: 4.09 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.9769, allocations: 0 / 1.012 GB, free: 4.09 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.375e-06/0.9769, allocations: 0 / 1.012 GB, free: 4.09 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 0.000185/0.9771, allocations: 0 / 1.012 GB, free: 4.09 MB / 0.7637 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.008848/0.9859, allocations: 3.877 MB / 1.016 GB, free: 104 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.986, allocations: 8.031 kB / 1.016 GB, free: 96 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01528/1.001, allocations: 3.354 MB / 1.019 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00507/1.006, allocations: 1.972 MB / 1.021 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001784/1.007, allocations: 180.7 kB / 1.021 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006243/1.007, allocations: 232 kB / 1.022 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01138/1.019, allocations: 4.724 MB / 1.026 GB, free: 5.41 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.356e-05/1.019, allocations: 7.781 kB / 1.026 GB, free: 5.406 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003303/1.019, allocations: 104 kB / 1.026 GB, free: 5.305 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002203/1.019, allocations: 176.8 kB / 1.027 GB, free: 5.129 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01338/1.033, allocations: 5.218 MB / 1.032 GB, free: 15.89 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02285/1.056, allocations: 14.11 MB / 1.045 GB, free: 0.6133 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01067/1.066, allocations: 3.845 MB / 1.049 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003558/1.07, allocations: 1.51 MB / 1.051 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001294/1.07, allocations: 29.28 kB / 1.051 GB, free: 11.22 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004027/1.074, allocations: 1.821 MB / 1.052 GB, free: 9.332 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=163): time 4.278e-06/1.074, allocations: 0 / 1.052 GB, free: 9.332 MB / 0.8106 GB Notification: Performance of matching and sorting (n=250): time 0.1165/1.191, allocations: 33.39 MB / 1.085 GB, free: 7.719 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002929/1.191, allocations: 0.4889 MB / 1.086 GB, free: 7.117 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003441/1.194, allocations: 2.273 MB / 1.088 GB, free: 4.832 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0004529/1.195, allocations: 73.7 kB / 1.088 GB, free: 4.754 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.001286/1.196, allocations: 1.446 MB / 1.089 GB, free: 3.293 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009388/1.197, allocations: 0.824 MB / 1.09 GB, free: 2.457 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001784/1.197, allocations: 44 kB / 1.09 GB, free: 2.414 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0002573/1.198, allocations: 398.7 kB / 1.09 GB, free: 2.02 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004704/1.202, allocations: 1.917 MB / 1.092 GB, free: 100 kB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005211/1.207, allocations: 2.22 MB / 1.095 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004856/1.212, allocations: 2.124 MB / 1.097 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.187e-05/1.212, allocations: 8 kB / 1.097 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01509/1.227, allocations: 6.169 MB / 1.103 GB, free: 5.344 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.000366/1.228, allocations: 399.6 kB / 1.103 GB, free: 4.836 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.61e-05/1.228, allocations: 4 kB / 1.103 GB, free: 4.832 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006105/1.234, allocations: 1.848 MB / 1.105 GB, free: 2.977 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00307/1.237, allocations: 0.5929 MB / 1.105 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02252/1.26, allocations: 14.16 MB / 1.119 GB, free: 4 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003732/1.263, allocations: 407.6 kB / 1.12 GB, free: 3.602 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003593/1.264, allocations: 87.97 kB / 1.12 GB, free: 3.516 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.053e-05/1.264, allocations: 4 kB / 1.12 GB, free: 3.512 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01346/1.277, allocations: 5.753 MB / 1.125 GB, free: 13.68 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.861e-05/1.277, allocations: 8 kB / 1.125 GB, free: 13.67 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004788/1.282, allocations: 1.818 MB / 1.127 GB, free: 11.84 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002936/1.285, allocations: 0.6124 MB / 1.128 GB, free: 11.23 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02075/1.306, allocations: 13.43 MB / 1.141 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004164/1.31, allocations: 407.7 kB / 1.141 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003419/1.31, allocations: 87.97 kB / 1.141 GB, free: 13.03 MB / 0.9044 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 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.varLoad1.T_start,varLoad1.T_start,$PRE.varLoad1.count,varLoad1.count,$PRE.varLoad2.T_start,varLoad2.T_start,$PRE.varLoad2.count,varLoad2.count,$PRE.varLoad3.T_start,varLoad3.T_start,$PRE.varLoad3.count,varLoad3.count,$PRE.varLoad4.T_start,varLoad4.T_start,$PRE.varLoad4.count,varLoad4.count,$PRE.varLoad5.T_start,varLoad5.T_start,$PRE.varLoad5.count,varLoad5.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,45.0%) 52} * Non-linear torn systems: 1 {10 52} Notification: Performance of prepare postOptimizeDAE: time 0.001764/1.312, allocations: 0.792 MB / 1.142 GB, free: 12.23 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000665/1.313, allocations: 332.1 kB / 1.142 GB, free: 11.9 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008449/1.314, allocations: 392.1 kB / 1.143 GB, free: 11.51 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.126e-05/1.314, allocations: 27.98 kB / 1.143 GB, free: 11.48 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.625e-05/1.314, allocations: 15.95 kB / 1.143 GB, free: 11.47 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.137e-05/1.314, allocations: 11.95 kB / 1.143 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004862/1.319, allocations: 3.161 MB / 1.146 GB, free: 8.242 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/1.319, allocations: 0 / 1.146 GB, free: 8.242 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002476/1.321, allocations: 0.5228 MB / 1.146 GB, free: 7.719 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005809/1.327, allocations: 1.711 MB / 1.148 GB, free: 6 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003152/1.327, allocations: 51.97 kB / 1.148 GB, free: 5.949 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02128/1.349, allocations: 13.94 MB / 1.162 GB, free: 7.738 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/1.349, allocations: 0 / 1.162 GB, free: 7.738 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01408/1.363, allocations: 5.791 MB / 1.167 GB, free: 1.914 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001883/1.365, allocations: 0.6648 MB / 1.168 GB, free: 1.227 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004749/1.365, allocations: 47.98 kB / 1.168 GB, free: 1.18 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002556/1.368, allocations: 391.6 kB / 1.168 GB, free: 0.7969 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008608/1.369, allocations: 310.6 kB / 1.169 GB, free: 0.4961 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000172/1.369, allocations: 75.97 kB / 1.169 GB, free: 432 kB / 0.92 GB Notification: Performance of sorting global known variables: time 0.002156/1.371, allocations: 1.509 MB / 1.17 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of sort global known variables: time 3.016e-06/1.371, allocations: 0 / 1.17 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.004154/1.375, allocations: 1.625 MB / 1.172 GB, free: 13.29 MB / 0.9356 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 (128): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,60.0%) 52} * Non-linear torn systems: 1 {10 52} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003389/1.376, allocations: 163 kB / 1.172 GB, free: 13.11 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.02167/1.397, allocations: 10.07 MB / 1.182 GB, free: 2.859 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/1.397, allocations: 0 / 1.182 GB, free: 2.859 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.007756/1.405, allocations: 3.503 MB / 1.185 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004551/1.41, allocations: 1.042 MB / 1.186 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01373/1.423, allocations: 7.575 MB / 1.194 GB, free: 6.707 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002156/1.426, allocations: 2.308 MB / 1.196 GB, free: 4.359 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.003157/1.429, allocations: 0.6309 MB / 1.197 GB, free: 3.723 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006681/1.429, allocations: 179.4 kB / 1.197 GB, free: 3.547 MB / 0.9512 GB Notification: Performance of SimCode: time 8.62e-07/1.429, allocations: 0 / 1.197 GB, free: 3.547 MB / 0.9512 GB Notification: Performance of Templates: time 0.7223/2.152, allocations: 74.08 MB / 1.269 GB, free: 249.3 MB / 0.9981 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1)