Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.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.ThreePhasesUnbalanced.Lines.Examples.ACLine_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_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.004647/0.004647, allocations: 99.91 kB / 15.73 MB, free: 6.492 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.001268/0.001268, allocations: 201.5 kB / 16.68 MB, free: 6.375 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.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002514/0.002514, allocations: 278.2 kB / 290.8 MB, free: 1.934 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.04/1.04, allocations: 169.3 MB / 0.4983 GB, free: 13.78 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00278/0.00278, allocations: 96.27 kB / 0.681 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1663/0.1691, allocations: 86.97 MB / 0.7659 GB, free: 8.922 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L): time 0.4006/0.5697, allocations: 32.59 MB / 0.7977 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01922/0.589, allocations: 10.27 MB / 0.8078 GB, free: 6.699 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003247/0.5923, allocations: 149.6 kB / 0.8079 GB, free: 6.652 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.01066/0.6029, allocations: 3.721 MB / 0.8116 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00632/0.6093, allocations: 1.848 MB / 0.8134 GB, free: 3.277 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.006687/0.616, allocations: 2.131 MB / 0.8154 GB, free: 2.078 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.01168/0.6277, allocations: 7.335 MB / 0.8226 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01433/0.6421, allocations: 9.417 MB / 0.8318 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006408/0.6485, allocations: 3.173 MB / 0.8349 GB, free: 8.793 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006792/0.6554, allocations: 3.488 MB / 0.8383 GB, free: 6.617 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.002048/0.6574, allocations: 0.6446 MB / 0.8389 GB, free: 6.617 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005114/0.6625, allocations: 1.77 MB / 0.8407 GB, free: 6.008 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0041/0.6667, allocations: 2.543 MB / 0.8431 GB, free: 4.383 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.007145/0.6738, allocations: 2.899 MB / 0.846 GB, free: 2.168 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.01618/0.69, allocations: 10.13 MB / 0.8559 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.6901, allocations: 0 / 0.8559 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of FrontEnd: time 4.298e-06/0.6901, allocations: 0 / 0.8559 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0002808/0.6904, allocations: 3.938 kB / 0.8559 GB, free: 8.008 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1256 * Number of variables: 1256 Notification: Performance of Generate backend data structure: time 0.01247/0.7029, allocations: 5.12 MB / 0.8609 GB, free: 2.809 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.7029, allocations: 12.03 kB / 0.8609 GB, free: 2.797 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001349/0.7043, allocations: 0.682 MB / 0.8615 GB, free: 2.105 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005705/0.71, allocations: 0.9774 MB / 0.8625 GB, free: 1.125 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006175/0.7162, allocations: 3.059 MB / 0.8655 GB, free: 14 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003278/0.7166, allocations: 353.6 kB / 0.8658 GB, free: 13.66 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001197/0.7178, allocations: 464.3 kB / 0.8663 GB, free: 13.2 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0156/0.7334, allocations: 7.667 MB / 0.8738 GB, free: 5.184 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001502/0.7336, allocations: 27.77 kB / 0.8738 GB, free: 5.156 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00052/0.7341, allocations: 200 kB / 0.874 GB, free: 4.961 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003755/0.7345, allocations: 316.9 kB / 0.8743 GB, free: 4.648 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01074/0.7452, allocations: 5.706 MB / 0.8798 GB, free: 14.93 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03846/0.7837, allocations: 34.89 MB / 0.9139 GB, free: 8.836 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002905/0.7867, allocations: 2.162 MB / 0.916 GB, free: 6.559 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001729/0.7884, allocations: 1.268 MB / 0.9173 GB, free: 5.293 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001009/0.7885, allocations: 13.31 kB / 0.9173 GB, free: 5.281 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.929e-05/0.7886, allocations: 47.88 kB / 0.9173 GB, free: 5.227 MB / 0.67 GB Notification: Performance of pre-optimization done (n=133): time 3.546e-06/0.7886, allocations: 0 / 0.9173 GB, free: 5.227 MB / 0.67 GB Notification: Performance of matching and sorting (n=136): time 0.01464/0.8032, allocations: 7.153 MB / 0.9243 GB, free: 13.81 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.875e-05/0.8033, allocations: 64.72 kB / 0.9244 GB, free: 13.73 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002102/0.8054, allocations: 1.484 MB / 0.9258 GB, free: 12.2 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0001456/0.8056, allocations: 45.7 kB / 0.9259 GB, free: 12.15 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.001598/0.8072, allocations: 2.073 MB / 0.9279 GB, free: 10.06 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.000556/0.8078, allocations: 0.4996 MB / 0.9284 GB, free: 9.555 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005489/0.8083, allocations: 351.3 kB / 0.9287 GB, free: 9.203 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001442/0.8085, allocations: 305.1 kB / 0.929 GB, free: 8.902 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001427/0.8099, allocations: 0.9135 MB / 0.9299 GB, free: 7.988 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002082/0.812, allocations: 1.597 MB / 0.9315 GB, free: 6.078 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003848/0.8159, allocations: 2.729 MB / 0.9341 GB, free: 3.039 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-05/0.8159, allocations: 11.94 kB / 0.9341 GB, free: 3.027 MB / 0.6856 GB Notification: Performance of matching and sorting (n=239) (initialization): time 0.006413/0.8223, allocations: 3.543 MB / 0.9376 GB, free: 15.44 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/0.8224, allocations: 19.94 kB / 0.9376 GB, free: 15.42 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.185e-05/0.8224, allocations: 24 kB / 0.9376 GB, free: 15.39 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002604/0.825, allocations: 0.8962 MB / 0.9385 GB, free: 14.46 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/0.8262, allocations: 355.3 kB / 0.9389 GB, free: 14.11 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02424/0.8505, allocations: 23.11 MB / 0.9614 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001525/0.852, allocations: 108 kB / 0.9615 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000158/0.8522, allocations: 84 kB / 0.9616 GB, free: 5.141 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (185): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(3,5,77.8%), (3,5,77.8%), (3,5,77.8%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,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.00257/0.8548, allocations: 1.614 MB / 0.9632 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004218/0.8552, allocations: 214.6 kB / 0.9634 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005662/0.8609, allocations: 2.994 MB / 0.9663 GB, free: 268 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.511e-05/0.8609, allocations: 12 kB / 0.9663 GB, free: 256 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.867e-05/0.8609, allocations: 12 kB / 0.9663 GB, free: 244 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/0.861, allocations: 3.984 kB / 0.9663 GB, free: 240 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01247/0.8734, allocations: 7.337 MB / 0.9735 GB, free: 8.664 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/0.8735, allocations: 12.08 kB / 0.9735 GB, free: 8.652 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007942/0.8743, allocations: 179.7 kB / 0.9737 GB, free: 8.477 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002563/0.8769, allocations: 0.8179 MB / 0.9745 GB, free: 7.621 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001106/0.877, allocations: 32 kB / 0.9745 GB, free: 7.59 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02351/0.9005, allocations: 21.95 MB / 0.9959 GB, free: 15.95 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.835e-06/0.9005, allocations: 8 kB / 0.996 GB, free: 15.94 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005814/0.9064, allocations: 3.034 MB / 0.9989 GB, free: 12.8 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009805/0.9074, allocations: 467.6 kB / 0.9994 GB, free: 12.32 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002433/0.9076, allocations: 39.98 kB / 0.9994 GB, free: 12.28 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008129/0.9084, allocations: 67.92 kB / 0.9995 GB, free: 12.21 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003634/0.9088, allocations: 124.7 kB / 0.9996 GB, free: 12.09 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.298e-05/0.9089, allocations: 43.98 kB / 0.9996 GB, free: 12.05 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001468/0.9104, allocations: 0.9717 MB / 1.001 GB, free: 11.05 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.264e-06/0.9104, allocations: 0 / 1.001 GB, free: 11.05 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.002705/0.9131, allocations: 0.789 MB / 1.001 GB, free: 10.26 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (91): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005897/0.919, allocations: 3.629 MB / 1.005 GB, free: 6.508 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.006979/0.926, allocations: 4.031 MB / 1.009 GB, free: 2.332 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.491e-06/0.9261, allocations: 0 / 1.009 GB, free: 2.332 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.004392/0.9305, allocations: 2.756 MB / 1.012 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003377/0.9339, allocations: 0.7278 MB / 1.012 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0414/0.9753, allocations: 22.47 MB / 1.034 GB, free: 7.242 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004065/0.9794, allocations: 3.105 MB / 1.037 GB, free: 4.109 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001431/0.9809, allocations: 454 kB / 1.038 GB, free: 3.664 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00192/0.9828, allocations: 1.542 MB / 1.039 GB, free: 2.121 MB / 0.795 GB Notification: Performance of SimCode: time 1.022e-06/0.9828, allocations: 3.938 kB / 1.039 GB, free: 2.117 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.446/1.429, allocations: 61.46 MB / 1.099 GB, free: 267.3 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.23/14.66, allocations: 8.844 kB / 1.099 GB, free: 267.3 MB / 0.8419 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.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_ThreePhasesUnbalanced_Lines_Examples_ACLine_L.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe 2>&1)