Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.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.ThreePhasesBalanced.Lines.Examples.ACLine_R,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R",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.007539/0.00754, allocations: 98.73 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.001282/0.001282, allocations: 196.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.403/1.403, 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.002691/0.002691, allocations: 286.3 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.993/0.993, allocations: 169.2 MB / 0.4983 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002694/0.002694, allocations: 91.84 kB / 0.681 GB, free: 7.484 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4097/0.4124, allocations: 86.98 MB / 0.7659 GB, free: 4.012 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.009765/0.4222, allocations: 6.804 MB / 0.7726 GB, free: 13.18 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.005609/0.4279, allocations: 3.059 MB / 0.7755 GB, free: 10.11 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004128/0.4283, allocations: 27.81 kB / 0.7756 GB, free: 10.09 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002459/0.4308, allocations: 0.9595 MB / 0.7765 GB, free: 9.125 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.00114/0.4319, allocations: 0.4972 MB / 0.777 GB, free: 8.625 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001032/0.433, allocations: 439 kB / 0.7774 GB, free: 8.195 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001338/0.4343, allocations: 1.24 MB / 0.7786 GB, free: 6.949 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009413/0.4353, allocations: 0.6506 MB / 0.7793 GB, free: 6.297 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005678/0.4358, allocations: 486.2 kB / 0.7797 GB, free: 5.82 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006954/0.4365, allocations: 0.5098 MB / 0.7802 GB, free: 5.309 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001074/0.4367, allocations: 72 kB / 0.7803 GB, free: 5.238 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000689/0.4374, allocations: 379.2 kB / 0.7806 GB, free: 4.867 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003242/0.4377, allocations: 303.2 kB / 0.7809 GB, free: 4.57 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004716/0.4382, allocations: 453.7 kB / 0.7814 GB, free: 4.125 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001463/0.4396, allocations: 1.227 MB / 0.7826 GB, free: 2.895 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.4397, allocations: 0 / 0.7826 GB, free: 2.895 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.173e-06/0.4397, allocations: 0 / 0.7826 GB, free: 2.895 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.011e-05/0.4397, allocations: 0 / 0.7826 GB, free: 2.895 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.002053/0.4417, allocations: 1.199 MB / 0.7837 GB, free: 1.641 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.4418, allocations: 8.031 kB / 0.7837 GB, free: 1.633 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001598/0.442, allocations: 118.7 kB / 0.7839 GB, free: 1.508 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001553/0.4435, allocations: 248 kB / 0.7841 GB, free: 1.266 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009561/0.4445, allocations: 0.6081 MB / 0.7847 GB, free: 0.6211 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.913e-05/0.4445, allocations: 53.67 kB / 0.7847 GB, free: 0.5703 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.4447, allocations: 56.38 kB / 0.7848 GB, free: 0.5156 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001662/0.4463, allocations: 1.089 MB / 0.7859 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.029e-05/0.4464, allocations: 15.83 kB / 0.7859 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.435e-05/0.4465, allocations: 28 kB / 0.7859 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001513/0.4466, allocations: 85.25 kB / 0.786 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001214/0.4478, allocations: 0.7504 MB / 0.7867 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005741/0.4536, allocations: 5.89 MB / 0.7925 GB, free: 8.121 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.4546, allocations: 0.5513 MB / 0.793 GB, free: 7.562 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004743/0.4551, allocations: 339.4 kB / 0.7933 GB, free: 7.23 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 5.045e-05/0.4552, allocations: 4.438 kB / 0.7933 GB, free: 7.227 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.526e-05/0.4552, allocations: 39 kB / 0.7934 GB, free: 7.18 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=47): time 2.074e-06/0.4552, allocations: 0 / 0.7934 GB, free: 7.18 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48): time 0.003993/0.4592, allocations: 1.999 MB / 0.7953 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.017e-05/0.4593, allocations: 59.83 kB / 0.7954 GB, free: 5.02 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006597/0.4599, allocations: 0.5549 MB / 0.7959 GB, free: 4.453 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.131e-05/0.46, allocations: 37.7 kB / 0.796 GB, free: 4.41 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000325/0.4603, allocations: 428 kB / 0.7964 GB, free: 3.988 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001592/0.4605, allocations: 182.5 kB / 0.7965 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000201/0.4607, allocations: 122.6 kB / 0.7967 GB, free: 3.684 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002118/0.4609, allocations: 386.7 kB / 0.797 GB, free: 3.297 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004393/0.4614, allocations: 273.8 kB / 0.7973 GB, free: 3.027 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006368/0.462, allocations: 493 kB / 0.7978 GB, free: 2.445 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001143/0.4631, allocations: 0.8094 MB / 0.7985 GB, free: 1.547 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.4632, allocations: 0 / 0.7985 GB, free: 1.547 MB / 0.5606 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00192/0.4651, allocations: 1.095 MB / 0.7996 GB, free: 444 kB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.4651, allocations: 10.5 kB / 0.7996 GB, free: 436 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.4651, allocations: 8 kB / 0.7996 GB, free: 428 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008566/0.466, allocations: 275.8 kB / 0.7999 GB, free: 140 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004824/0.4665, allocations: 127.8 kB / 0.8 GB, free: 12 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007311/0.4738, allocations: 7.142 MB / 0.807 GB, free: 8.309 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005649/0.4744, allocations: 31.97 kB / 0.807 GB, free: 8.277 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.585e-05/0.4745, allocations: 35.94 kB / 0.8071 GB, free: 8.242 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 (67): * Single equations (assignments): 63 * 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 {(2,6,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003692/0.4748, allocations: 257.6 kB / 0.8073 GB, free: 7.98 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.475, allocations: 79.52 kB / 0.8074 GB, free: 7.902 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001666/0.4766, allocations: 0.8848 MB / 0.8082 GB, free: 6.992 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.4766, allocations: 4 kB / 0.8082 GB, free: 6.988 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.4767, allocations: 7.984 kB / 0.8083 GB, free: 6.98 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.4767, allocations: 0 / 0.8083 GB, free: 6.98 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002676/0.4794, allocations: 1.737 MB / 0.8099 GB, free: 5.156 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.4794, allocations: 3.938 kB / 0.81 GB, free: 5.152 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002675/0.4796, allocations: 63.89 kB / 0.81 GB, free: 5.09 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007762/0.4804, allocations: 263.4 kB / 0.8103 GB, free: 4.82 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.593e-05/0.4805, allocations: 12 kB / 0.8103 GB, free: 4.809 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00742/0.4879, allocations: 7.123 MB / 0.8172 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.4879, allocations: 3.984 kB / 0.8172 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00168/0.4896, allocations: 0.9916 MB / 0.8182 GB, free: 12.08 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002888/0.4899, allocations: 196.6 kB / 0.8184 GB, free: 11.87 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.086e-05/0.49, allocations: 15.94 kB / 0.8184 GB, free: 11.85 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003547/0.4904, allocations: 23.97 kB / 0.8184 GB, free: 11.83 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001041/0.4905, allocations: 43.94 kB / 0.8185 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.308e-05/0.4905, allocations: 16 kB / 0.8185 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004729/0.491, allocations: 391.1 kB / 0.8189 GB, free: 11.39 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.084e-06/0.491, allocations: 0 / 0.8189 GB, free: 11.39 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0007881/0.4918, allocations: 227.9 kB / 0.8191 GB, free: 11.17 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 (31): * Single equations (assignments): 27 * 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 {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001944/0.4938, allocations: 1.556 MB / 0.8206 GB, free: 9.559 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002064/0.4958, allocations: 1.271 MB / 0.8218 GB, free: 8.242 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.4959, allocations: 4.125 kB / 0.8218 GB, free: 8.238 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001352/0.4972, allocations: 0.8972 MB / 0.8227 GB, free: 7.289 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009825/0.4982, allocations: 214 kB / 0.8229 GB, free: 7.086 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009214/0.5074, allocations: 6.409 MB / 0.8292 GB, free: 340 kB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006718/0.5081, allocations: 1.013 MB / 0.8302 GB, free: 15.29 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003694/0.5085, allocations: 137.9 kB / 0.8303 GB, free: 15.16 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003198/0.5088, allocations: 251.3 kB / 0.8305 GB, free: 14.91 MB / 0.6075 GB Notification: Performance of SimCode: time 7.51e-07/0.5088, allocations: 0 / 0.8305 GB, free: 14.91 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05461/0.5634, allocations: 17.5 MB / 0.8476 GB, free: 13.76 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/11.22, allocations: 15.8 kB / 0.8476 GB, free: 13.75 MB / 0.6231 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R_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_ThreePhasesBalanced_Lines_Examples_ACLine_R.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe 2>&1)