Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Electrical.DC.Lines.Examples.DCLines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_latest_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_latest_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.001138/0.001138, allocations: 107.2 kB / 15.99 MB, free: 6.348 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.001168/0.001169, allocations: 189.2 kB / 16.91 MB, free: 6.184 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.352/1.352, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.657/2.657, allocations: 469.4 MB / 0.7423 GB, free: 3.91 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 64.3 kB / 0.9083 GB, free: 14.54 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3191/0.3205, allocations: 159.1 MB / 1.064 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLines): time 0.7301/1.051, allocations: 22.41 MB / 1.086 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02458/1.075, allocations: 17.44 MB / 1.103 GB, free: 0.8164 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004546/1.08, allocations: 108.3 kB / 1.103 GB, free: 0.7773 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.01099/1.091, allocations: 3.933 MB / 1.107 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.01587/1.107, allocations: 3.181 MB / 1.11 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.005164/1.112, allocations: 1.189 MB / 1.111 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01181/1.124, allocations: 5.582 MB / 1.116 GB, free: 9.281 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009756/1.134, allocations: 3.962 MB / 1.12 GB, free: 7.355 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006794/1.14, allocations: 2.343 MB / 1.122 GB, free: 6.32 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006629/1.147, allocations: 2.477 MB / 1.125 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.002204/1.149, allocations: 351.6 kB / 1.125 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00463/1.154, allocations: 1.012 MB / 1.126 GB, free: 5 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.002712/1.157, allocations: 1.162 MB / 1.127 GB, free: 4.414 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.006592/1.163, allocations: 1.963 MB / 1.129 GB, free: 3.215 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.008846/1.172, allocations: 3.974 MB / 1.133 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/1.172, allocations: 0.6562 kB / 1.133 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.324e-06/1.172, allocations: 0 / 1.133 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0002513/1.172, allocations: 1.156 kB / 1.133 GB, free: 1.996 MB / 0.8575 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.01702/1.189, allocations: 4.381 MB / 1.137 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/1.19, allocations: 10.84 kB / 1.137 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01772/1.207, allocations: 3.262 MB / 1.141 GB, free: 14.94 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006907/1.214, allocations: 2.06 MB / 1.143 GB, free: 13.45 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003393/1.215, allocations: 177.8 kB / 1.143 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002024/1.217, allocations: 235.6 kB / 1.143 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01653/1.233, allocations: 4.682 MB / 1.148 GB, free: 10.52 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001333/1.233, allocations: 0 / 1.148 GB, free: 10.52 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001097/1.234, allocations: 110.1 kB / 1.148 GB, free: 10.43 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000297/1.235, allocations: 172.8 kB / 1.148 GB, free: 10.39 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01531/1.25, allocations: 5.122 MB / 1.153 GB, free: 7.816 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03423/1.284, allocations: 14.01 MB / 1.167 GB, free: 11.61 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01751/1.302, allocations: 3.562 MB / 1.17 GB, free: 9.82 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005607/1.308, allocations: 1.39 MB / 1.171 GB, free: 9.117 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000226/1.308, allocations: 26.5 kB / 1.171 GB, free: 9.109 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006314/1.314, allocations: 1.715 MB / 1.173 GB, free: 8.039 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=163): time 7.344e-06/1.314, allocations: 0 / 1.173 GB, free: 8.039 MB / 0.8887 GB Notification: Performance of matching and sorting (n=250): time 0.1517/1.466, allocations: 27.41 MB / 1.2 GB, free: 12.7 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003007/1.466, allocations: 0.4889 MB / 1.2 GB, free: 12.09 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006103/1.472, allocations: 2.296 MB / 1.203 GB, free: 9.785 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0006308/1.473, allocations: 81.69 kB / 1.203 GB, free: 9.699 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.002013/1.475, allocations: 1.438 MB / 1.204 GB, free: 8.246 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.001388/1.477, allocations: 0.8124 MB / 1.205 GB, free: 7.422 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001737/1.478, allocations: 416.4 kB / 1.205 GB, free: 7.008 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001151/1.478, allocations: 301.1 kB / 1.206 GB, free: 6.711 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006855/1.485, allocations: 1.751 MB / 1.207 GB, free: 4.949 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008026/1.493, allocations: 2.048 MB / 1.209 GB, free: 2.816 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01487/1.508, allocations: 3.841 MB / 1.213 GB, free: 14.84 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-05/1.508, allocations: 0 / 1.213 GB, free: 14.84 MB / 0.9356 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01682/1.525, allocations: 5.806 MB / 1.219 GB, free: 8.941 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001293/1.525, allocations: 152.4 kB / 1.219 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/1.525, allocations: 8.344 kB / 1.219 GB, free: 8.754 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00676/1.532, allocations: 1.856 MB / 1.221 GB, free: 6.898 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003093/1.535, allocations: 0.4953 MB / 1.221 GB, free: 6.402 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02557/1.561, allocations: 15.43 MB / 1.236 GB, free: 6.738 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004355/1.565, allocations: 311.7 kB / 1.236 GB, free: 6.434 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005268/1.566, allocations: 92.06 kB / 1.237 GB, free: 6.344 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.007447/1.573, allocations: 2.318 MB / 1.239 GB, free: 4.02 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005258/1.578, allocations: 2.028 MB / 1.241 GB, free: 1.906 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.009939/1.588, allocations: 3.794 MB / 1.245 GB, free: 13.98 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.525e-05/1.588, allocations: 4 kB / 1.245 GB, free: 13.97 MB / 0.9669 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.01638/1.605, allocations: 5.645 MB / 1.25 GB, free: 8.23 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001475/1.605, allocations: 148.5 kB / 1.25 GB, free: 8.055 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.733e-05/1.605, allocations: 12.28 kB / 1.25 GB, free: 8.043 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006209/1.611, allocations: 1.693 MB / 1.252 GB, free: 6.344 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00304/1.614, allocations: 0.5187 MB / 1.252 GB, free: 5.824 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02407/1.638, allocations: 14.62 MB / 1.267 GB, free: 6.922 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004397/1.643, allocations: 311.6 kB / 1.267 GB, free: 6.617 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005099/1.643, allocations: 83.98 kB / 1.267 GB, free: 6.535 MB / 0.9825 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 (172): * Single equations (assignments): 165 * 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 {(10,52)} Notification: Performance of prepare postOptimizeDAE: time 0.0009946/1.644, allocations: 322.1 kB / 1.267 GB, free: 6.215 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009823/1.645, allocations: 328.1 kB / 1.268 GB, free: 5.891 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001129/1.647, allocations: 401.1 kB / 1.268 GB, free: 5.492 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.202e-05/1.647, allocations: 24 kB / 1.268 GB, free: 5.469 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.406e-05/1.647, allocations: 12 kB / 1.268 GB, free: 5.457 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.869e-05/1.647, allocations: 15.89 kB / 1.268 GB, free: 5.441 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006082/1.653, allocations: 3.18 MB / 1.271 GB, free: 2.215 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.754e-05/1.653, allocations: 0 / 1.271 GB, free: 2.215 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002668/1.655, allocations: 431.4 kB / 1.272 GB, free: 1.793 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006467/1.662, allocations: 1.711 MB / 1.273 GB, free: 76 kB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003184/1.662, allocations: 52.47 kB / 1.273 GB, free: 24 kB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02557/1.688, allocations: 15.22 MB / 1.288 GB, free: 0.4961 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/1.688, allocations: 0 / 1.288 GB, free: 0.4961 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01662/1.704, allocations: 5.424 MB / 1.293 GB, free: 11.04 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002269/1.707, allocations: 0.6687 MB / 1.294 GB, free: 10.35 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001244/1.708, allocations: 44 kB / 1.294 GB, free: 10.31 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003916/1.712, allocations: 299.6 kB / 1.294 GB, free: 10.02 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00112/1.713, allocations: 294.7 kB / 1.295 GB, free: 9.727 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002803/1.713, allocations: 71.97 kB / 1.295 GB, free: 9.656 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.003232/1.717, allocations: 1.532 MB / 1.296 GB, free: 8.125 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.11e-07/1.717, allocations: 4 kB / 1.296 GB, free: 8.121 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0065/1.723, allocations: 1.637 MB / 1.298 GB, free: 6.484 MB / 1.014 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 (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,52)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005026/1.724, allocations: 172.7 kB / 1.298 GB, free: 6.309 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.02731/1.751, allocations: 10.2 MB / 1.308 GB, free: 11.93 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 8.255e-06/1.751, allocations: 0 / 1.308 GB, free: 11.93 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.008457/1.76, allocations: 3.326 MB / 1.311 GB, free: 8.566 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00696/1.767, allocations: 1.13 MB / 1.312 GB, free: 7.477 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01758/1.784, allocations: 8.051 MB / 1.32 GB, free: 15.41 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003234/1.787, allocations: 2.301 MB / 1.322 GB, free: 13.06 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001355/1.789, allocations: 203.4 kB / 1.323 GB, free: 12.86 MB / 1.045 GB Notification: Performance of SimCode: time 2.255e-06/1.789, allocations: 0 / 1.323 GB, free: 12.86 MB / 1.045 GB Notification: Performance of Templates: time 0.1206/1.909, allocations: 79.58 MB / 1.4 GB, free: 13.6 MB / 1.123 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1)