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.001428/0.001428, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001654/0.001654, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.238/1.238, allocations: 222.9 MB / 239.9 MB, free: 4.523 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.291/2.291, allocations: 437 MB / 0.7101 GB, free: 5.223 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001354, allocations: 71.86 kB / 0.8689 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4762/0.4776, allocations: 151.6 MB / 1.017 GB, free: 2.648 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02058/0.4982, allocations: 22.44 MB / 1.039 GB, free: 12.13 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.02124/0.5194, allocations: 17.45 MB / 1.056 GB, free: 10.62 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002332/0.5218, allocations: 103.4 kB / 1.056 GB, free: 10.52 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.008876/0.5307, allocations: 3.938 MB / 1.06 GB, free: 6.582 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.008115/0.5388, allocations: 3.185 MB / 1.063 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.002655/0.5415, allocations: 1.178 MB / 1.064 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.006304/0.5478, allocations: 5.806 MB / 1.07 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004787/0.5526, allocations: 4.022 MB / 1.074 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003196/0.5558, allocations: 2.448 MB / 1.076 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003518/0.5594, allocations: 2.526 MB / 1.079 GB, free: 3.309 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0008631/0.5602, allocations: 372 kB / 1.079 GB, free: 2.945 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00182/0.5621, allocations: 1.03 MB / 1.08 GB, free: 1.914 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0008932/0.563, allocations: 1.199 MB / 1.081 GB, free: 0.7109 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.001827/0.5648, allocations: 1.998 MB / 1.083 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.00408/0.5689, allocations: 5.171 MB / 1.088 GB, free: 9.516 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.5689, allocations: 0 / 1.088 GB, free: 9.516 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.152e-06/0.5689, allocations: 8 kB / 1.088 GB, free: 9.508 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 3.455e-05/0.5689, allocations: 0 / 1.088 GB, free: 9.508 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.00766/0.5766, allocations: 4.605 MB / 1.093 GB, free: 4.789 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.5767, allocations: 8.031 kB / 1.093 GB, free: 4.781 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003949/0.5771, allocations: 370.3 kB / 1.093 GB, free: 4.41 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01392/0.591, allocations: 3.261 MB / 1.096 GB, free: 1.141 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002797/0.5938, allocations: 2.084 MB / 1.098 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003089/0.5941, allocations: 470 kB / 1.099 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003722/0.5945, allocations: 236 kB / 1.099 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008687/0.6032, allocations: 4.814 MB / 1.104 GB, free: 9.27 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.887e-05/0.6032, allocations: 4 kB / 1.104 GB, free: 9.266 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002805/0.6035, allocations: 108 kB / 1.104 GB, free: 9.16 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001648/0.6037, allocations: 168.8 kB / 1.104 GB, free: 8.992 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01123/0.6149, allocations: 5.198 MB / 1.109 GB, free: 3.777 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01631/0.6313, allocations: 14.46 MB / 1.123 GB, free: 4.148 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008461/0.6397, allocations: 3.392 MB / 1.126 GB, free: 0.7422 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003063/0.6428, allocations: 1.467 MB / 1.128 GB, free: 15.27 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001195/0.6429, allocations: 25.28 kB / 1.128 GB, free: 15.25 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003534/0.6465, allocations: 1.792 MB / 1.13 GB, free: 13.39 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=163): time 2.695e-06/0.6465, allocations: 4 kB / 1.13 GB, free: 13.39 MB / 0.8887 GB Notification: Performance of matching and sorting (n=250): time 0.1099/0.7564, allocations: 28.23 MB / 1.157 GB, free: 0.9297 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000174/0.7566, allocations: 0.4928 MB / 1.158 GB, free: 332 kB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002606/0.7592, allocations: 2.296 MB / 1.16 GB, free: 14.02 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0002052/0.7595, allocations: 73.7 kB / 1.16 GB, free: 13.94 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009639/0.7604, allocations: 1.438 MB / 1.161 GB, free: 12.48 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.00063/0.7611, allocations: 0.8202 MB / 1.162 GB, free: 11.65 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007816/0.7619, allocations: 412.5 kB / 1.162 GB, free: 11.24 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 7.293e-05/0.7619, allocations: 309.1 kB / 1.163 GB, free: 10.94 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004523/0.7665, allocations: 1.925 MB / 1.165 GB, free: 9.008 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004682/0.7712, allocations: 2.235 MB / 1.167 GB, free: 6.688 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008953/0.7801, allocations: 4.158 MB / 1.171 GB, free: 2.395 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.7801, allocations: 0 / 1.171 GB, free: 2.395 MB / 0.92 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01583/0.796, allocations: 6.528 MB / 1.177 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 7.532e-05/0.7961, allocations: 152.5 kB / 1.177 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.233e-05/0.7961, allocations: 4 kB / 1.177 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008927/0.805, allocations: 2.953 MB / 1.18 GB, free: 8.629 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002381/0.8074, allocations: 491.2 kB / 1.181 GB, free: 8.148 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03464/0.8421, allocations: 18.87 MB / 1.199 GB, free: 5.027 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0032/0.8453, allocations: 323.5 kB / 1.199 GB, free: 4.711 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002279/0.8455, allocations: 87.97 kB / 1.2 GB, free: 4.625 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.001088/0.8466, allocations: 0.711 MB / 1.2 GB, free: 3.902 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004597/0.8471, allocations: 332.1 kB / 1.201 GB, free: 3.574 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005338/0.8476, allocations: 384.1 kB / 1.201 GB, free: 3.191 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.426e-05/0.8476, allocations: 24 kB / 1.201 GB, free: 3.168 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.011e-05/0.8476, allocations: 8 kB / 1.201 GB, free: 3.16 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.624e-05/0.8477, allocations: 11.95 kB / 1.201 GB, free: 3.148 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003734/0.8514, allocations: 3.624 MB / 1.205 GB, free: 15.47 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.458e-06/0.8514, allocations: 0 / 1.205 GB, free: 15.47 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002243/0.8537, allocations: 415.3 kB / 1.205 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00874/0.8624, allocations: 2.896 MB / 1.208 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002024/0.8626, allocations: 55.97 kB / 1.208 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03397/0.8966, allocations: 18.63 MB / 1.226 GB, free: 9.184 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.8966, allocations: 0 / 1.226 GB, free: 9.184 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01545/0.9121, allocations: 6.177 MB / 1.232 GB, free: 2.973 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001076/0.9132, allocations: 0.6922 MB / 1.233 GB, free: 2.258 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000479/0.9137, allocations: 55.92 kB / 1.233 GB, free: 2.203 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002848/0.9165, allocations: 307.6 kB / 1.233 GB, free: 1.902 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009541/0.9175, allocations: 354.7 kB / 1.233 GB, free: 1.559 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001999/0.9177, allocations: 79.97 kB / 1.233 GB, free: 1.48 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001668/0.9194, allocations: 1.528 MB / 1.235 GB, free: 15.95 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.61e-07/0.9194, allocations: 0 / 1.235 GB, free: 15.95 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001864/0.9212, allocations: 1.047 MB / 1.236 GB, free: 14.91 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.01599/0.9372, allocations: 6.809 MB / 1.243 GB, free: 8.047 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.02249/0.9597, allocations: 7.289 MB / 1.25 GB, free: 0.668 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.9597, allocations: 0 / 1.25 GB, free: 0.668 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.3539/1.314, allocations: 4.06 MB / 1.254 GB, free: 217.9 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00392/1.318, allocations: 1.135 MB / 1.255 GB, free: 217.8 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06435/1.382, allocations: 38.11 MB / 1.292 GB, free: 199.5 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001357/1.383, allocations: 2.225 MB / 1.294 GB, free: 198.6 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002308/1.386, allocations: 0.514 MB / 1.295 GB, free: 198.5 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001283/1.387, allocations: 1.34 MB / 1.296 GB, free: 197.4 MB / 0.9981 GB Notification: Performance of SimCode: time 5.11e-07/1.387, allocations: 4 kB / 1.296 GB, free: 197.4 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2181/1.605, allocations: 102.8 MB / 1.396 GB, free: 97.53 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000163/1.605, allocations: 234.9 kB / 1.397 GB, free: 97.28 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.505/6.11, allocations: 0 / 1.397 GB, free: 97.28 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)