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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001138/0.001138, 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.001199/0.001199, allocations: 193 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.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.375/2.375, allocations: 390.2 MB / 0.6647 GB, free: 280 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 63.89 kB / 0.8126 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5474/0.5486, allocations: 140.4 MB / 0.9497 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.0213/0.5699, allocations: 22.63 MB / 0.9718 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.02361/0.5936, allocations: 17.63 MB / 0.989 GB, free: 9.461 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002644/0.5963, allocations: 111.4 kB / 0.9891 GB, free: 9.352 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.009525/0.6058, allocations: 4.171 MB / 0.9932 GB, free: 5.172 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.01003/0.6159, allocations: 3.524 MB / 0.9966 GB, free: 1.641 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.003146/0.6191, allocations: 1.31 MB / 0.9979 GB, free: 340 kB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.006712/0.6258, allocations: 5.765 MB / 1.004 GB, free: 10.55 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004017/0.6298, allocations: 3.608 MB / 1.007 GB, free: 6.871 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003285/0.6331, allocations: 2.398 MB / 1.009 GB, free: 4.465 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003338/0.6365, allocations: 2.444 MB / 1.012 GB, free: 2.012 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0006017/0.6371, allocations: 368 kB / 1.012 GB, free: 1.652 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001905/0.639, allocations: 1.045 MB / 1.013 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0009941/0.64, allocations: 1.192 MB / 1.014 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.002113/0.6421, allocations: 2.002 MB / 1.016 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.004799/0.6469, allocations: 5.12 MB / 1.021 GB, free: 8.262 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.6469, allocations: 0 / 1.021 GB, free: 8.262 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.643e-06/0.647, allocations: 3.938 kB / 1.021 GB, free: 8.258 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.342e-05/0.647, allocations: 0 / 1.021 GB, free: 8.258 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.009998/0.657, allocations: 4.612 MB / 1.026 GB, free: 3.531 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.6571, allocations: 8.031 kB / 1.026 GB, free: 3.523 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004624/0.6575, allocations: 366.3 kB / 1.026 GB, free: 3.156 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0161/0.6737, allocations: 3.265 MB / 1.029 GB, free: 15.88 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003666/0.6774, allocations: 2.092 MB / 1.031 GB, free: 13.72 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003335/0.6777, allocations: 470 kB / 1.032 GB, free: 13.2 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004417/0.6782, allocations: 232 kB / 1.032 GB, free: 12.97 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01019/0.6884, allocations: 4.806 MB / 1.037 GB, free: 8.016 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.995e-05/0.6884, allocations: 3.938 kB / 1.037 GB, free: 8.012 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003172/0.6887, allocations: 108 kB / 1.037 GB, free: 7.906 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000177/0.6889, allocations: 168.8 kB / 1.037 GB, free: 7.738 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01396/0.7029, allocations: 5.191 MB / 1.042 GB, free: 2.531 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02/0.7229, allocations: 14.49 MB / 1.056 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01034/0.7333, allocations: 3.396 MB / 1.06 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003824/0.7371, allocations: 1.467 MB / 1.061 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001198/0.7373, allocations: 25.2 kB / 1.061 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004172/0.7414, allocations: 1.788 MB / 1.063 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=163): time 3.587e-06/0.7415, allocations: 0 / 1.063 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of matching and sorting (n=250): time 0.1282/0.8697, allocations: 28.22 MB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002256/0.8699, allocations: 0.4889 MB / 1.091 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003375/0.8733, allocations: 2.304 MB / 1.093 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0002482/0.8736, allocations: 77.69 kB / 1.093 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001173/0.8748, allocations: 1.434 MB / 1.095 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007415/0.8755, allocations: 0.8162 MB / 1.095 GB, free: 10.4 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008706/0.8764, allocations: 412.5 kB / 1.096 GB, free: 9.988 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.163e-05/0.8765, allocations: 309.1 kB / 1.096 GB, free: 9.684 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005235/0.8817, allocations: 1.925 MB / 1.098 GB, free: 7.754 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005472/0.8872, allocations: 2.235 MB / 1.1 GB, free: 5.434 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0105/0.8977, allocations: 4.161 MB / 1.104 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/0.8977, allocations: 3.984 kB / 1.104 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01834/0.9161, allocations: 6.536 MB / 1.111 GB, free: 10.5 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 9.646e-05/0.9162, allocations: 148.5 kB / 1.111 GB, free: 10.33 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.651e-05/0.9162, allocations: 4 kB / 1.111 GB, free: 10.32 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009954/0.9262, allocations: 2.953 MB / 1.114 GB, free: 7.359 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002798/0.929, allocations: 487.2 kB / 1.114 GB, free: 6.883 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04186/0.9709, allocations: 18.85 MB / 1.132 GB, free: 3.789 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004194/0.9751, allocations: 327.7 kB / 1.133 GB, free: 3.469 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003995/0.9755, allocations: 91.91 kB / 1.133 GB, free: 3.379 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.001536/0.9771, allocations: 0.7026 MB / 1.134 GB, free: 2.668 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007266/0.9778, allocations: 332.1 kB / 1.134 GB, free: 2.34 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008737/0.9787, allocations: 380.1 kB / 1.134 GB, free: 1.961 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-05/0.9787, allocations: 24 kB / 1.134 GB, free: 1.938 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4e-05/0.9788, allocations: 15.98 kB / 1.134 GB, free: 1.922 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.69e-05/0.9788, allocations: 7.969 kB / 1.134 GB, free: 1.914 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004939/0.9838, allocations: 3.64 MB / 1.138 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.362e-05/0.9838, allocations: 0 / 1.138 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002532/0.9863, allocations: 419.3 kB / 1.138 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01029/0.9966, allocations: 2.888 MB / 1.141 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003458/0.997, allocations: 51.97 kB / 1.141 GB, free: 10.86 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04041/1.037, allocations: 18.62 MB / 1.159 GB, free: 7.934 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/1.037, allocations: 0 / 1.159 GB, free: 7.934 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01829/1.056, allocations: 6.174 MB / 1.165 GB, free: 1.723 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001583/1.057, allocations: 0.6962 MB / 1.166 GB, free: 1.004 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007754/1.058, allocations: 55.92 kB / 1.166 GB, free: 0.9492 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003459/1.062, allocations: 315.6 kB / 1.166 GB, free: 0.6406 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001155/1.063, allocations: 358.7 kB / 1.167 GB, free: 300 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002212/1.063, allocations: 67.97 kB / 1.167 GB, free: 232 kB / 0.92 GB Notification: Performance of sorting global known variables: time 0.002442/1.065, allocations: 1.54 MB / 1.168 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.51e-07/1.066, allocations: 0 / 1.168 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.003363/1.069, allocations: 1.043 MB / 1.169 GB, free: 13.64 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.01845/1.087, allocations: 6.811 MB / 1.176 GB, free: 6.793 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0261/1.113, allocations: 7.297 MB / 1.183 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/1.114, allocations: 0 / 1.183 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.01754/1.131, allocations: 4.056 MB / 1.187 GB, free: 11.31 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006021/1.137, allocations: 1.129 MB / 1.188 GB, free: 10.22 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07912/1.216, allocations: 36.91 MB / 1.224 GB, free: 3.23 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002222/1.219, allocations: 2.231 MB / 1.226 GB, free: 0.9688 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.002422/1.221, allocations: 0.5099 MB / 1.227 GB, free: 464 kB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001771/1.223, allocations: 1.339 MB / 1.228 GB, free: 15.11 MB / 0.9981 GB Notification: Performance of SimCode: time 6.71e-07/1.223, allocations: 0 / 1.228 GB, free: 15.11 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5831/1.806, allocations: 104.2 MB / 1.33 GB, free: 243.6 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.83/17.64, allocations: 7.438 kB / 1.33 GB, free: 243.6 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)