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.00714/0.00714, allocations: 95.92 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.001906/0.001906, allocations: 202.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.406/1.406, 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.002476/0.002476, allocations: 279 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.047/1.047, allocations: 178.6 MB / 0.5074 GB, free: 4.488 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002705/0.002705, allocations: 99.83 kB / 0.6943 GB, free: 3.598 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4394/0.4421, allocations: 89.14 MB / 0.7813 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.008047/0.4502, allocations: 6.081 MB / 0.7873 GB, free: 9.711 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005228/0.4554, allocations: 3.142 MB / 0.7903 GB, free: 7.586 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003922/0.4558, allocations: 32.81 kB / 0.7904 GB, free: 7.57 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002549/0.4584, allocations: 0.9189 MB / 0.7913 GB, free: 7.016 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001157/0.4596, allocations: 479.7 kB / 0.7917 GB, free: 6.738 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001246/0.4608, allocations: 487.6 kB / 0.7922 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001332/0.4622, allocations: 1.092 MB / 0.7933 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000926/0.4631, allocations: 0.6388 MB / 0.7939 GB, free: 5.746 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006128/0.4637, allocations: 432.3 kB / 0.7943 GB, free: 5.562 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006425/0.4644, allocations: 474.3 kB / 0.7948 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.345e-05/0.4645, allocations: 62.47 kB / 0.7948 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009725/0.4655, allocations: 486 kB / 0.7953 GB, free: 5.191 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0003154/0.4658, allocations: 287.2 kB / 0.7955 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004107/0.4662, allocations: 401.1 kB / 0.7959 GB, free: 4.84 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001401/0.4676, allocations: 1.18 MB / 0.7971 GB, free: 4.125 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.4676, allocations: 4 kB / 0.7971 GB, free: 4.121 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.212e-06/0.4676, allocations: 0 / 0.7971 GB, free: 4.121 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.128e-05/0.4677, allocations: 1.125 kB / 0.7971 GB, free: 4.121 MB / 0.5606 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.00174/0.4694, allocations: 1.074 MB / 0.7981 GB, free: 3.25 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.4695, allocations: 13.38 kB / 0.7982 GB, free: 3.246 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001539/0.4696, allocations: 112.4 kB / 0.7983 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001481/0.4711, allocations: 230.3 kB / 0.7985 GB, free: 3.039 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009044/0.472, allocations: 0.5797 MB / 0.799 GB, free: 2.574 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.598e-05/0.4721, allocations: 46.7 kB / 0.7991 GB, free: 2.555 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001218/0.4722, allocations: 73.47 kB / 0.7992 GB, free: 2.523 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001491/0.4737, allocations: 1.03 MB / 0.8002 GB, free: 1.758 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.343e-05/0.4737, allocations: 14.73 kB / 0.8002 GB, free: 1.746 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.671e-05/0.4738, allocations: 29.3 kB / 0.8002 GB, free: 1.727 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.382e-05/0.4739, allocations: 69.98 kB / 0.8003 GB, free: 1.707 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001034/0.4749, allocations: 0.6879 MB / 0.8009 GB, free: 1.367 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005268/0.4802, allocations: 5.742 MB / 0.8066 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008799/0.4811, allocations: 0.5992 MB / 0.8071 GB, free: 11.53 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000831/0.482, allocations: 433.1 kB / 0.8075 GB, free: 11.33 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.662e-05/0.482, allocations: 8.766 kB / 0.8076 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.23e-05/0.4821, allocations: 35.91 kB / 0.8076 GB, free: 11.28 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=41): time 1.954e-06/0.4821, allocations: 1.188 kB / 0.8076 GB, free: 11.28 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42): time 0.00438/0.4864, allocations: 2.027 MB / 0.8096 GB, free: 9.953 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.987e-05/0.4865, allocations: 56.28 kB / 0.8096 GB, free: 9.891 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004639/0.487, allocations: 458 kB / 0.8101 GB, free: 9.613 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.653e-05/0.487, allocations: 30.7 kB / 0.8101 GB, free: 9.578 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002588/0.4873, allocations: 390 kB / 0.8105 GB, free: 9.23 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000131/0.4874, allocations: 167.2 kB / 0.8106 GB, free: 9.086 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001613/0.4876, allocations: 107.7 kB / 0.8107 GB, free: 9.02 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001653/0.4878, allocations: 360.5 kB / 0.8111 GB, free: 8.672 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000338/0.4881, allocations: 250.1 kB / 0.8113 GB, free: 8.547 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005294/0.4886, allocations: 450.8 kB / 0.8117 GB, free: 8.152 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009516/0.4896, allocations: 0.7466 MB / 0.8125 GB, free: 7.59 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.4896, allocations: 1.375 kB / 0.8125 GB, free: 7.59 MB / 0.5762 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001818/0.4914, allocations: 1.046 MB / 0.8135 GB, free: 7.008 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.4915, allocations: 9.156 kB / 0.8135 GB, free: 7.008 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.4915, allocations: 11 kB / 0.8135 GB, free: 7.004 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001003/0.4925, allocations: 319.3 kB / 0.8138 GB, free: 6.836 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003058/0.4928, allocations: 100.5 kB / 0.8139 GB, free: 6.809 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007387/0.5002, allocations: 7.483 MB / 0.8212 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004775/0.5007, allocations: 27.25 kB / 0.8212 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.171e-05/0.5008, allocations: 24.69 kB / 0.8213 GB, free: 15.93 MB / 0.5919 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.0003581/0.5011, allocations: 247.5 kB / 0.8215 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.621e-05/0.5012, allocations: 68.94 kB / 0.8216 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001701/0.5029, allocations: 0.8909 MB / 0.8224 GB, free: 15.15 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.5029, allocations: 4.156 kB / 0.8224 GB, free: 15.15 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.503, allocations: 3.312 kB / 0.8224 GB, free: 15.15 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.503, allocations: 0 / 0.8224 GB, free: 15.15 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002648/0.5056, allocations: 1.677 MB / 0.8241 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.5056, allocations: 1.281 kB / 0.8241 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000171/0.5058, allocations: 46.22 kB / 0.8241 GB, free: 14 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009164/0.5067, allocations: 302.5 kB / 0.8244 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.219e-05/0.5068, allocations: 12.31 kB / 0.8244 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007315/0.5141, allocations: 7.464 MB / 0.8317 GB, free: 6.996 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.126e-05/0.5141, allocations: 10.03 kB / 0.8317 GB, free: 6.988 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001712/0.5159, allocations: 0.9931 MB / 0.8327 GB, free: 6.34 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002749/0.5161, allocations: 177.2 kB / 0.8329 GB, free: 6.184 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.049e-05/0.5162, allocations: 11.97 kB / 0.8329 GB, free: 6.176 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002764/0.5165, allocations: 21.14 kB / 0.8329 GB, free: 6.164 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/0.5166, allocations: 49.5 kB / 0.8329 GB, free: 6.133 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.781e-05/0.5167, allocations: 8.875 kB / 0.833 GB, free: 6.133 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003514/0.517, allocations: 305.6 kB / 0.8332 GB, free: 5.949 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.8e-07/0.517, allocations: 0 / 0.8332 GB, free: 5.949 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0008001/0.5178, allocations: 194.1 kB / 0.8334 GB, free: 5.93 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.001959/0.5198, allocations: 1.553 MB / 0.8349 GB, free: 4.73 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001908/0.5217, allocations: 1.197 MB / 0.8361 GB, free: 3.891 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.5217, allocations: 0 / 0.8361 GB, free: 3.891 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.00124/0.523, allocations: 0.869 MB / 0.837 GB, free: 3.195 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001007/0.524, allocations: 207 kB / 0.8372 GB, free: 3.094 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008296/0.5323, allocations: 5.855 MB / 0.8429 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006717/0.533, allocations: 0.9921 MB / 0.8438 GB, free: 12.36 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003127/0.5333, allocations: 97.17 kB / 0.8439 GB, free: 12.27 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002725/0.5336, allocations: 227.4 kB / 0.8442 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of SimCode: time 5.21e-07/0.5336, allocations: 4 kB / 0.8442 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05145/0.5851, allocations: 15.29 MB / 0.8591 GB, free: 13.03 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.26/10.84, allocations: 7.875 kB / 0.8591 GB, free: 13.02 MB / 0.6231 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)