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.005758/0.005758, allocations: 100.9 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.001536/0.001536, allocations: 195.3 kB / 16.67 MB, free: 5.973 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.373/1.373, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002503/0.002503, allocations: 298.1 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.175/1.175, allocations: 178.6 MB / 0.5074 GB, free: 12.73 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002589/0.002589, allocations: 91.84 kB / 0.6943 GB, free: 15.21 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3701/0.3727, allocations: 89.13 MB / 0.7813 GB, free: 1.176 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.008962/0.3817, allocations: 6.8 MB / 0.788 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005499/0.3872, allocations: 3.059 MB / 0.791 GB, free: 9.504 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007873/0.388, allocations: 27.75 kB / 0.791 GB, free: 9.492 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002636/0.3907, allocations: 0.9596 MB / 0.7919 GB, free: 8.754 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001505/0.3923, allocations: 0.4991 MB / 0.7924 GB, free: 8.348 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00119/0.3935, allocations: 450.1 kB / 0.7928 GB, free: 8 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001536/0.395, allocations: 1.235 MB / 0.7941 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009088/0.3959, allocations: 0.6585 MB / 0.7947 GB, free: 6.922 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000594/0.3965, allocations: 478.3 kB / 0.7952 GB, free: 6.656 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006859/0.3972, allocations: 0.5133 MB / 0.7957 GB, free: 6.34 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001032/0.3974, allocations: 70.47 kB / 0.7957 GB, free: 6.336 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007577/0.3981, allocations: 376.6 kB / 0.7961 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0003185/0.3984, allocations: 315.4 kB / 0.7964 GB, free: 5.973 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004653/0.3989, allocations: 449.8 kB / 0.7968 GB, free: 5.68 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001366/0.4003, allocations: 1.231 MB / 0.798 GB, free: 4.836 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.4003, allocations: 0 / 0.798 GB, free: 4.836 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.082e-06/0.4003, allocations: 0 / 0.798 GB, free: 4.836 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.772e-05/0.4003, allocations: 0 / 0.798 GB, free: 4.836 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001915/0.4023, allocations: 1.193 MB / 0.7992 GB, free: 3.906 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.4023, allocations: 8.844 kB / 0.7992 GB, free: 3.906 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001594/0.4025, allocations: 119 kB / 0.7993 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001554/0.404, allocations: 247.8 kB / 0.7995 GB, free: 3.691 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000954/0.405, allocations: 0.6059 MB / 0.8001 GB, free: 3.207 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.429e-05/0.4051, allocations: 51.75 kB / 0.8002 GB, free: 3.184 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001012/0.4052, allocations: 65.56 kB / 0.8002 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00157/0.4067, allocations: 1.085 MB / 0.8013 GB, free: 2.379 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.906e-05/0.4068, allocations: 14.64 kB / 0.8013 GB, free: 2.367 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.202e-05/0.4069, allocations: 29.88 kB / 0.8013 GB, free: 2.348 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000153/0.407, allocations: 84.5 kB / 0.8014 GB, free: 2.32 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001162/0.4082, allocations: 0.7525 MB / 0.8022 GB, free: 1.945 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005703/0.4139, allocations: 5.879 MB / 0.8079 GB, free: 12.47 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009875/0.4149, allocations: 0.5542 MB / 0.8084 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004762/0.4154, allocations: 328.8 kB / 0.8088 GB, free: 12 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 4.038e-05/0.4154, allocations: 12.42 kB / 0.8088 GB, free: 11.99 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.4155, allocations: 42.94 kB / 0.8088 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=47): time 2.324e-06/0.4155, allocations: 0 / 0.8088 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.004115/0.4196, allocations: 1.995 MB / 0.8108 GB, free: 9.855 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.66e-05/0.4197, allocations: 59.84 kB / 0.8108 GB, free: 9.785 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006552/0.4203, allocations: 0.5588 MB / 0.8114 GB, free: 9.219 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.126e-05/0.4204, allocations: 33.7 kB / 0.8114 GB, free: 9.18 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003104/0.4207, allocations: 432 kB / 0.8118 GB, free: 8.75 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001489/0.4208, allocations: 178.5 kB / 0.812 GB, free: 8.574 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002006/0.4211, allocations: 122.6 kB / 0.8121 GB, free: 8.449 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001868/0.4213, allocations: 382.7 kB / 0.8125 GB, free: 8.066 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004358/0.4217, allocations: 281.8 kB / 0.8127 GB, free: 7.789 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006044/0.4223, allocations: 497 kB / 0.8132 GB, free: 7.211 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/0.4234, allocations: 0.8093 MB / 0.814 GB, free: 6.305 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.4235, allocations: 4 kB / 0.814 GB, free: 6.301 MB / 0.5762 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001911/0.4254, allocations: 1.095 MB / 0.8151 GB, free: 5.184 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.4254, allocations: 8 kB / 0.8151 GB, free: 5.176 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.4254, allocations: 4 kB / 0.8151 GB, free: 5.172 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000882/0.4263, allocations: 279.6 kB / 0.8153 GB, free: 4.887 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004878/0.4268, allocations: 123.8 kB / 0.8155 GB, free: 4.766 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007325/0.4341, allocations: 7.138 MB / 0.8224 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005576/0.4347, allocations: 35.97 kB / 0.8225 GB, free: 13.03 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.428e-05/0.4348, allocations: 32 kB / 0.8225 GB, free: 13 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 (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.0003563/0.4351, allocations: 257.5 kB / 0.8227 GB, free: 12.74 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.4353, allocations: 75.53 kB / 0.8228 GB, free: 12.66 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001685/0.437, allocations: 0.8847 MB / 0.8237 GB, free: 11.75 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.437, allocations: 8 kB / 0.8237 GB, free: 11.75 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.437, allocations: 4 kB / 0.8237 GB, free: 11.74 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.437, allocations: 3.984 kB / 0.8237 GB, free: 11.74 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002852/0.4399, allocations: 1.725 MB / 0.8254 GB, free: 9.926 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.4399, allocations: 7.938 kB / 0.8254 GB, free: 9.918 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002778/0.4402, allocations: 64.02 kB / 0.8254 GB, free: 9.855 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007981/0.441, allocations: 271.5 kB / 0.8257 GB, free: 9.578 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.776e-05/0.441, allocations: 12 kB / 0.8257 GB, free: 9.566 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007338/0.4484, allocations: 7.122 MB / 0.8327 GB, free: 1.883 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.4484, allocations: 4.031 kB / 0.8327 GB, free: 1.879 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001761/0.4502, allocations: 0.9839 MB / 0.8336 GB, free: 0.8516 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003299/0.4505, allocations: 196.5 kB / 0.8338 GB, free: 0.6406 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.642e-05/0.4506, allocations: 19.92 kB / 0.8338 GB, free: 0.6211 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003652/0.451, allocations: 23.97 kB / 0.8339 GB, free: 0.5977 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001191/0.4511, allocations: 47.88 kB / 0.8339 GB, free: 0.5508 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.518e-05/0.4511, allocations: 16 kB / 0.8339 GB, free: 0.5352 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004827/0.4516, allocations: 391.1 kB / 0.8343 GB, free: 160 kB / 0.5919 GB Notification: Performance of sort global known variables: time 1.61e-07/0.4516, allocations: 0 / 0.8343 GB, free: 160 kB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0008031/0.4524, allocations: 228 kB / 0.8345 GB, free: 15.93 MB / 0.6075 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.001933/0.4544, allocations: 1.55 MB / 0.836 GB, free: 14.32 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002084/0.4565, allocations: 1.264 MB / 0.8373 GB, free: 13.01 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.4565, allocations: 0 / 0.8373 GB, free: 13.01 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001326/0.4578, allocations: 0.9009 MB / 0.8381 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.4588, allocations: 222.4 kB / 0.8383 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009313/0.4682, allocations: 6.432 MB / 0.8446 GB, free: 5.078 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007081/0.4689, allocations: 1.009 MB / 0.8456 GB, free: 4.043 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004233/0.4693, allocations: 126 kB / 0.8457 GB, free: 3.918 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003586/0.4697, allocations: 247.4 kB / 0.846 GB, free: 3.676 MB / 0.6075 GB Notification: Performance of SimCode: time 6.31e-07/0.4697, allocations: 4 kB / 0.846 GB, free: 3.672 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07658/0.5463, allocations: 17.51 MB / 0.8631 GB, free: 2.508 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.48/11.03, allocations: 10.2 kB / 0.8631 GB, free: 2.5 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)