Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Lines.Examples.ACLine_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_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.005058/0.005058, allocations: 97.92 kB / 15.73 MB, free: 6.062 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.001321/0.001321, allocations: 194.9 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002442/0.002442, allocations: 282.1 kB / 290.8 MB, free: 14.45 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.2 MB / 0.4983 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003025/0.003026, allocations: 95.84 kB / 0.681 GB, free: 7.434 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4645/0.4675, allocations: 86.98 MB / 0.7659 GB, free: 3.836 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.008386/0.476, allocations: 6.148 MB / 0.7719 GB, free: 13.66 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.005325/0.4813, allocations: 3.168 MB / 0.775 GB, free: 10.48 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005998/0.4819, allocations: 31.81 kB / 0.775 GB, free: 10.45 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002552/0.4846, allocations: 0.9317 MB / 0.776 GB, free: 9.516 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001237/0.4858, allocations: 473.5 kB / 0.7764 GB, free: 9.051 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001236/0.4871, allocations: 0.5016 MB / 0.7769 GB, free: 8.551 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001261/0.4883, allocations: 1.092 MB / 0.778 GB, free: 7.453 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009165/0.4893, allocations: 0.6464 MB / 0.7786 GB, free: 6.809 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006362/0.4899, allocations: 438.4 kB / 0.779 GB, free: 6.379 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006342/0.4906, allocations: 474.2 kB / 0.7795 GB, free: 5.914 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 9.442e-05/0.4907, allocations: 56 kB / 0.7795 GB, free: 5.859 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009303/0.4916, allocations: 479 kB / 0.78 GB, free: 5.391 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003018/0.4919, allocations: 291.2 kB / 0.7802 GB, free: 5.105 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.000422/0.4923, allocations: 405.9 kB / 0.7806 GB, free: 4.707 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001488/0.4938, allocations: 1.188 MB / 0.7818 GB, free: 3.52 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.4939, allocations: 0 / 0.7818 GB, free: 3.52 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.004e-06/0.4939, allocations: 0 / 0.7818 GB, free: 3.52 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.166e-05/0.4939, allocations: 0 / 0.7818 GB, free: 3.52 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.001659/0.4955, allocations: 1.089 MB / 0.7829 GB, free: 2.375 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.4956, allocations: 12.03 kB / 0.7829 GB, free: 2.363 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001361/0.4957, allocations: 114.7 kB / 0.783 GB, free: 2.242 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001483/0.4972, allocations: 220.2 kB / 0.7832 GB, free: 2.027 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009641/0.4982, allocations: 0.6004 MB / 0.7838 GB, free: 1.391 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.133e-05/0.4983, allocations: 53.61 kB / 0.7838 GB, free: 1.34 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.4984, allocations: 64.38 kB / 0.7839 GB, free: 1.277 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001466/0.4998, allocations: 1.03 MB / 0.7849 GB, free: 144 kB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.613e-05/0.4999, allocations: 19.86 kB / 0.7849 GB, free: 124 kB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.378e-05/0.5, allocations: 27.98 kB / 0.7849 GB, free: 96 kB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.073e-05/0.5, allocations: 65.28 kB / 0.785 GB, free: 32 kB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001136/0.5012, allocations: 0.6957 MB / 0.7857 GB, free: 15.34 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005302/0.5065, allocations: 5.738 MB / 0.7913 GB, free: 9.164 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008605/0.5074, allocations: 0.5927 MB / 0.7919 GB, free: 8.527 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008254/0.5082, allocations: 436.5 kB / 0.7923 GB, free: 8.098 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.344e-05/0.5083, allocations: 4 kB / 0.7923 GB, free: 8.094 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.5083, allocations: 34.56 kB / 0.7923 GB, free: 8.051 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=41): time 3.787e-06/0.5083, allocations: 4 kB / 0.7923 GB, free: 8.047 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42): time 0.00438/0.5127, allocations: 2.036 MB / 0.7943 GB, free: 5.918 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.162e-05/0.5128, allocations: 55.41 kB / 0.7944 GB, free: 5.852 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005263/0.5133, allocations: 462.9 kB / 0.7948 GB, free: 5.391 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.421e-05/0.5133, allocations: 29.7 kB / 0.7948 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002909/0.5136, allocations: 396.1 kB / 0.7952 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/0.5138, allocations: 162.6 kB / 0.7954 GB, free: 4.805 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001762/0.514, allocations: 114.2 kB / 0.7955 GB, free: 4.688 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000172/0.5142, allocations: 366.8 kB / 0.7958 GB, free: 4.32 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003664/0.5145, allocations: 237.2 kB / 0.796 GB, free: 4.09 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005371/0.5151, allocations: 453 kB / 0.7965 GB, free: 3.551 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009664/0.516, allocations: 0.7526 MB / 0.7972 GB, free: 2.703 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.5161, allocations: 4 kB / 0.7972 GB, free: 2.699 MB / 0.5606 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001895/0.518, allocations: 1.043 MB / 0.7982 GB, free: 1.637 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.518, allocations: 8 kB / 0.7982 GB, free: 1.629 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.518, allocations: 7.938 kB / 0.7983 GB, free: 1.621 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00102/0.519, allocations: 323.1 kB / 0.7986 GB, free: 1.293 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003237/0.5194, allocations: 95.83 kB / 0.7987 GB, free: 1.199 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007604/0.527, allocations: 7.482 MB / 0.806 GB, free: 9.152 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004273/0.5274, allocations: 24.03 kB / 0.806 GB, free: 9.129 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.726e-05/0.5275, allocations: 31.98 kB / 0.806 GB, free: 9.098 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.0003272/0.5278, allocations: 241.6 kB / 0.8062 GB, free: 8.852 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.5279, allocations: 67.56 kB / 0.8063 GB, free: 8.785 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001746/0.5297, allocations: 0.8926 MB / 0.8072 GB, free: 7.867 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.5297, allocations: 8 kB / 0.8072 GB, free: 7.859 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.557e-06/0.5297, allocations: 4 kB / 0.8072 GB, free: 7.855 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.5297, allocations: 3.938 kB / 0.8072 GB, free: 7.852 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002653/0.5324, allocations: 1.689 MB / 0.8088 GB, free: 6.074 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.5324, allocations: 0 / 0.8088 GB, free: 6.074 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001754/0.5326, allocations: 43.91 kB / 0.8089 GB, free: 6.031 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009341/0.5335, allocations: 311.3 kB / 0.8092 GB, free: 5.715 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.106e-05/0.5336, allocations: 8.281 kB / 0.8092 GB, free: 5.707 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007588/0.5412, allocations: 7.463 MB / 0.8165 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.5412, allocations: 3.938 kB / 0.8165 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001764/0.543, allocations: 1.007 MB / 0.8175 GB, free: 12.62 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002561/0.5432, allocations: 172.7 kB / 0.8176 GB, free: 12.44 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.398e-05/0.5433, allocations: 8 kB / 0.8176 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002802/0.5436, allocations: 31.91 kB / 0.8177 GB, free: 12.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.5437, allocations: 39.89 kB / 0.8177 GB, free: 12.36 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.043e-05/0.5437, allocations: 12 kB / 0.8177 GB, free: 12.35 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003748/0.5441, allocations: 310.9 kB / 0.818 GB, free: 12.05 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5441, allocations: 0 / 0.818 GB, free: 12.05 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0007494/0.5449, allocations: 196 kB / 0.8182 GB, free: 11.86 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.002108/0.547, allocations: 1.544 MB / 0.8197 GB, free: 10.25 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001986/0.549, allocations: 1.196 MB / 0.8209 GB, free: 9.004 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.549, allocations: 0 / 0.8209 GB, free: 9.004 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001323/0.5503, allocations: 0.8692 MB / 0.8217 GB, free: 8.082 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009886/0.5513, allocations: 200.6 kB / 0.8219 GB, free: 7.902 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008849/0.5602, allocations: 5.899 MB / 0.8277 GB, free: 1.676 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007829/0.561, allocations: 0.9921 MB / 0.8286 GB, free: 0.6562 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002967/0.5613, allocations: 97.19 kB / 0.8287 GB, free: 0.5586 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003019/0.5616, allocations: 235.3 kB / 0.829 GB, free: 336 kB / 0.5919 GB Notification: Performance of SimCode: time 6.21e-07/0.5616, allocations: 0 / 0.829 GB, free: 336 kB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05558/0.6172, allocations: 15.39 MB / 0.844 GB, free: 1.254 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.45/11.07, allocations: 34.56 kB / 0.844 GB, free: 1.227 MB / 0.6075 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.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_ThreePhasesBalanced_Lines_Examples_ACLine_L.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe 2>&1)