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.007781/0.007781, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.00204/0.00204, allocations: 193.6 kB / 16.67 MB, free: 5.93 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002569/0.002569, allocations: 289.6 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.018/1.018, allocations: 169.3 MB / 0.4983 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00296/0.00296, allocations: 95.84 kB / 0.681 GB, free: 7.453 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3836/0.3866, allocations: 86.97 MB / 0.7659 GB, free: 3.855 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.008696/0.3953, allocations: 6.086 MB / 0.7718 GB, free: 13.74 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.00532/0.4007, allocations: 3.145 MB / 0.7749 GB, free: 10.59 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003796/0.4011, allocations: 27.81 kB / 0.7749 GB, free: 10.56 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002535/0.4036, allocations: 0.9254 MB / 0.7759 GB, free: 9.633 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001237/0.4049, allocations: 477.5 kB / 0.7763 GB, free: 9.164 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001267/0.4062, allocations: 490.8 kB / 0.7768 GB, free: 8.684 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001399/0.4076, allocations: 1.084 MB / 0.7778 GB, free: 7.594 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009345/0.4085, allocations: 0.6348 MB / 0.7785 GB, free: 6.961 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005789/0.4091, allocations: 446.2 kB / 0.7789 GB, free: 6.523 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006602/0.4098, allocations: 474.2 kB / 0.7793 GB, free: 6.059 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 9.824e-05/0.4099, allocations: 60 kB / 0.7794 GB, free: 6 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000938/0.4108, allocations: 487 kB / 0.7799 GB, free: 5.523 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003142/0.4112, allocations: 287.3 kB / 0.7801 GB, free: 5.242 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004341/0.4116, allocations: 397.9 kB / 0.7805 GB, free: 4.852 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001484/0.4131, allocations: 1.176 MB / 0.7817 GB, free: 3.676 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.922e-06/0.4131, allocations: 3.984 kB / 0.7817 GB, free: 3.672 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.633e-06/0.4131, allocations: 0 / 0.7817 GB, free: 3.672 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.266e-05/0.4132, allocations: 0 / 0.7817 GB, free: 3.672 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.001757/0.4149, allocations: 1.078 MB / 0.7827 GB, free: 2.539 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.415, allocations: 12.03 kB / 0.7827 GB, free: 2.527 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001499/0.4151, allocations: 114.7 kB / 0.7828 GB, free: 2.406 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001526/0.4167, allocations: 224.1 kB / 0.783 GB, free: 2.188 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009223/0.4176, allocations: 0.5849 MB / 0.7836 GB, free: 1.566 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.708e-05/0.4176, allocations: 49.67 kB / 0.7837 GB, free: 1.52 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000116/0.4178, allocations: 64.31 kB / 0.7837 GB, free: 1.457 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001583/0.4194, allocations: 1.034 MB / 0.7847 GB, free: 324 kB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.83e-05/0.4194, allocations: 3.938 kB / 0.7847 GB, free: 320 kB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.149e-05/0.4195, allocations: 31.98 kB / 0.7848 GB, free: 288 kB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.533e-05/0.4196, allocations: 73.27 kB / 0.7848 GB, free: 216 kB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001146/0.4207, allocations: 0.6919 MB / 0.7855 GB, free: 15.52 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005553/0.4263, allocations: 5.741 MB / 0.7911 GB, free: 9.344 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009344/0.4273, allocations: 0.5965 MB / 0.7917 GB, free: 8.703 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000864/0.4281, allocations: 428.6 kB / 0.7921 GB, free: 8.281 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.312e-05/0.4282, allocations: 8 kB / 0.7921 GB, free: 8.273 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.743e-05/0.4282, allocations: 34.56 kB / 0.7922 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=41): time 1.924e-06/0.4282, allocations: 0 / 0.7922 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42): time 0.004521/0.4327, allocations: 2.028 MB / 0.7941 GB, free: 6.109 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.939e-05/0.4328, allocations: 59.34 kB / 0.7942 GB, free: 6.039 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005312/0.4334, allocations: 462.7 kB / 0.7946 GB, free: 5.578 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.689e-05/0.4334, allocations: 29.7 kB / 0.7947 GB, free: 5.543 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002959/0.4337, allocations: 400.1 kB / 0.795 GB, free: 5.148 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001351/0.4338, allocations: 158.6 kB / 0.7952 GB, free: 4.992 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001783/0.434, allocations: 106.3 kB / 0.7953 GB, free: 4.883 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.00019/0.4342, allocations: 370.8 kB / 0.7956 GB, free: 4.512 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004049/0.4346, allocations: 241.2 kB / 0.7959 GB, free: 4.277 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005736/0.4352, allocations: 453 kB / 0.7963 GB, free: 3.738 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001024/0.4363, allocations: 0.7448 MB / 0.797 GB, free: 2.898 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.4363, allocations: 0 / 0.797 GB, free: 2.898 MB / 0.5606 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002043/0.4383, allocations: 1.043 MB / 0.7981 GB, free: 1.836 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.4383, allocations: 11.94 kB / 0.7981 GB, free: 1.824 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.4384, allocations: 11.94 kB / 0.7981 GB, free: 1.812 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001066/0.4394, allocations: 319.5 kB / 0.7984 GB, free: 1.488 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003318/0.4398, allocations: 103.8 kB / 0.7985 GB, free: 1.387 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008128/0.4479, allocations: 7.471 MB / 0.8058 GB, free: 9.352 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004181/0.4484, allocations: 32.02 kB / 0.8058 GB, free: 9.32 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.352e-05/0.4484, allocations: 32 kB / 0.8058 GB, free: 9.289 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.0003485/0.4488, allocations: 242.3 kB / 0.8061 GB, free: 9.043 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.4489, allocations: 63.56 kB / 0.8061 GB, free: 8.98 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001841/0.4507, allocations: 0.8925 MB / 0.807 GB, free: 8.062 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.4508, allocations: 4 kB / 0.807 GB, free: 8.059 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.4508, allocations: 4 kB / 0.807 GB, free: 8.055 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.4508, allocations: 3.984 kB / 0.807 GB, free: 8.051 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002796/0.4536, allocations: 1.685 MB / 0.8087 GB, free: 6.277 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.4536, allocations: 0 / 0.8087 GB, free: 6.277 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001794/0.4538, allocations: 43.91 kB / 0.8087 GB, free: 6.234 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009929/0.4548, allocations: 315.4 kB / 0.809 GB, free: 5.914 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.653e-05/0.4548, allocations: 8 kB / 0.809 GB, free: 5.906 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008056/0.4629, allocations: 7.468 MB / 0.8163 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.4629, allocations: 3.938 kB / 0.8163 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001784/0.4647, allocations: 0.9958 MB / 0.8173 GB, free: 12.83 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002501/0.465, allocations: 172.7 kB / 0.8174 GB, free: 12.64 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.696e-05/0.4651, allocations: 11.98 kB / 0.8175 GB, free: 12.63 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002828/0.4653, allocations: 23.92 kB / 0.8175 GB, free: 12.61 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/0.4655, allocations: 43.88 kB / 0.8175 GB, free: 12.57 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.535e-05/0.4655, allocations: 12 kB / 0.8175 GB, free: 12.55 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003608/0.4659, allocations: 302.9 kB / 0.8178 GB, free: 12.26 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4659, allocations: 8 kB / 0.8178 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0007721/0.4667, allocations: 192 kB / 0.818 GB, free: 12.07 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.002104/0.4688, allocations: 1.552 MB / 0.8195 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002001/0.4708, allocations: 1.203 MB / 0.8207 GB, free: 9.199 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.4708, allocations: 0 / 0.8207 GB, free: 9.199 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.00132/0.4721, allocations: 0.8656 MB / 0.8215 GB, free: 8.281 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009915/0.4731, allocations: 206.9 kB / 0.8217 GB, free: 8.098 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008595/0.4817, allocations: 5.839 MB / 0.8274 GB, free: 1.93 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007247/0.4825, allocations: 0.9959 MB / 0.8284 GB, free: 0.9062 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.000322/0.4828, allocations: 97.17 kB / 0.8285 GB, free: 0.8086 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002954/0.4831, allocations: 227.4 kB / 0.8287 GB, free: 0.5859 MB / 0.5919 GB Notification: Performance of SimCode: time 5.91e-07/0.4831, allocations: 3.938 kB / 0.8287 GB, free: 0.582 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05284/0.536, allocations: 15.27 MB / 0.8436 GB, free: 1.586 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.59/11.12, allocations: 19.8 kB / 0.8437 GB, free: 1.574 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)