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.0008894/0.0008896, allocations: 92 kB / 16.02 MB, free: 80 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.001081/0.001081, allocations: 177 kB / 16.92 MB, free: 6.652 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.408/1.408, allocations: 223.3 MB / 241 MB, free: 5.297 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.381/2.381, allocations: 390.9 MB / 0.667 GB, free: 2.395 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003895/0.0003894, allocations: 8 kB / 0.8166 GB, free: 13.28 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6841/0.6845, allocations: 142.4 MB / 0.9557 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLines): time 0.02131/0.7058, allocations: 21.68 MB / 0.9769 GB, free: 6.949 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.02658/0.7324, allocations: 17.37 MB / 0.9938 GB, free: 8.223 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003623/0.7361, allocations: 103.4 kB / 0.9939 GB, free: 8.121 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.002439/0.7386, allocations: 0.5853 MB / 0.9945 GB, free: 7.531 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.01111/0.7497, allocations: 3.202 MB / 0.9976 GB, free: 4.328 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.003765/0.7535, allocations: 1.185 MB / 0.9988 GB, free: 3.148 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.00925/0.7628, allocations: 6.857 MB / 1.005 GB, free: 12.27 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003966/0.7668, allocations: 2.503 MB / 1.008 GB, free: 9.672 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003863/0.7707, allocations: 1.949 MB / 1.01 GB, free: 7.715 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005017/0.7757, allocations: 2.249 MB / 1.012 GB, free: 5.457 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.001033/0.7768, allocations: 164 kB / 1.012 GB, free: 5.297 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003156/0.7799, allocations: 1.045 MB / 1.013 GB, free: 4.25 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.001082/0.781, allocations: 0.9456 MB / 1.014 GB, free: 3.301 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.002626/0.7837, allocations: 1.754 MB / 1.016 GB, free: 1.531 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.004192/0.7879, allocations: 3.845 MB / 1.02 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.7879, allocations: 0 / 1.02 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.515e-06/0.7879, allocations: 0 / 1.02 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0001187/0.788, allocations: 0 / 1.02 GB, free: 13.68 MB / 0.7794 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.00797/0.796, allocations: 3.853 MB / 1.023 GB, free: 9.711 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.7961, allocations: 12.03 kB / 1.023 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01709/0.8132, allocations: 3.359 MB / 1.027 GB, free: 6.332 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004082/0.8173, allocations: 2.06 MB / 1.029 GB, free: 4.203 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001482/0.8175, allocations: 185.1 kB / 1.029 GB, free: 4.02 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005866/0.8181, allocations: 236.1 kB / 1.029 GB, free: 3.789 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01301/0.8311, allocations: 4.74 MB / 1.034 GB, free: 14.9 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.575e-05/0.8312, allocations: 0 / 1.034 GB, free: 14.9 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003414/0.8315, allocations: 99.98 kB / 1.034 GB, free: 14.8 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002102/0.8318, allocations: 180.7 kB / 1.034 GB, free: 14.62 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01438/0.8462, allocations: 5.241 MB / 1.039 GB, free: 9.367 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02231/0.8685, allocations: 14.11 MB / 1.053 GB, free: 10.08 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01223/0.8808, allocations: 3.866 MB / 1.057 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004131/0.885, allocations: 1.514 MB / 1.058 GB, free: 4.691 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001534/0.8851, allocations: 33.17 kB / 1.058 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004707/0.8899, allocations: 1.82 MB / 1.06 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=163): time 4.91e-06/0.8899, allocations: 0 / 1.06 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of matching and sorting (n=250): time 0.1371/1.027, allocations: 33.42 MB / 1.093 GB, free: 1.129 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002864/1.027, allocations: 0.4928 MB / 1.093 GB, free: 0.5234 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004039/1.031, allocations: 2.296 MB / 1.095 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0004191/1.032, allocations: 77.7 kB / 1.095 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001299/1.033, allocations: 1.438 MB / 1.097 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.001024/1.034, allocations: 0.8202 MB / 1.098 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004826/1.035, allocations: 186.4 kB / 1.098 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001111/1.035, allocations: 305.1 kB / 1.098 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005489/1.04, allocations: 1.929 MB / 1.1 GB, free: 9.426 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005734/1.046, allocations: 2.233 MB / 1.102 GB, free: 7.109 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01106/1.057, allocations: 4.22 MB / 1.106 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.205e-05/1.057, allocations: 4 kB / 1.106 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01819/1.075, allocations: 6.192 MB / 1.112 GB, free: 12.46 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002886/1.076, allocations: 399.5 kB / 1.113 GB, free: 11.96 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.14e-05/1.076, allocations: 15.92 kB / 1.113 GB, free: 11.94 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007311/1.083, allocations: 1.856 MB / 1.114 GB, free: 10.08 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003325/1.086, allocations: 0.5813 MB / 1.115 GB, free: 9.496 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02478/1.111, allocations: 14.19 MB / 1.129 GB, free: 11.07 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00426/1.116, allocations: 411.5 kB / 1.129 GB, free: 10.67 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004546/1.116, allocations: 92.06 kB / 1.129 GB, free: 10.58 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/1.116, allocations: 7.938 kB / 1.129 GB, free: 10.57 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01705/1.133, allocations: 5.78 MB / 1.135 GB, free: 4.707 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.394e-05/1.133, allocations: 4 kB / 1.135 GB, free: 4.703 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005733/1.139, allocations: 1.825 MB / 1.137 GB, free: 2.871 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003306/1.142, allocations: 0.6046 MB / 1.137 GB, free: 2.266 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02304/1.165, allocations: 13.47 MB / 1.151 GB, free: 4.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004366/1.17, allocations: 403.6 kB / 1.151 GB, free: 4.125 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005333/1.17, allocations: 91.97 kB / 1.151 GB, free: 4.035 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 (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.002118/1.172, allocations: 0.7762 MB / 1.152 GB, free: 3.25 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008961/1.173, allocations: 332 kB / 1.152 GB, free: 2.922 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00107/1.174, allocations: 396.1 kB / 1.153 GB, free: 2.527 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.371e-05/1.174, allocations: 24 kB / 1.153 GB, free: 2.504 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.284e-05/1.174, allocations: 12 kB / 1.153 GB, free: 2.492 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.078e-05/1.175, allocations: 15.95 kB / 1.153 GB, free: 2.477 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005261/1.18, allocations: 3.169 MB / 1.156 GB, free: 15.25 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.812e-05/1.18, allocations: 4 kB / 1.156 GB, free: 15.25 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002878/1.183, allocations: 0.515 MB / 1.156 GB, free: 14.73 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006707/1.189, allocations: 1.719 MB / 1.158 GB, free: 13.01 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000441/1.19, allocations: 51.97 kB / 1.158 GB, free: 12.96 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0234/1.213, allocations: 13.97 MB / 1.172 GB, free: 14.7 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/1.213, allocations: 0 / 1.172 GB, free: 14.7 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01678/1.23, allocations: 5.81 MB / 1.177 GB, free: 8.859 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002138/1.232, allocations: 0.6649 MB / 1.178 GB, free: 8.172 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001142/1.234, allocations: 44 kB / 1.178 GB, free: 8.129 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004016/1.238, allocations: 399.5 kB / 1.178 GB, free: 7.738 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001205/1.239, allocations: 298.6 kB / 1.179 GB, free: 7.445 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003745/1.239, allocations: 68.53 kB / 1.179 GB, free: 7.379 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.003567/1.243, allocations: 1.536 MB / 1.18 GB, free: 5.844 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.7e-07/1.243, allocations: 0 / 1.18 GB, free: 5.844 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.005977/1.249, allocations: 1.621 MB / 1.182 GB, free: 4.223 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 (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.0005339/1.249, allocations: 178.9 kB / 1.182 GB, free: 4.039 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.02621/1.276, allocations: 10.1 MB / 1.192 GB, free: 9.75 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 9.418e-06/1.276, allocations: 0 / 1.192 GB, free: 9.75 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.009602/1.285, allocations: 3.501 MB / 1.195 GB, free: 6.219 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006565/1.292, allocations: 1.051 MB / 1.196 GB, free: 5.18 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01768/1.31, allocations: 8.142 MB / 1.204 GB, free: 13.02 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003057/1.313, allocations: 2.316 MB / 1.206 GB, free: 10.67 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0014/1.314, allocations: 195.4 kB / 1.207 GB, free: 10.48 MB / 0.9669 GB Notification: Performance of SimCode: time 1.102e-06/1.314, allocations: 3.938 kB / 1.207 GB, free: 10.47 MB / 0.9669 GB Notification: Performance of Templates: time 0.5925/1.907, allocations: 79.59 MB / 1.284 GB, free: 249.8 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)