Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001025/0.001025, allocations: 97.78 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 187.3 kB / 16.92 MB, free: 6.75 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.43/1.43, allocations: 223.3 MB / 241 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.701/2.701, allocations: 437.8 MB / 0.7128 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000437/0.0004371, allocations: 12 kB / 0.8735 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.746/0.7465, allocations: 153.8 MB / 1.024 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLines): time 0.02646/0.773, allocations: 21.68 MB / 1.045 GB, free: 10.09 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.02803/0.8011, allocations: 17.36 MB / 1.062 GB, free: 8.672 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004195/0.8053, allocations: 99.44 kB / 1.062 GB, free: 8.574 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.003316/0.8087, allocations: 0.597 MB / 1.062 GB, free: 7.973 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.01423/0.823, allocations: 3.193 MB / 1.066 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.004793/0.8278, allocations: 1.178 MB / 1.067 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.01178/0.8396, allocations: 6.859 MB / 1.073 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005894/0.8455, allocations: 2.499 MB / 1.076 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004784/0.8503, allocations: 1.953 MB / 1.078 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005323/0.8557, allocations: 2.245 MB / 1.08 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.001434/0.8572, allocations: 164 kB / 1.08 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003683/0.8609, allocations: 1.041 MB / 1.081 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.002141/0.863, allocations: 0.9496 MB / 1.082 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.004439/0.8675, allocations: 1.742 MB / 1.084 GB, free: 2 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.006205/0.8737, allocations: 3.853 MB / 1.088 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.8738, allocations: 0 / 1.088 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.154e-06/0.8738, allocations: 0 / 1.088 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.000251/0.874, allocations: 4 kB / 1.088 GB, free: 14.13 MB / 0.8419 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.01005/0.8841, allocations: 3.83 MB / 1.091 GB, free: 10.19 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.8841, allocations: 8.031 kB / 1.091 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01749/0.9016, allocations: 3.363 MB / 1.095 GB, free: 6.812 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005349/0.907, allocations: 2.06 MB / 1.097 GB, free: 4.684 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002775/0.9074, allocations: 185.1 kB / 1.097 GB, free: 4.5 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001284/0.9087, allocations: 232.1 kB / 1.097 GB, free: 4.273 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01368/0.9224, allocations: 4.744 MB / 1.102 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.47e-05/0.9225, allocations: 0 / 1.102 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003896/0.9228, allocations: 108 kB / 1.102 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002231/0.9231, allocations: 172.8 kB / 1.102 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01477/0.9379, allocations: 5.237 MB / 1.107 GB, free: 9.852 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02352/0.9614, allocations: 14.12 MB / 1.121 GB, free: 10.56 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01218/0.9736, allocations: 3.854 MB / 1.125 GB, free: 6.699 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004068/0.9778, allocations: 1.518 MB / 1.126 GB, free: 5.172 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001093/0.9779, allocations: 33.22 kB / 1.126 GB, free: 5.137 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004449/0.9823, allocations: 1.816 MB / 1.128 GB, free: 3.258 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=163): time 3.487e-06/0.9824, allocations: 4 kB / 1.128 GB, free: 3.254 MB / 0.8731 GB Notification: Performance of matching and sorting (n=250): time 0.138/1.12, allocations: 33.44 MB / 1.161 GB, free: 1.594 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002827/1.121, allocations: 0.5005 MB / 1.161 GB, free: 0.9805 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003566/1.124, allocations: 2.292 MB / 1.163 GB, free: 14.68 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0004815/1.125, allocations: 77.7 kB / 1.163 GB, free: 14.59 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.001331/1.126, allocations: 1.438 MB / 1.165 GB, free: 13.14 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009512/1.127, allocations: 0.8163 MB / 1.166 GB, free: 12.31 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003487/1.127, allocations: 190.4 kB / 1.166 GB, free: 12.12 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001153/1.128, allocations: 309 kB / 1.166 GB, free: 11.82 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005423/1.133, allocations: 1.925 MB / 1.168 GB, free: 9.887 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00574/1.139, allocations: 2.235 MB / 1.17 GB, free: 7.566 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01114/1.15, allocations: 4.212 MB / 1.174 GB, free: 3.219 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-05/1.15, allocations: 0 / 1.174 GB, free: 3.219 MB / 0.92 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01763/1.168, allocations: 6.192 MB / 1.18 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003851/1.168, allocations: 407.6 kB / 1.181 GB, free: 12.42 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.722e-05/1.168, allocations: 4 kB / 1.181 GB, free: 12.41 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00707/1.175, allocations: 1.852 MB / 1.182 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003353/1.179, allocations: 0.5852 MB / 1.183 GB, free: 9.973 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0244/1.203, allocations: 14.21 MB / 1.197 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004391/1.207, allocations: 399.6 kB / 1.197 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003795/1.208, allocations: 87.97 kB / 1.197 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/1.208, allocations: 7.984 kB / 1.197 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0162/1.224, allocations: 5.781 MB / 1.203 GB, free: 5.176 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.507e-05/1.224, allocations: 12.06 kB / 1.203 GB, free: 5.164 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005589/1.23, allocations: 1.817 MB / 1.205 GB, free: 3.344 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003344/1.233, allocations: 0.6085 MB / 1.205 GB, free: 2.734 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02202/1.255, allocations: 13.46 MB / 1.219 GB, free: 4.996 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004389/1.26, allocations: 407.5 kB / 1.219 GB, free: 4.598 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003417/1.26, allocations: 87.97 kB / 1.219 GB, free: 4.512 MB / 0.9669 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.001635/1.262, allocations: 0.7832 MB / 1.22 GB, free: 3.723 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005982/1.262, allocations: 336 kB / 1.22 GB, free: 3.391 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009563/1.263, allocations: 396.1 kB / 1.22 GB, free: 2.996 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.951e-05/1.263, allocations: 28 kB / 1.22 GB, free: 2.969 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.87e-05/1.263, allocations: 8 kB / 1.22 GB, free: 2.961 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.167e-05/1.263, allocations: 11.95 kB / 1.221 GB, free: 2.949 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004174/1.267, allocations: 3.165 MB / 1.224 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.084e-05/1.267, allocations: 0 / 1.224 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002762/1.27, allocations: 0.511 MB / 1.224 GB, free: 15.22 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00638/1.277, allocations: 1.731 MB / 1.226 GB, free: 13.48 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003277/1.277, allocations: 51.97 kB / 1.226 GB, free: 13.43 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02313/1.3, allocations: 13.97 MB / 1.239 GB, free: 15.19 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/1.3, allocations: 0 / 1.239 GB, free: 15.19 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01697/1.317, allocations: 5.81 MB / 1.245 GB, free: 9.34 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001685/1.319, allocations: 0.6648 MB / 1.246 GB, free: 8.652 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005134/1.319, allocations: 47.98 kB / 1.246 GB, free: 8.605 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003302/1.323, allocations: 399.6 kB / 1.246 GB, free: 8.215 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000887/1.324, allocations: 306.5 kB / 1.247 GB, free: 7.914 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002145/1.324, allocations: 71.97 kB / 1.247 GB, free: 7.844 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002299/1.326, allocations: 1.536 MB / 1.248 GB, free: 6.309 MB / 0.9981 GB Notification: Performance of sort global known variables: time 3.7e-07/1.326, allocations: 0 / 1.248 GB, free: 6.309 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.004575/1.331, allocations: 1.618 MB / 1.25 GB, free: 4.691 MB / 0.9981 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.0003628/1.331, allocations: 171 kB / 1.25 GB, free: 4.512 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.5015/1.833, allocations: 10.09 MB / 1.26 GB, free: 210.8 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.298e-05/1.833, allocations: 2 kB / 1.26 GB, free: 210.8 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.009404/1.842, allocations: 3.49 MB / 1.263 GB, free: 210.4 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005542/1.848, allocations: 1.04 MB / 1.264 GB, free: 210.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01622/1.864, allocations: 8.149 MB / 1.272 GB, free: 207.1 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002704/1.867, allocations: 2.313 MB / 1.274 GB, free: 206.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001336/1.868, allocations: 196.5 kB / 1.275 GB, free: 206.2 MB / 0.9981 GB Notification: Performance of SimCode: time 9.31e-07/1.868, allocations: 0 / 1.275 GB, free: 206.2 MB / 0.9981 GB Notification: Performance of Templates: time 0.1026/1.971, allocations: 79.59 MB / 1.352 GB, free: 143.8 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLines.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & ./Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1)