Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_9_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.0009982/0.0009983, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.006153/0.006153, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.332/1.332, allocations: 223.3 MB / 240.3 MB, free: 5.34 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.26/2.26, allocations: 390.9 MB / 0.6664 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003249/0.0003251, allocations: 8 kB / 0.8161 GB, free: 13.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6058/0.6061, allocations: 142.4 MB / 0.9552 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02068/0.6268, allocations: 21.7 MB / 0.9764 GB, free: 6.871 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.02472/0.6516, allocations: 17.38 MB / 0.9933 GB, free: 8.141 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003359/0.655, allocations: 103.4 kB / 0.9934 GB, free: 8.039 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.002362/0.6574, allocations: 0.5775 MB / 0.994 GB, free: 7.457 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.009766/0.6672, allocations: 3.201 MB / 0.9971 GB, free: 4.25 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.0031/0.6703, allocations: 1.185 MB / 0.9983 GB, free: 3.07 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.008726/0.679, allocations: 7.056 MB / 1.005 GB, free: 11.99 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004144/0.6832, allocations: 2.554 MB / 1.008 GB, free: 9.344 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003642/0.6868, allocations: 2.05 MB / 1.01 GB, free: 7.285 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004003/0.6908, allocations: 2.288 MB / 1.012 GB, free: 4.988 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.00081/0.6917, allocations: 183.9 kB / 1.012 GB, free: 4.809 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002599/0.6943, allocations: 1.053 MB / 1.013 GB, free: 3.754 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.001266/0.6956, allocations: 0.9808 MB / 1.014 GB, free: 2.77 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.002716/0.6983, allocations: 1.785 MB / 1.016 GB, free: 0.9688 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.005452/0.7037, allocations: 4.939 MB / 1.021 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.7038, allocations: 0 / 1.021 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.512e-06/0.7038, allocations: 3.938 kB / 1.021 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0001397/0.7039, allocations: 0 / 1.021 GB, free: 12.01 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.008672/0.7126, allocations: 4.076 MB / 1.025 GB, free: 7.82 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.7126, allocations: 8.031 kB / 1.025 GB, free: 7.812 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005152/0.7132, allocations: 370.3 kB / 1.025 GB, free: 7.441 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01604/0.7292, allocations: 3.363 MB / 1.028 GB, free: 4.07 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003271/0.7325, allocations: 2.084 MB / 1.03 GB, free: 1.918 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003518/0.7329, allocations: 474 kB / 1.031 GB, free: 1.391 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004485/0.7333, allocations: 232 kB / 1.031 GB, free: 1.164 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01006/0.7434, allocations: 4.873 MB / 1.036 GB, free: 12.14 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.426e-05/0.7434, allocations: 3.938 kB / 1.036 GB, free: 12.14 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003199/0.7438, allocations: 108 kB / 1.036 GB, free: 12.04 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001881/0.744, allocations: 168.8 kB / 1.036 GB, free: 11.87 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01339/0.7574, allocations: 5.316 MB / 1.041 GB, free: 6.535 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01982/0.7772, allocations: 14.59 MB / 1.055 GB, free: 6.766 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009793/0.787, allocations: 3.691 MB / 1.059 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00363/0.7907, allocations: 1.596 MB / 1.061 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000101/0.7908, allocations: 21.3 kB / 1.061 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004329/0.7951, allocations: 1.915 MB / 1.062 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=163): time 5.31e-06/0.7951, allocations: 4 kB / 1.062 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of matching and sorting (n=250): time 0.1334/0.9285, allocations: 34.13 MB / 1.096 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002169/0.9288, allocations: 0.4889 MB / 1.096 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003205/0.932, allocations: 2.3 MB / 1.099 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0002631/0.9323, allocations: 73.7 kB / 1.099 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.00113/0.9334, allocations: 1.434 MB / 1.1 GB, free: 8.672 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007384/0.9342, allocations: 0.8202 MB / 1.101 GB, free: 7.84 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003451/0.9345, allocations: 182.4 kB / 1.101 GB, free: 7.656 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.299e-05/0.9346, allocations: 301.1 kB / 1.101 GB, free: 7.359 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005422/0.94, allocations: 2.124 MB / 1.103 GB, free: 5.23 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005583/0.9456, allocations: 2.415 MB / 1.106 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01074/0.9564, allocations: 4.544 MB / 1.11 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.9564, allocations: 0 / 1.11 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01865/0.9751, allocations: 6.914 MB / 1.117 GB, free: 7.043 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001206/0.9752, allocations: 152.6 kB / 1.117 GB, free: 6.863 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.987e-05/0.9752, allocations: 4 kB / 1.117 GB, free: 6.859 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01027/0.9855, allocations: 2.937 MB / 1.12 GB, free: 3.91 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003108/0.9887, allocations: 0.5657 MB / 1.12 GB, free: 3.344 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03733/1.026, allocations: 17.38 MB / 1.137 GB, free: 1.738 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004349/1.03, allocations: 423.6 kB / 1.138 GB, free: 1.324 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005334/1.031, allocations: 83.98 kB / 1.138 GB, free: 1.242 MB / 0.8887 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.00188/1.033, allocations: 0.7105 MB / 1.139 GB, free: 0.5195 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008902/1.034, allocations: 328.1 kB / 1.139 GB, free: 200 kB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001093/1.035, allocations: 392 kB / 1.139 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.18e-05/1.035, allocations: 24 kB / 1.139 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.392e-05/1.035, allocations: 8 kB / 1.139 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.963e-05/1.035, allocations: 11.95 kB / 1.139 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004913/1.04, allocations: 3.632 MB / 1.143 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.798e-05/1.04, allocations: 0 / 1.143 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002647/1.043, allocations: 0.4955 MB / 1.143 GB, free: 11.57 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009585/1.052, allocations: 2.876 MB / 1.146 GB, free: 8.688 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002807/1.052, allocations: 55.91 kB / 1.146 GB, free: 8.633 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03677/1.089, allocations: 17.15 MB / 1.163 GB, free: 7.199 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/1.089, allocations: 0 / 1.163 GB, free: 7.199 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0185/1.108, allocations: 6.548 MB / 1.169 GB, free: 0.6133 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001509/1.109, allocations: 0.7 MB / 1.17 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007125/1.11, allocations: 47.94 kB / 1.17 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003635/1.114, allocations: 419.5 kB / 1.171 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00114/1.115, allocations: 342.7 kB / 1.171 GB, free: 15.1 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002175/1.115, allocations: 71.97 kB / 1.171 GB, free: 15.03 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.002434/1.118, allocations: 1.532 MB / 1.172 GB, free: 13.5 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.6e-07/1.118, allocations: 4 kB / 1.172 GB, free: 13.49 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.00279/1.12, allocations: 1.043 MB / 1.173 GB, free: 12.45 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 (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.01857/1.139, allocations: 7.184 MB / 1.18 GB, free: 5.227 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0233/1.162, allocations: 6.832 MB / 1.187 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 7.735e-06/1.162, allocations: 0.75 kB / 1.187 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.01755/1.18, allocations: 4.235 MB / 1.191 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005682/1.186, allocations: 1.049 MB / 1.192 GB, free: 9 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08188/1.267, allocations: 39.13 MB / 1.23 GB, free: 15.78 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002277/1.27, allocations: 2.231 MB / 1.233 GB, free: 13.52 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.00249/1.272, allocations: 0.5099 MB / 1.233 GB, free: 13 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001804/1.274, allocations: 1.323 MB / 1.234 GB, free: 11.68 MB / 0.9981 GB Notification: Performance of SimCode: time 9.11e-07/1.274, allocations: 0 / 1.234 GB, free: 11.68 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5738/1.848, allocations: 98.21 MB / 1.33 GB, free: 238.9 MB / 1.014 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001511/1.848, allocations: 235.8 kB / 1.331 GB, free: 238.7 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.984/6.832, allocations: 14.39 kB / 1.331 GB, free: 238.7 MB / 1.014 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)