Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001515/0.001515, allocations: 108 kB / 15.6 MB, free: 132 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.00171/0.001709, allocations: 198.6 kB / 16.53 MB, free: 6.391 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.367/1.367, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.605/2.605, allocations: 437 MB / 0.7104 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 71.89 kB / 0.8693 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6308/0.6323, allocations: 151.6 MB / 1.017 GB, free: 2.637 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02359/0.6559, allocations: 22.63 MB / 1.04 GB, free: 11.93 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.02355/0.6795, allocations: 17.62 MB / 1.057 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002821/0.6824, allocations: 115.4 kB / 1.057 GB, free: 10.13 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.009708/0.6921, allocations: 4.177 MB / 1.061 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.00951/0.7016, allocations: 3.508 MB / 1.064 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.003312/0.705, allocations: 1.314 MB / 1.066 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.007414/0.7124, allocations: 5.775 MB / 1.071 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004305/0.7167, allocations: 3.596 MB / 1.075 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003486/0.7202, allocations: 2.394 MB / 1.077 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003646/0.7239, allocations: 2.448 MB / 1.079 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0006702/0.7246, allocations: 368 kB / 1.08 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001969/0.7266, allocations: 1.034 MB / 1.081 GB, free: 1.402 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000928/0.7275, allocations: 1.203 MB / 1.082 GB, free: 200 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.002172/0.7297, allocations: 1.986 MB / 1.084 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.004761/0.7344, allocations: 5.112 MB / 1.089 GB, free: 9.07 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.7345, allocations: 0 / 1.089 GB, free: 9.07 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.603e-06/0.7345, allocations: 0 / 1.089 GB, free: 9.07 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.562e-05/0.7346, allocations: 0 / 1.089 GB, free: 9.07 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.01004/0.7446, allocations: 4.614 MB / 1.093 GB, free: 4.344 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/0.7447, allocations: 12.03 kB / 1.093 GB, free: 4.332 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005887/0.7453, allocations: 358.3 kB / 1.094 GB, free: 3.973 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01556/0.7608, allocations: 3.265 MB / 1.097 GB, free: 0.6992 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004445/0.7653, allocations: 2.092 MB / 1.099 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000413/0.7658, allocations: 470 kB / 1.099 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009219/0.7667, allocations: 232 kB / 1.1 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01179/0.7785, allocations: 4.815 MB / 1.104 GB, free: 8.828 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.75e-05/0.7786, allocations: 0 / 1.104 GB, free: 8.828 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006053/0.7792, allocations: 112 kB / 1.105 GB, free: 8.719 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001925/0.7794, allocations: 168.8 kB / 1.105 GB, free: 8.551 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01361/0.793, allocations: 5.202 MB / 1.11 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02202/0.8151, allocations: 14.47 MB / 1.124 GB, free: 3.695 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009777/0.8249, allocations: 3.385 MB / 1.127 GB, free: 312 kB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003636/0.8285, allocations: 1.467 MB / 1.129 GB, free: 14.83 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001378/0.8287, allocations: 29.27 kB / 1.129 GB, free: 14.8 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004102/0.8328, allocations: 1.796 MB / 1.13 GB, free: 12.94 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=163): time 4.358e-06/0.8328, allocations: 0 / 1.13 GB, free: 12.94 MB / 0.8887 GB Notification: Performance of matching and sorting (n=250): time 0.1273/0.9602, allocations: 28.23 MB / 1.158 GB, free: 500 kB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002365/0.9604, allocations: 0.4889 MB / 1.158 GB, free: 15.89 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003521/0.964, allocations: 2.304 MB / 1.161 GB, free: 13.57 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0003012/0.9643, allocations: 81.7 kB / 1.161 GB, free: 13.48 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.001158/0.9655, allocations: 1.43 MB / 1.162 GB, free: 12.04 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.000763/0.9662, allocations: 0.8163 MB / 1.163 GB, free: 11.21 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008804/0.9671, allocations: 416.5 kB / 1.163 GB, free: 10.8 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 8.22e-05/0.9672, allocations: 301.1 kB / 1.164 GB, free: 10.5 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00521/0.9724, allocations: 1.937 MB / 1.166 GB, free: 8.559 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005402/0.9778, allocations: 2.227 MB / 1.168 GB, free: 6.246 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01027/0.9881, allocations: 4.165 MB / 1.172 GB, free: 1.945 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.933e-06/0.9881, allocations: 0 / 1.172 GB, free: 1.945 MB / 0.92 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01797/1.006, allocations: 6.536 MB / 1.178 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 9.626e-05/1.006, allocations: 148.5 kB / 1.178 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.7e-05/1.006, allocations: 8 kB / 1.178 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00971/1.016, allocations: 2.941 MB / 1.181 GB, free: 8.184 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002852/1.019, allocations: 491.2 kB / 1.182 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03839/1.057, allocations: 18.86 MB / 1.2 GB, free: 4.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003994/1.061, allocations: 323.6 kB / 1.2 GB, free: 4.273 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004069/1.062, allocations: 87.97 kB / 1.2 GB, free: 4.188 MB / 0.9512 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.001544/1.063, allocations: 0.7066 MB / 1.201 GB, free: 3.473 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007711/1.064, allocations: 332.1 kB / 1.201 GB, free: 3.145 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008133/1.065, allocations: 384.1 kB / 1.202 GB, free: 2.762 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.989e-05/1.065, allocations: 27.98 kB / 1.202 GB, free: 2.734 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.35e-05/1.065, allocations: 8 kB / 1.202 GB, free: 2.727 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.112e-05/1.065, allocations: 19.95 kB / 1.202 GB, free: 2.707 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004769/1.07, allocations: 3.62 MB / 1.205 GB, free: 15.03 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.473e-05/1.07, allocations: 0 / 1.205 GB, free: 15.03 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002433/1.072, allocations: 415.4 kB / 1.206 GB, free: 14.62 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009388/1.082, allocations: 2.888 MB / 1.209 GB, free: 11.73 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002605/1.082, allocations: 51.97 kB / 1.209 GB, free: 11.68 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03769/1.12, allocations: 18.63 MB / 1.227 GB, free: 8.75 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/1.12, allocations: 0 / 1.227 GB, free: 8.75 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01783/1.137, allocations: 6.181 MB / 1.233 GB, free: 2.531 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001621/1.139, allocations: 0.6961 MB / 1.234 GB, free: 1.812 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008167/1.14, allocations: 59.92 kB / 1.234 GB, free: 1.754 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003295/1.143, allocations: 307.6 kB / 1.234 GB, free: 1.453 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001126/1.144, allocations: 350.7 kB / 1.234 GB, free: 1.113 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002493/1.145, allocations: 71.97 kB / 1.234 GB, free: 1.043 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.002429/1.147, allocations: 1.532 MB / 1.236 GB, free: 15.51 MB / 0.9981 GB Notification: Performance of sort global known variables: time 3.1e-07/1.147, allocations: 0 / 1.236 GB, free: 15.51 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0029/1.15, allocations: 1.043 MB / 1.237 GB, free: 14.47 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 (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.01737/1.167, allocations: 6.798 MB / 1.244 GB, free: 7.625 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.02442/1.192, allocations: 7.304 MB / 1.251 GB, free: 232 kB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/1.192, allocations: 0 / 1.251 GB, free: 232 kB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.3951/1.587, allocations: 4.051 MB / 1.255 GB, free: 218 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004139/1.591, allocations: 1.137 MB / 1.256 GB, free: 217.9 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06308/1.654, allocations: 36.9 MB / 1.292 GB, free: 200.7 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001341/1.656, allocations: 2.229 MB / 1.294 GB, free: 199.8 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002229/1.658, allocations: 0.5132 MB / 1.294 GB, free: 199.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001241/1.659, allocations: 1.342 MB / 1.296 GB, free: 198.6 MB / 0.9981 GB Notification: Performance of SimCode: time 6.41e-07/1.659, allocations: 0 / 1.296 GB, free: 198.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.972/4.632, allocations: 104.2 MB / 1.398 GB, free: 96.91 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.42/24.05, allocations: 7.984 kB / 1.398 GB, free: 96.91 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)