Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.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.ThreePhasesUnbalanced.Lines.Examples.ACLine_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N",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.004277/0.004277, allocations: 99.31 kB / 15.73 MB, free: 6.059 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.001065/0.001065, allocations: 191.7 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.201/1.201, 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.001941/0.001941, allocations: 284.1 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8565/0.8565, allocations: 169.2 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001618/0.001618, allocations: 96.44 kB / 0.681 GB, free: 7.465 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.392/0.3936, allocations: 86.98 MB / 0.7659 GB, free: 4.02 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N): time 0.03184/0.4255, allocations: 33.31 MB / 0.7985 GB, free: 2.59 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02134/0.4469, allocations: 14.82 MB / 0.8129 GB, free: 3.727 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003192/0.4501, allocations: 155.2 kB / 0.8131 GB, free: 3.574 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.00824/0.4584, allocations: 3.659 MB / 0.8166 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.007288/0.4657, allocations: 2.997 MB / 0.8196 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.005137/0.4708, allocations: 2.323 MB / 0.8218 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.009913/0.4807, allocations: 8.828 MB / 0.8305 GB, free: 1.719 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01127/0.492, allocations: 9.581 MB / 0.8398 GB, free: 8.02 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006817/0.4989, allocations: 4.016 MB / 0.8437 GB, free: 3.992 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006742/0.5057, allocations: 4.042 MB / 0.8477 GB, free: 15.94 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.002383/0.5081, allocations: 0.7188 MB / 0.8484 GB, free: 15.22 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004779/0.5129, allocations: 1.709 MB / 0.8501 GB, free: 13.51 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.003786/0.5167, allocations: 2.834 MB / 0.8528 GB, free: 10.67 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.005844/0.5225, allocations: 3.388 MB / 0.8561 GB, free: 7.266 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01259/0.5352, allocations: 11.22 MB / 0.8671 GB, free: 12.01 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.5352, allocations: 0 / 0.8671 GB, free: 12.01 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.423e-06/0.5352, allocations: 0 / 0.8671 GB, free: 12.01 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0002651/0.5355, allocations: 0 / 0.8671 GB, free: 12.01 MB / 0.6387 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1338 * Number of variables: 1338 Notification: Performance of Generate backend data structure: time 0.01379/0.5493, allocations: 6.132 MB / 0.8731 GB, free: 5.789 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.5493, allocations: 8.031 kB / 0.8731 GB, free: 5.781 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001548/0.5509, allocations: 0.7271 MB / 0.8738 GB, free: 5.043 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006965/0.5579, allocations: 1.176 MB / 0.875 GB, free: 3.863 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008148/0.566, allocations: 3.538 MB / 0.8784 GB, free: 256 kB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003782/0.5664, allocations: 370.5 kB / 0.8788 GB, free: 15.88 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001756/0.5682, allocations: 0.4959 MB / 0.8792 GB, free: 15.39 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01617/0.5844, allocations: 8.001 MB / 0.8871 GB, free: 7.113 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002108/0.5846, allocations: 27.77 kB / 0.8871 GB, free: 7.086 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001156/0.5858, allocations: 220 kB / 0.8873 GB, free: 6.871 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001123/0.587, allocations: 433.6 kB / 0.8877 GB, free: 6.445 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01154/0.5985, allocations: 6.085 MB / 0.8936 GB, free: 356 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04179/0.6403, allocations: 34.95 MB / 0.9278 GB, free: 10.21 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002764/0.6431, allocations: 2.022 MB / 0.9298 GB, free: 8.18 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002451/0.6456, allocations: 1.881 MB / 0.9316 GB, free: 6.309 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001253/0.6458, allocations: 18 kB / 0.9316 GB, free: 6.289 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.811e-05/0.6458, allocations: 56.5 kB / 0.9317 GB, free: 6.227 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=171): time 3.927e-06/0.6458, allocations: 0 / 0.9317 GB, free: 6.227 MB / 0.7012 GB Notification: Performance of matching and sorting (n=276): time 0.45/1.096, allocations: 38.97 MB / 0.9697 GB, free: 182 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.051e-05/1.096, allocations: 79.7 kB / 0.9698 GB, free: 181.9 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003547/1.099, allocations: 2.279 MB / 0.972 GB, free: 181.4 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0003606/1.1, allocations: 76.3 kB / 0.9721 GB, free: 181.3 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.001239/1.101, allocations: 2.337 MB / 0.9744 GB, free: 180.5 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006987/1.102, allocations: 0.9793 MB / 0.9753 GB, free: 179.9 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008652/1.103, allocations: 0.5077 MB / 0.9758 GB, free: 179.7 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 3.447e-05/1.103, allocations: 309.7 kB / 0.9761 GB, free: 179.4 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002516/1.105, allocations: 1.973 MB / 0.978 GB, free: 178.6 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003126/1.108, allocations: 2.602 MB / 0.9806 GB, free: 177.1 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005165/1.114, allocations: 4.935 MB / 0.9854 GB, free: 174.5 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.167e-05/1.114, allocations: 10.75 kB / 0.9854 GB, free: 174.5 MB / 0.7325 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01187/1.125, allocations: 7.777 MB / 0.993 GB, free: 171.4 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.583e-05/1.125, allocations: 11.25 kB / 0.993 GB, free: 171.4 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.07e-05/1.125, allocations: 18.81 kB / 0.993 GB, free: 171.4 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007672/1.133, allocations: 3.21 MB / 0.9962 GB, free: 170.6 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001438/1.135, allocations: 405.5 kB / 0.9966 GB, free: 170.5 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03273/1.167, allocations: 33.9 MB / 1.03 GB, free: 139.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002785/1.17, allocations: 165.3 kB / 1.03 GB, free: 139.6 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000216/1.17, allocations: 108 kB / 1.03 GB, free: 139.5 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (202): * Single equations (assignments): 196 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(10,28,71.0%), (10,28,65.0%), (6,24,77.8%), (6,24,77.8%), (5,17,84.0%), (5,17,84.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002195/1.173, allocations: 1.799 MB / 1.032 GB, free: 137.7 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005146/1.173, allocations: 341.9 kB / 1.032 GB, free: 137.4 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01077/1.184, allocations: 7.364 MB / 1.039 GB, free: 129.9 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.506e-05/1.184, allocations: 24 kB / 1.039 GB, free: 129.9 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.338e-05/1.184, allocations: 32.5 kB / 1.039 GB, free: 129.9 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.892e-05/1.184, allocations: 15.94 kB / 1.039 GB, free: 129.9 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0176/1.202, allocations: 12.93 MB / 1.052 GB, free: 116.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.196e-05/1.202, allocations: 8 kB / 1.052 GB, free: 116.8 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008366/1.202, allocations: 231.6 kB / 1.052 GB, free: 116.6 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006508/1.209, allocations: 2.854 MB / 1.055 GB, free: 113.7 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001548/1.209, allocations: 52 kB / 1.055 GB, free: 113.6 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03084/1.24, allocations: 32.71 MB / 1.087 GB, free: 80.12 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/1.24, allocations: 8 kB / 1.087 GB, free: 80.12 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009853/1.25, allocations: 6.9 MB / 1.094 GB, free: 73 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002038/1.252, allocations: 0.7917 MB / 1.094 GB, free: 72.19 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006089/1.253, allocations: 56 kB / 1.094 GB, free: 72.14 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001728/1.254, allocations: 167.8 kB / 1.095 GB, free: 71.97 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006607/1.255, allocations: 257.4 kB / 1.095 GB, free: 71.72 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001483/1.255, allocations: 72 kB / 1.095 GB, free: 71.65 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.00164/1.257, allocations: 1.525 MB / 1.096 GB, free: 70.12 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.31e-07/1.257, allocations: 0 / 1.096 GB, free: 70.12 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.003421/1.26, allocations: 1.375 MB / 1.098 GB, free: 68.75 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (105): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(5,17,84.0%), (6,24,77.8%), (10,28,65.0%), (5,17,92.0%), (6,24,77.8%), (10,28,65.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00955/1.27, allocations: 7.533 MB / 1.105 GB, free: 60.99 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.009103/1.279, allocations: 6.947 MB / 1.112 GB, free: 53.97 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/1.279, allocations: 4 kB / 1.112 GB, free: 53.97 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.00602/1.285, allocations: 4.436 MB / 1.116 GB, free: 49.46 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004089/1.289, allocations: 1.113 MB / 1.117 GB, free: 48.41 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05048/1.34, allocations: 39.2 MB / 1.156 GB, free: 8.141 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002985/1.343, allocations: 3.639 MB / 1.159 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001622/1.344, allocations: 0.5517 MB / 1.16 GB, free: 3.914 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001597/1.346, allocations: 1.972 MB / 1.162 GB, free: 1.941 MB / 0.7325 GB Notification: Performance of SimCode: time 6.82e-07/1.346, allocations: 4 kB / 1.162 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.161/1.507, allocations: 111.7 MB / 1.271 GB, free: 3.645 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.02/16.53, allocations: 4.062 kB / 1.271 GB, free: 3.641 MB / 0.8419 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N_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_ThreePhasesUnbalanced_Lines_Examples_ACLine_N.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe 2>&1)