Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.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.AC.OnePhase.Lines.Examples.ACLine_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_L",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.00434/0.00434, allocations: 95.02 kB / 15.73 MB, free: 6.039 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.001038/0.001038, allocations: 196.2 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.189/1.189, allocations: 222.9 MB / 240.4 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001948/0.001948, allocations: 293.3 kB / 290.8 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8426/0.8426, allocations: 169.2 MB / 0.4983 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 91.86 kB / 0.681 GB, free: 7.465 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3273/0.3288, allocations: 86.97 MB / 0.7659 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.006794/0.3357, allocations: 6.093 MB / 0.7719 GB, free: 13.76 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.004221/0.3399, allocations: 3.141 MB / 0.7749 GB, free: 10.61 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000248/0.3402, allocations: 27.81 kB / 0.7749 GB, free: 10.58 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002011/0.3422, allocations: 0.9297 MB / 0.7759 GB, free: 9.648 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0007574/0.343, allocations: 497.5 kB / 0.7763 GB, free: 9.16 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008424/0.3438, allocations: 482.8 kB / 0.7768 GB, free: 8.688 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0008655/0.3447, allocations: 1.096 MB / 0.7779 GB, free: 7.586 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006991/0.3454, allocations: 0.6347 MB / 0.7785 GB, free: 6.953 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000397/0.3458, allocations: 450.3 kB / 0.7789 GB, free: 6.512 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004424/0.3463, allocations: 470.2 kB / 0.7794 GB, free: 6.051 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 6.873e-05/0.3463, allocations: 56 kB / 0.7794 GB, free: 5.996 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005729/0.3469, allocations: 487 kB / 0.7799 GB, free: 5.52 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002107/0.3471, allocations: 283.3 kB / 0.7801 GB, free: 5.242 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003237/0.3475, allocations: 409.9 kB / 0.7805 GB, free: 4.84 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001005/0.3485, allocations: 1.176 MB / 0.7817 GB, free: 3.664 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.3485, allocations: 0 / 0.7817 GB, free: 3.664 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.072e-06/0.3485, allocations: 0 / 0.7817 GB, free: 3.664 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.167e-05/0.3485, allocations: 0 / 0.7817 GB, free: 3.664 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001332/0.3499, allocations: 1.078 MB / 0.7827 GB, free: 2.531 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.3499, allocations: 12.03 kB / 0.7827 GB, free: 2.52 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001138/0.35, allocations: 114.7 kB / 0.7829 GB, free: 2.398 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001383/0.3514, allocations: 228.1 kB / 0.7831 GB, free: 2.176 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007893/0.3522, allocations: 0.5771 MB / 0.7836 GB, free: 1.562 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.978e-05/0.3522, allocations: 53.67 kB / 0.7837 GB, free: 1.512 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.089e-05/0.3523, allocations: 64.31 kB / 0.7837 GB, free: 1.449 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001181/0.3535, allocations: 1.037 MB / 0.7848 GB, free: 312 kB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.425e-05/0.3536, allocations: 7.938 kB / 0.7848 GB, free: 304 kB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.79e-05/0.3536, allocations: 27.98 kB / 0.7848 GB, free: 276 kB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.529e-05/0.3537, allocations: 69.27 kB / 0.7849 GB, free: 208 kB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009146/0.3546, allocations: 0.6957 MB / 0.7855 GB, free: 15.51 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004153/0.3588, allocations: 5.741 MB / 0.7911 GB, free: 9.332 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007249/0.3595, allocations: 0.6003 MB / 0.7917 GB, free: 8.688 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007137/0.3602, allocations: 435 kB / 0.7922 GB, free: 8.262 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.49e-05/0.3603, allocations: 4 kB / 0.7922 GB, free: 8.258 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/0.3603, allocations: 34.56 kB / 0.7922 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=41): time 1.443e-06/0.3603, allocations: 0 / 0.7922 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42): time 0.003736/0.3641, allocations: 2.032 MB / 0.7942 GB, free: 6.09 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.029e-05/0.3641, allocations: 55.41 kB / 0.7942 GB, free: 6.023 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003912/0.3645, allocations: 462.7 kB / 0.7947 GB, free: 5.562 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.3645, allocations: 33.7 kB / 0.7947 GB, free: 5.523 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000204/0.3648, allocations: 392.1 kB / 0.7951 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/0.3649, allocations: 158.6 kB / 0.7952 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001345/0.365, allocations: 110.3 kB / 0.7953 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001202/0.3651, allocations: 370.8 kB / 0.7957 GB, free: 4.496 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003073/0.3654, allocations: 241.2 kB / 0.7959 GB, free: 4.262 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004116/0.3659, allocations: 449 kB / 0.7963 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007863/0.3666, allocations: 0.7448 MB / 0.7971 GB, free: 2.887 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3667, allocations: 7.938 kB / 0.7971 GB, free: 2.879 MB / 0.5606 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001597/0.3683, allocations: 1.047 MB / 0.7981 GB, free: 1.812 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.3683, allocations: 12.16 kB / 0.7981 GB, free: 1.801 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.3683, allocations: 7.938 kB / 0.7981 GB, free: 1.793 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000889/0.3692, allocations: 319.1 kB / 0.7984 GB, free: 1.469 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002782/0.3695, allocations: 95.88 kB / 0.7985 GB, free: 1.375 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006128/0.3756, allocations: 7.478 MB / 0.8058 GB, free: 9.332 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003279/0.376, allocations: 32.02 kB / 0.8058 GB, free: 9.301 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.615e-05/0.376, allocations: 28 kB / 0.8059 GB, free: 9.273 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002525/0.3763, allocations: 242.3 kB / 0.8061 GB, free: 9.027 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.337e-05/0.3764, allocations: 67.56 kB / 0.8062 GB, free: 8.961 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001484/0.3778, allocations: 0.8886 MB / 0.807 GB, free: 8.047 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.3779, allocations: 4 kB / 0.807 GB, free: 8.043 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3779, allocations: 4 kB / 0.807 GB, free: 8.039 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.3779, allocations: 4.172 kB / 0.807 GB, free: 8.035 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002298/0.3802, allocations: 1.689 MB / 0.8087 GB, free: 6.258 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.3802, allocations: 4 kB / 0.8087 GB, free: 6.254 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001559/0.3804, allocations: 39.91 kB / 0.8087 GB, free: 6.215 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008139/0.3812, allocations: 311.2 kB / 0.809 GB, free: 5.898 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.69e-05/0.3812, allocations: 11.98 kB / 0.809 GB, free: 5.887 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006183/0.3874, allocations: 7.459 MB / 0.8163 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.3874, allocations: 7.938 kB / 0.8163 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001411/0.3888, allocations: 0.9919 MB / 0.8173 GB, free: 12.82 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002178/0.3891, allocations: 172.7 kB / 0.8175 GB, free: 12.63 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.056e-05/0.3891, allocations: 8 kB / 0.8175 GB, free: 12.62 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002605/0.3894, allocations: 27.91 kB / 0.8175 GB, free: 12.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.052e-05/0.3895, allocations: 47.88 kB / 0.8176 GB, free: 12.55 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.307e-05/0.3895, allocations: 12 kB / 0.8176 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002709/0.3898, allocations: 306.9 kB / 0.8179 GB, free: 12.24 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.91e-07/0.3898, allocations: 0 / 0.8179 GB, free: 12.24 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0006055/0.3904, allocations: 192 kB / 0.818 GB, free: 12.05 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001682/0.3921, allocations: 1.556 MB / 0.8196 GB, free: 10.44 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001606/0.3937, allocations: 1.196 MB / 0.8207 GB, free: 9.191 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3937, allocations: 0 / 0.8207 GB, free: 9.191 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001072/0.3948, allocations: 0.8695 MB / 0.8216 GB, free: 8.27 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008859/0.3957, allocations: 205 kB / 0.8218 GB, free: 8.086 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006636/0.4023, allocations: 5.839 MB / 0.8275 GB, free: 1.918 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004956/0.4028, allocations: 0.992 MB / 0.8284 GB, free: 0.8984 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002165/0.4031, allocations: 105.2 kB / 0.8285 GB, free: 0.793 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002302/0.4033, allocations: 223.4 kB / 0.8288 GB, free: 0.5742 MB / 0.5919 GB Notification: Performance of SimCode: time 2.3e-07/0.4033, allocations: 0 / 0.8288 GB, free: 0.5742 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03899/0.4423, allocations: 15.28 MB / 0.8437 GB, free: 1.566 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.965/9.407, allocations: 12.77 kB / 0.8437 GB, free: 1.559 MB / 0.6075 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1)