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.006485/0.006485, allocations: 101.1 kB / 15.73 MB, free: 6.035 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.001636/0.001636, allocations: 186.8 kB / 16.67 MB, free: 5.973 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 4.148 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.373/2.373, allocations: 390.2 MB / 0.6648 GB, free: 192 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 58.47 kB / 0.9504 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2323/0.2335, allocations: 140.4 MB / 1.087 GB, free: 1.977 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02257/0.2561, allocations: 22.64 MB / 1.11 GB, free: 11.26 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02377/0.2799, allocations: 17.63 MB / 1.127 GB, free: 9.57 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002637/0.2826, allocations: 115.4 kB / 1.127 GB, free: 9.457 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.01065/0.2933, allocations: 4.167 MB / 1.131 GB, free: 5.281 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.01029/0.3036, allocations: 3.509 MB / 1.134 GB, free: 1.766 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003641/0.3072, allocations: 1.31 MB / 1.136 GB, free: 468 kB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.01068/0.3179, allocations: 5.793 MB / 1.141 GB, free: 10.65 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009069/0.3271, allocations: 3.597 MB / 1.145 GB, free: 6.977 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006428/0.3335, allocations: 2.402 MB / 1.147 GB, free: 4.566 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005941/0.3395, allocations: 2.455 MB / 1.15 GB, free: 2.102 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.001253/0.3408, allocations: 368 kB / 1.15 GB, free: 1.742 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002768/0.3436, allocations: 1.034 MB / 1.151 GB, free: 0.707 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.001559/0.3452, allocations: 1.196 MB / 1.152 GB, free: 15.51 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0035/0.3487, allocations: 2.002 MB / 1.154 GB, free: 13.5 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.006155/0.3549, allocations: 5.175 MB / 1.159 GB, free: 8.305 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/0.3549, allocations: 0 / 1.159 GB, free: 8.305 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.863e-06/0.3549, allocations: 7.938 kB / 1.159 GB, free: 8.297 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0001509/0.3551, allocations: 0 / 1.159 GB, free: 8.297 MB / 0.92 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.01101/0.3661, allocations: 4.605 MB / 1.164 GB, free: 3.578 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.3661, allocations: 16.03 kB / 1.164 GB, free: 3.562 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005163/0.3667, allocations: 358.3 kB / 1.164 GB, free: 3.203 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01665/0.3833, allocations: 3.258 MB / 1.167 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004737/0.3881, allocations: 2.232 MB / 1.169 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004102/0.3885, allocations: 478 kB / 1.17 GB, free: 13.1 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007658/0.3893, allocations: 232 kB / 1.17 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01176/0.4011, allocations: 4.814 MB / 1.175 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.97e-05/0.4012, allocations: 0 / 1.175 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003705/0.4016, allocations: 108 kB / 1.175 GB, free: 7.809 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002017/0.4018, allocations: 176.8 kB / 1.175 GB, free: 7.633 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01454/0.4163, allocations: 5.194 MB / 1.18 GB, free: 2.422 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02358/0.4399, allocations: 14.39 MB / 1.194 GB, free: 2.867 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01051/0.4505, allocations: 3.396 MB / 1.197 GB, free: 15.46 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004119/0.4546, allocations: 1.463 MB / 1.199 GB, free: 14 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001525/0.4548, allocations: 21.22 kB / 1.199 GB, free: 13.98 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00459/0.4594, allocations: 1.798 MB / 1.201 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=163): time 5.5e-06/0.4595, allocations: 0 / 1.201 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of matching and sorting (n=250): time 0.17/0.6295, allocations: 28.23 MB / 1.228 GB, free: 15.65 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002482/0.6298, allocations: 0.4928 MB / 1.229 GB, free: 15.05 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003468/0.6332, allocations: 2.296 MB / 1.231 GB, free: 12.74 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0005004/0.6338, allocations: 73.7 kB / 1.231 GB, free: 12.66 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001089/0.6349, allocations: 1.434 MB / 1.232 GB, free: 11.21 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008597/0.6357, allocations: 0.8201 MB / 1.233 GB, free: 10.38 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008869/0.6366, allocations: 424.5 kB / 1.234 GB, free: 9.957 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 9.591e-05/0.6368, allocations: 301.1 kB / 1.234 GB, free: 9.66 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005491/0.6422, allocations: 1.929 MB / 1.236 GB, free: 7.727 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005735/0.648, allocations: 2.231 MB / 1.238 GB, free: 5.41 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01103/0.6591, allocations: 4.154 MB / 1.242 GB, free: 1.121 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.247e-06/0.6591, allocations: 0 / 1.242 GB, free: 1.121 MB / 0.9981 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01946/0.6786, allocations: 6.547 MB / 1.248 GB, free: 10.48 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001115/0.6787, allocations: 152.4 kB / 1.249 GB, free: 10.3 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.9e-05/0.6787, allocations: 4 kB / 1.249 GB, free: 10.3 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01066/0.6894, allocations: 2.93 MB / 1.251 GB, free: 7.359 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003368/0.6928, allocations: 483.2 kB / 1.252 GB, free: 6.887 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5063/1.199, allocations: 18.84 MB / 1.27 GB, free: 151.2 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004173/1.203, allocations: 321.3 kB / 1.271 GB, free: 151.1 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003777/1.204, allocations: 91.52 kB / 1.271 GB, free: 151.1 MB / 1.014 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.001395/1.205, allocations: 0.7029 MB / 1.271 GB, free: 150.7 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000587/1.206, allocations: 334.1 kB / 1.272 GB, free: 150.7 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007496/1.207, allocations: 382.2 kB / 1.272 GB, free: 150.5 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.962e-05/1.207, allocations: 25.25 kB / 1.272 GB, free: 150.5 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.121e-05/1.207, allocations: 8.812 kB / 1.272 GB, free: 150.5 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.108e-05/1.207, allocations: 12.91 kB / 1.272 GB, free: 150.5 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004567/1.211, allocations: 3.618 MB / 1.276 GB, free: 149 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.816e-05/1.211, allocations: 1.703 kB / 1.276 GB, free: 149 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002627/1.214, allocations: 420 kB / 1.276 GB, free: 149 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01016/1.224, allocations: 2.871 MB / 1.279 GB, free: 148.5 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003827/1.224, allocations: 47.33 kB / 1.279 GB, free: 148.5 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03759/1.262, allocations: 18.63 MB / 1.297 GB, free: 139.5 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/1.262, allocations: 0 / 1.297 GB, free: 139.5 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01727/1.279, allocations: 6.173 MB / 1.303 GB, free: 137.5 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001643/1.281, allocations: 0.6976 MB / 1.304 GB, free: 137 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005024/1.282, allocations: 43.91 kB / 1.304 GB, free: 137 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003197/1.285, allocations: 311.7 kB / 1.304 GB, free: 136.9 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001166/1.286, allocations: 361.1 kB / 1.304 GB, free: 136.9 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002105/1.286, allocations: 70.97 kB / 1.305 GB, free: 136.8 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.00173/1.288, allocations: 1.535 MB / 1.306 GB, free: 136.3 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.21e-07/1.288, allocations: 0 / 1.306 GB, free: 136.3 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.002532/1.29, allocations: 1.046 MB / 1.307 GB, free: 136.2 MB / 1.014 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.01692/1.307, allocations: 6.811 MB / 1.314 GB, free: 133.4 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.02234/1.33, allocations: 6.475 MB / 1.32 GB, free: 129.9 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/1.33, allocations: 3.969 kB / 1.32 GB, free: 129.9 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.01692/1.347, allocations: 4.058 MB / 1.324 GB, free: 126.9 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004357/1.351, allocations: 1.139 MB / 1.325 GB, free: 125.9 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0625/1.414, allocations: 31.84 MB / 1.356 GB, free: 93.6 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001404/1.415, allocations: 2.234 MB / 1.358 GB, free: 91.34 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001973/1.417, allocations: 0.5069 MB / 1.359 GB, free: 90.83 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001332/1.418, allocations: 1.339 MB / 1.36 GB, free: 89.49 MB / 1.014 GB Notification: Performance of SimCode: time 7.72e-07/1.418, allocations: 0 / 1.36 GB, free: 89.49 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.619/5.037, allocations: 102.7 MB / 1.461 GB, free: 3.777 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.51/27.54, allocations: 8.531 kB / 1.461 GB, free: 3.77 MB / 1.029 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)