Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_8_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.00104/0.00104, allocations: 109.4 kB / 15.69 MB, free: 128 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.001097/0.001097, allocations: 189.3 kB / 16.62 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.349/1.349, allocations: 205.1 MB / 222.5 MB, free: 4.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.636/1.636, allocations: 292.3 MB / 0.549 GB, free: 12.75 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002731/0.002731, allocations: 70.16 kB / 0.6718 GB, free: 26.17 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2362, allocations: 114.5 MB / 0.7836 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.0228/0.2591, allocations: 22.44 MB / 0.8055 GB, free: 6.723 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.02368/0.2828, allocations: 17.73 MB / 0.8229 GB, free: 4.938 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003423/0.2863, allocations: 123.3 kB / 0.823 GB, free: 4.816 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.0102/0.2966, allocations: 4.154 MB / 0.827 GB, free: 0.6562 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.0103/0.3069, allocations: 3.526 MB / 0.8305 GB, free: 13.12 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.003733/0.3107, allocations: 1.302 MB / 0.8317 GB, free: 11.82 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.009045/0.3197, allocations: 5.784 MB / 0.8374 GB, free: 6.016 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006013/0.3258, allocations: 3.604 MB / 0.8409 GB, free: 2.34 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005192/0.331, allocations: 2.402 MB / 0.8433 GB, free: 15.93 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005179/0.3362, allocations: 2.448 MB / 0.8456 GB, free: 13.47 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.001322/0.3376, allocations: 368 kB / 0.846 GB, free: 13.11 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00282/0.3404, allocations: 1.037 MB / 0.847 GB, free: 12.07 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.001358/0.3418, allocations: 1.196 MB / 0.8482 GB, free: 10.88 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.003136/0.3449, allocations: 1.998 MB / 0.8501 GB, free: 8.867 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.006623/0.3516, allocations: 5.182 MB / 0.8552 GB, free: 3.668 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3516, allocations: 0 / 0.8552 GB, free: 3.668 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.833e-06/0.3516, allocations: 0 / 0.8552 GB, free: 3.668 MB / 0.67 GB Notification: Performance of Transformations before backend: time 0.0001411/0.3518, allocations: 7.938 kB / 0.8552 GB, free: 3.66 MB / 0.67 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.01118/0.363, allocations: 4.608 MB / 0.8597 GB, free: 14.94 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.363, allocations: 8.031 kB / 0.8597 GB, free: 14.93 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005984/0.3636, allocations: 370.3 kB / 0.8601 GB, free: 14.56 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01604/0.3797, allocations: 3.257 MB / 0.8632 GB, free: 11.29 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004789/0.3845, allocations: 2.228 MB / 0.8654 GB, free: 8.996 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004377/0.385, allocations: 466 kB / 0.8659 GB, free: 8.477 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008292/0.3858, allocations: 236 kB / 0.8661 GB, free: 8.246 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01193/0.3978, allocations: 4.814 MB / 0.8708 GB, free: 3.289 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.043e-05/0.3978, allocations: 0 / 0.8708 GB, free: 3.289 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004001/0.3983, allocations: 104 kB / 0.8709 GB, free: 3.188 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002177/0.3985, allocations: 172.8 kB / 0.871 GB, free: 3.016 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01454/0.413, allocations: 5.198 MB / 0.8761 GB, free: 13.8 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02273/0.4358, allocations: 14.39 MB / 0.8902 GB, free: 14.23 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009879/0.4457, allocations: 3.398 MB / 0.8935 GB, free: 10.83 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003778/0.4495, allocations: 1.471 MB / 0.8949 GB, free: 9.359 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001467/0.4497, allocations: 21.3 kB / 0.895 GB, free: 9.336 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004378/0.4541, allocations: 1.79 MB / 0.8967 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=163): time 5.05e-06/0.4541, allocations: 0 / 0.8967 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of matching and sorting (n=250): time 0.5442/0.9984, allocations: 28.21 MB / 0.9243 GB, free: 128.2 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001503/0.9985, allocations: 0.4892 MB / 0.9247 GB, free: 127.6 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00319/1.002, allocations: 2.301 MB / 0.927 GB, free: 126.8 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0004276/1.002, allocations: 78.69 kB / 0.9271 GB, free: 126.7 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.001096/1.003, allocations: 1.432 MB / 0.9284 GB, free: 125.6 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007926/1.004, allocations: 0.821 MB / 0.9293 GB, free: 125 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008774/1.005, allocations: 418.9 kB / 0.9297 GB, free: 124.8 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 5.844e-05/1.005, allocations: 312 kB / 0.9299 GB, free: 124.5 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005097/1.01, allocations: 1.925 MB / 0.9318 GB, free: 123.9 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005179/1.015, allocations: 2.234 MB / 0.934 GB, free: 123.1 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01043/1.026, allocations: 4.158 MB / 0.9381 GB, free: 121.4 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.219e-05/1.026, allocations: 2.906 kB / 0.9381 GB, free: 121.4 MB / 0.7325 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01911/1.045, allocations: 6.536 MB / 0.9445 GB, free: 119.2 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 9.064e-05/1.045, allocations: 146.4 kB / 0.9446 GB, free: 119 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.105e-05/1.045, allocations: 9.375 kB / 0.9446 GB, free: 119 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009502/1.055, allocations: 2.93 MB / 0.9475 GB, free: 118.4 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002752/1.057, allocations: 481.5 kB / 0.9479 GB, free: 118.4 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03443/1.092, allocations: 18.85 MB / 0.9663 GB, free: 107.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003926/1.096, allocations: 318.8 kB / 0.9666 GB, free: 107.1 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002886/1.096, allocations: 88.94 kB / 0.9667 GB, free: 107.1 MB / 0.7325 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.001313/1.097, allocations: 0.7063 MB / 0.9674 GB, free: 106.6 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004812/1.098, allocations: 335.9 kB / 0.9677 GB, free: 106.5 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005194/1.098, allocations: 374.5 kB / 0.9681 GB, free: 106.2 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.298e-05/1.098, allocations: 27.61 kB / 0.9681 GB, free: 106.2 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.195e-05/1.099, allocations: 13.66 kB / 0.9681 GB, free: 106.2 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.645e-05/1.099, allocations: 11.95 kB / 0.9681 GB, free: 106.1 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003402/1.102, allocations: 3.631 MB / 0.9717 GB, free: 103.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.165e-06/1.102, allocations: 0 / 0.9717 GB, free: 103.8 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002238/1.104, allocations: 422.5 kB / 0.9721 GB, free: 103.6 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008445/1.113, allocations: 2.868 MB / 0.9749 GB, free: 102.3 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002921/1.113, allocations: 53.41 kB / 0.9749 GB, free: 102.3 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03158/1.145, allocations: 18.62 MB / 0.9931 GB, free: 83.5 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/1.145, allocations: 0 / 0.9931 GB, free: 83.5 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01606/1.161, allocations: 6.177 MB / 0.9992 GB, free: 77.29 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001751/1.162, allocations: 0.6961 MB / 0.9998 GB, free: 76.57 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006465/1.163, allocations: 44 kB / 0.9999 GB, free: 76.53 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003115/1.166, allocations: 311.6 kB / 1 GB, free: 76.22 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001115/1.167, allocations: 363.7 kB / 1.001 GB, free: 75.87 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001995/1.168, allocations: 71.97 kB / 1.001 GB, free: 75.8 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001826/1.169, allocations: 1.532 MB / 1.002 GB, free: 74.27 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/1.169, allocations: 0 / 1.002 GB, free: 74.27 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002953/1.172, allocations: 1.051 MB / 1.003 GB, free: 73.22 MB / 0.7325 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.01596/1.188, allocations: 6.802 MB / 1.01 GB, free: 66.38 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.02106/1.209, allocations: 6.472 MB / 1.016 GB, free: 59.8 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 9.548e-06/1.21, allocations: 4 kB / 1.016 GB, free: 59.8 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.01586/1.225, allocations: 4.049 MB / 1.02 GB, free: 55.73 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00474/1.23, allocations: 1.142 MB / 1.021 GB, free: 54.67 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06197/1.292, allocations: 31.84 MB / 1.052 GB, free: 22.38 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001557/1.294, allocations: 2.231 MB / 1.054 GB, free: 20.12 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.002075/1.296, allocations: 0.5063 MB / 1.055 GB, free: 19.63 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001335/1.297, allocations: 1.343 MB / 1.056 GB, free: 18.29 MB / 0.7325 GB Notification: Performance of SimCode: time 7.22e-07/1.297, allocations: 0 / 1.056 GB, free: 18.29 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1569/1.454, allocations: 101.5 MB / 1.155 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.51/19.97, allocations: 1.625 kB / 1.155 GB, free: 13.94 MB / 0.8262 GB (rm -f Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.csv --start-time 0 --stop-time 4000 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)