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.00716/0.00716, allocations: 96.34 kB / 15.73 MB, free: 6.055 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.001877/0.001877, allocations: 202.7 kB / 16.68 MB, free: 5.977 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.426/1.426, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002493/0.002493, allocations: 278.6 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.043/1.043, allocations: 178.6 MB / 0.5074 GB, free: 4.477 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002707/0.002707, allocations: 99.84 kB / 0.6943 GB, free: 3.59 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4441/0.4469, allocations: 89.14 MB / 0.7814 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02833/0.4752, allocations: 22.63 MB / 0.8035 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02914/0.5044, allocations: 17.63 MB / 0.8207 GB, free: 192 kB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00337/0.5078, allocations: 110.6 kB / 0.8208 GB, free: 156 kB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0115/0.5194, allocations: 4.17 MB / 0.8249 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.01124/0.5306, allocations: 3.515 MB / 0.8283 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003602/0.5342, allocations: 1.315 MB / 0.8296 GB, free: 9.09 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.008643/0.5429, allocations: 5.786 MB / 0.8352 GB, free: 5.73 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005078/0.548, allocations: 3.59 MB / 0.8387 GB, free: 3.68 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004499/0.5525, allocations: 2.409 MB / 0.8411 GB, free: 1.918 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004673/0.5572, allocations: 2.444 MB / 0.8435 GB, free: 15.46 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0007921/0.558, allocations: 372 kB / 0.8438 GB, free: 15.1 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0024/0.5604, allocations: 1.034 MB / 0.8448 GB, free: 14.07 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.001283/0.5617, allocations: 1.196 MB / 0.846 GB, free: 12.87 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.002675/0.5644, allocations: 1.994 MB / 0.848 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.006901/0.5713, allocations: 5.207 MB / 0.853 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.5713, allocations: 0 / 0.853 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.432e-06/0.5713, allocations: 0 / 0.853 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001013/0.5714, allocations: 0 / 0.853 GB, free: 5.637 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.01144/0.5829, allocations: 4.73 MB / 0.8577 GB, free: 0.7891 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.5829, allocations: 8.031 kB / 0.8577 GB, free: 0.7812 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005788/0.5835, allocations: 366.3 kB / 0.858 GB, free: 424 kB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0173/0.6008, allocations: 3.287 MB / 0.8612 GB, free: 13.12 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00494/0.6058, allocations: 2.254 MB / 0.8634 GB, free: 10.8 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004758/0.6063, allocations: 466 kB / 0.8639 GB, free: 10.28 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007038/0.607, allocations: 232 kB / 0.8641 GB, free: 10.05 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01236/0.6194, allocations: 4.81 MB / 0.8688 GB, free: 5.094 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.017e-05/0.6195, allocations: 3.938 kB / 0.8688 GB, free: 5.09 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003567/0.6198, allocations: 107.9 kB / 0.8689 GB, free: 4.984 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002225/0.6201, allocations: 172.8 kB / 0.8691 GB, free: 4.812 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0152/0.6353, allocations: 5.191 MB / 0.8741 GB, free: 15.61 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02302/0.6583, allocations: 14.42 MB / 0.8882 GB, free: 16 kB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01076/0.6691, allocations: 3.402 MB / 0.8915 GB, free: 12.61 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004134/0.6733, allocations: 1.467 MB / 0.893 GB, free: 11.13 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001442/0.6734, allocations: 25.2 kB / 0.893 GB, free: 11.11 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004748/0.6782, allocations: 1.798 MB / 0.8948 GB, free: 9.246 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=163): time 3.377e-06/0.6782, allocations: 0 / 0.8948 GB, free: 9.246 MB / 0.6544 GB Notification: Performance of matching and sorting (n=250): time 0.1405/0.8187, allocations: 28.3 MB / 0.9224 GB, free: 12.73 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003149/0.8191, allocations: 0.4889 MB / 0.9229 GB, free: 12.13 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003529/0.8226, allocations: 2.296 MB / 0.9251 GB, free: 9.824 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0003931/0.823, allocations: 77.7 kB / 0.9252 GB, free: 9.742 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.001451/0.8245, allocations: 1.456 MB / 0.9266 GB, free: 8.273 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009996/0.8255, allocations: 0.8636 MB / 0.9274 GB, free: 7.402 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009487/0.8264, allocations: 412.5 kB / 0.9278 GB, free: 6.992 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001355/0.8266, allocations: 309.1 kB / 0.9281 GB, free: 6.688 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005914/0.8325, allocations: 1.925 MB / 0.93 GB, free: 4.758 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006174/0.8387, allocations: 2.239 MB / 0.9322 GB, free: 2.434 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01181/0.8505, allocations: 4.158 MB / 0.9363 GB, free: 14.14 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.079e-05/0.8506, allocations: 4 kB / 0.9363 GB, free: 14.13 MB / 0.7012 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.02021/0.8708, allocations: 6.553 MB / 0.9427 GB, free: 7.488 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001244/0.8709, allocations: 148.5 kB / 0.9428 GB, free: 7.312 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.8709, allocations: 4 kB / 0.9428 GB, free: 7.309 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01076/0.8817, allocations: 2.93 MB / 0.9457 GB, free: 4.379 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00305/0.8848, allocations: 483.2 kB / 0.9461 GB, free: 3.906 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0431/0.9279, allocations: 18.87 MB / 0.9646 GB, free: 0.8008 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004041/0.932, allocations: 323.7 kB / 0.9649 GB, free: 496 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003388/0.9323, allocations: 91.91 kB / 0.9649 GB, free: 404 kB / 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.001524/0.9339, allocations: 0.7026 MB / 0.9656 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006738/0.9345, allocations: 349.8 kB / 0.966 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008131/0.9354, allocations: 388.1 kB / 0.9663 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-05/0.9354, allocations: 24 kB / 0.9664 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.232e-05/0.9354, allocations: 8 kB / 0.9664 GB, free: 14.92 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.173e-05/0.9355, allocations: 11.95 kB / 0.9664 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005015/0.9405, allocations: 3.632 MB / 0.9699 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.424e-05/0.9405, allocations: 0 / 0.9699 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002676/0.9432, allocations: 423.3 kB / 0.9703 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01042/0.9536, allocations: 2.865 MB / 0.9731 GB, free: 7.926 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003771/0.954, allocations: 51.97 kB / 0.9732 GB, free: 7.875 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04251/0.9965, allocations: 18.63 MB / 0.9914 GB, free: 4.949 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.9966, allocations: 0 / 0.9914 GB, free: 4.949 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01981/1.016, allocations: 6.19 MB / 0.9974 GB, free: 14.73 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001901/1.018, allocations: 0.7173 MB / 0.9981 GB, free: 13.99 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006504/1.019, allocations: 47.94 kB / 0.9982 GB, free: 13.94 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003495/1.023, allocations: 315.6 kB / 0.9985 GB, free: 13.63 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001284/1.024, allocations: 358.7 kB / 0.9988 GB, free: 13.29 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000234/1.024, allocations: 67.97 kB / 0.9989 GB, free: 13.22 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.002371/1.026, allocations: 1.536 MB / 1 GB, free: 11.68 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.81e-07/1.026, allocations: 0 / 1 GB, free: 11.68 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.003066/1.03, allocations: 1.043 MB / 1.001 GB, free: 10.64 MB / 0.7637 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.02003/1.05, allocations: 6.819 MB / 1.008 GB, free: 3.777 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.02523/1.075, allocations: 6.48 MB / 1.014 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.57e-05/1.075, allocations: 4 kB / 1.014 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.01902/1.094, allocations: 4.076 MB / 1.018 GB, free: 9.102 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005043/1.099, allocations: 1.136 MB / 1.019 GB, free: 8.016 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07958/1.179, allocations: 31.97 MB / 1.051 GB, free: 7.562 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002193/1.181, allocations: 2.234 MB / 1.053 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.002281/1.183, allocations: 0.506 MB / 1.053 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001935/1.185, allocations: 1.339 MB / 1.055 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of SimCode: time 8.41e-07/1.185, allocations: 4 kB / 1.055 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4834/1.669, allocations: 102.8 MB / 1.155 GB, free: 208.4 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.97/20.64, allocations: 19.16 kB / 1.155 GB, free: 208.4 MB / 0.8262 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)