Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="BuildingSystems_BuildingSystems_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.006769/0.006769, allocations: 101 kB / 15.73 MB, free: 6.059 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.001726/0.001726, allocations: 197.3 kB / 16.68 MB, free: 5.969 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002576/0.002577, allocations: 288.7 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9972/0.9972, allocations: 169.2 MB / 0.4983 GB, free: 4.406 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002645/0.002645, allocations: 87.86 kB / 0.681 GB, free: 7.418 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4158/0.4185, allocations: 86.99 MB / 0.7659 GB, free: 3.824 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02775/0.4463, allocations: 22.62 MB / 0.788 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02844/0.4748, allocations: 17.63 MB / 0.8053 GB, free: 11.43 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002547/0.4774, allocations: 115.4 kB / 0.8054 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.01035/0.4877, allocations: 4.176 MB / 0.8094 GB, free: 7.137 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01008/0.4978, allocations: 3.501 MB / 0.8129 GB, free: 3.637 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003099/0.5009, allocations: 1.324 MB / 0.8142 GB, free: 2.316 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.008124/0.5091, allocations: 5.788 MB / 0.8198 GB, free: 12.51 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004963/0.5141, allocations: 3.584 MB / 0.8233 GB, free: 8.855 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004048/0.5181, allocations: 2.414 MB / 0.8257 GB, free: 6.434 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004627/0.5228, allocations: 2.444 MB / 0.828 GB, free: 3.98 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0008075/0.5236, allocations: 368 kB / 0.8284 GB, free: 3.621 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002879/0.5265, allocations: 1.037 MB / 0.8294 GB, free: 2.582 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.00158/0.5281, allocations: 1.196 MB / 0.8306 GB, free: 1.383 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.003452/0.5315, allocations: 1.998 MB / 0.8325 GB, free: 15.37 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.007823/0.5394, allocations: 5.204 MB / 0.8376 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.5394, allocations: 0 / 0.8376 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.305e-06/0.5394, allocations: 0 / 0.8376 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001693/0.5396, allocations: 0 / 0.8376 GB, free: 10.15 MB / 0.6075 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.01053/0.5501, allocations: 4.726 MB / 0.8422 GB, free: 5.309 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.5502, allocations: 8.031 kB / 0.8422 GB, free: 5.301 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005021/0.5507, allocations: 362.3 kB / 0.8426 GB, free: 4.938 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0162/0.5669, allocations: 3.283 MB / 0.8458 GB, free: 1.648 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004963/0.5719, allocations: 2.254 MB / 0.848 GB, free: 15.32 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004537/0.5724, allocations: 470 kB / 0.8484 GB, free: 14.8 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006061/0.573, allocations: 232 kB / 0.8487 GB, free: 14.57 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01105/0.5841, allocations: 4.814 MB / 0.8534 GB, free: 9.613 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.407e-05/0.5841, allocations: 3.828 kB / 0.8534 GB, free: 9.613 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003192/0.5845, allocations: 103.9 kB / 0.8535 GB, free: 9.512 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002028/0.5847, allocations: 168.8 kB / 0.8536 GB, free: 9.344 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01388/0.5985, allocations: 5.198 MB / 0.8587 GB, free: 4.129 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02254/0.6211, allocations: 14.42 MB / 0.8728 GB, free: 4.539 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01003/0.6312, allocations: 3.381 MB / 0.8761 GB, free: 1.152 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003772/0.635, allocations: 1.475 MB / 0.8775 GB, free: 15.68 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001318/0.6351, allocations: 25.28 kB / 0.8775 GB, free: 15.65 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00436/0.6395, allocations: 1.791 MB / 0.8793 GB, free: 13.8 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=163): time 3.386e-06/0.6395, allocations: 4 kB / 0.8793 GB, free: 13.79 MB / 0.6544 GB Notification: Performance of matching and sorting (n=250): time 0.1298/0.7693, allocations: 28.3 MB / 0.9069 GB, free: 1.273 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003117/0.7697, allocations: 0.4928 MB / 0.9074 GB, free: 0.6719 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003218/0.7729, allocations: 2.3 MB / 0.9097 GB, free: 14.36 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0002906/0.7732, allocations: 77.7 kB / 0.9097 GB, free: 14.28 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.001371/0.7746, allocations: 1.452 MB / 0.9112 GB, free: 12.81 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008693/0.7754, allocations: 0.8675 MB / 0.912 GB, free: 11.94 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009021/0.7764, allocations: 408.6 kB / 0.9124 GB, free: 11.53 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001371/0.7765, allocations: 309.1 kB / 0.9127 GB, free: 11.23 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005411/0.7819, allocations: 1.925 MB / 0.9146 GB, free: 9.297 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005746/0.7877, allocations: 2.239 MB / 0.9168 GB, free: 6.973 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01085/0.7985, allocations: 4.158 MB / 0.9208 GB, free: 2.68 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/0.7986, allocations: 4 kB / 0.9208 GB, free: 2.676 MB / 0.6856 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01915/0.8177, allocations: 6.549 MB / 0.9272 GB, free: 12.04 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 0.00012/0.8179, allocations: 148.5 kB / 0.9274 GB, free: 11.86 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.973e-05/0.8179, allocations: 7.984 kB / 0.9274 GB, free: 11.85 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01021/0.8281, allocations: 2.93 MB / 0.9302 GB, free: 8.922 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002777/0.8309, allocations: 487.2 kB / 0.9307 GB, free: 8.445 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04142/0.8723, allocations: 18.86 MB / 0.9491 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003835/0.8762, allocations: 319.6 kB / 0.9494 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000278/0.8765, allocations: 95.91 kB / 0.9495 GB, free: 4.926 MB / 0.7169 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.001435/0.8779, allocations: 0.7026 MB / 0.9502 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005695/0.8785, allocations: 341.9 kB / 0.9505 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007918/0.8793, allocations: 388.1 kB / 0.9509 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.986e-05/0.8793, allocations: 24 kB / 0.9509 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.461e-05/0.8794, allocations: 12 kB / 0.9509 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.26e-05/0.8794, allocations: 15.94 kB / 0.9509 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004755/0.8842, allocations: 3.62 MB / 0.9545 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/0.8842, allocations: 0 / 0.9545 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002433/0.8866, allocations: 423.3 kB / 0.9549 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009809/0.8965, allocations: 2.865 MB / 0.9577 GB, free: 12.47 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003053/0.8968, allocations: 51.97 kB / 0.9577 GB, free: 12.42 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3481/1.245, allocations: 18.62 MB / 0.9759 GB, free: 184.6 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/1.245, allocations: 2.406 kB / 0.9759 GB, free: 184.6 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01656/1.262, allocations: 6.193 MB / 0.982 GB, free: 182.8 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001264/1.263, allocations: 0.7186 MB / 0.9827 GB, free: 182.5 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004583/1.263, allocations: 52.08 kB / 0.9827 GB, free: 182.5 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002923/1.266, allocations: 308.4 kB / 0.983 GB, free: 182.5 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001096/1.267, allocations: 354.9 kB / 0.9833 GB, free: 182.4 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001904/1.267, allocations: 72.22 kB / 0.9834 GB, free: 182.3 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.00175/1.269, allocations: 1.534 MB / 0.9849 GB, free: 181.8 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/1.269, allocations: 0 / 0.9849 GB, free: 181.8 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002044/1.271, allocations: 1.04 MB / 0.9859 GB, free: 181.7 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.01545/1.287, allocations: 6.828 MB / 0.9926 GB, free: 179.3 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.02005/1.307, allocations: 6.481 MB / 0.9989 GB, free: 176.6 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 7.173e-06/1.307, allocations: 2.469 kB / 0.9989 GB, free: 176.6 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.01493/1.322, allocations: 4.072 MB / 1.003 GB, free: 173.1 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004019/1.326, allocations: 1.151 MB / 1.004 GB, free: 172 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05642/1.382, allocations: 31.96 MB / 1.035 GB, free: 139.8 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00132/1.384, allocations: 2.235 MB / 1.037 GB, free: 137.5 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001835/1.385, allocations: 0.5147 MB / 1.038 GB, free: 137 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001336/1.387, allocations: 1.339 MB / 1.039 GB, free: 135.6 MB / 0.7325 GB Notification: Performance of SimCode: time 1.052e-06/1.387, allocations: 0 / 1.039 GB, free: 135.6 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1354/1.522, allocations: 102.8 MB / 1.14 GB, free: 34.07 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.14/20.66, allocations: 3.562 kB / 1.14 GB, free: 34.07 MB / 0.7325 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized_res.csv --start-time 0 --stop-time 4000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.6 BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)