Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_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_RL_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_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.004857/0.004857, allocations: 99.45 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.001164/0.001164, allocations: 191.5 kB / 16.67 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.252/1.252, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002067/0.002067, allocations: 296.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.8929/0.8929, allocations: 169.3 MB / 0.4983 GB, free: 4.406 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00177/0.00177, allocations: 95.84 kB / 0.681 GB, free: 7.441 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4144/0.4161, allocations: 86.96 MB / 0.7659 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N): time 0.02259/0.4388, allocations: 20.23 MB / 0.7857 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01054/0.4494, allocations: 6.453 MB / 0.792 GB, free: 9.098 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001957/0.4513, allocations: 83.62 kB / 0.7921 GB, free: 9.016 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.005627/0.457, allocations: 2.241 MB / 0.7942 GB, free: 6.77 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.003226/0.4602, allocations: 1.244 MB / 0.7955 GB, free: 5.52 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003128/0.4634, allocations: 1.284 MB / 0.7967 GB, free: 4.234 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.00543/0.4688, allocations: 4.877 MB / 0.8015 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006118/0.475, allocations: 5.568 MB / 0.8069 GB, free: 9.707 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003529/0.4785, allocations: 2.119 MB / 0.809 GB, free: 7.582 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003295/0.4819, allocations: 2.344 MB / 0.8113 GB, free: 5.23 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0007596/0.4826, allocations: 428 kB / 0.8117 GB, free: 4.812 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001925/0.4846, allocations: 1.006 MB / 0.8127 GB, free: 3.805 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.001547/0.4861, allocations: 1.665 MB / 0.8143 GB, free: 2.137 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.002352/0.4885, allocations: 1.906 MB / 0.8161 GB, free: 228 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.006557/0.4951, allocations: 6.539 MB / 0.8225 GB, free: 9.668 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.944e-06/0.4951, allocations: 0 / 0.8225 GB, free: 9.668 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.703e-06/0.4951, allocations: 0 / 0.8225 GB, free: 9.668 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0001406/0.4953, allocations: 4 kB / 0.8225 GB, free: 9.664 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.006991/0.5023, allocations: 3.541 MB / 0.826 GB, free: 6.055 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.5023, allocations: 12.03 kB / 0.826 GB, free: 6.043 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006432/0.503, allocations: 458.5 kB / 0.8264 GB, free: 5.582 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003434/0.5064, allocations: 0.6545 MB / 0.8271 GB, free: 4.926 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004452/0.5109, allocations: 2.054 MB / 0.8291 GB, free: 2.812 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001768/0.5111, allocations: 218.3 kB / 0.8293 GB, free: 2.598 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006461/0.5118, allocations: 300.1 kB / 0.8296 GB, free: 2.305 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008396/0.5202, allocations: 4.886 MB / 0.8344 GB, free: 13.22 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.972e-05/0.5203, allocations: 15.89 kB / 0.8344 GB, free: 13.21 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003446/0.5207, allocations: 128 kB / 0.8345 GB, free: 13.08 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004439/0.5211, allocations: 225.7 kB / 0.8347 GB, free: 12.86 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006497/0.5276, allocations: 3.754 MB / 0.8384 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02143/0.5491, allocations: 21.45 MB / 0.8593 GB, free: 1.652 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001714/0.5508, allocations: 1.309 MB / 0.8606 GB, free: 344 kB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00135/0.5522, allocations: 1.057 MB / 0.8616 GB, free: 15.28 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 5.852e-05/0.5523, allocations: 13 kB / 0.8616 GB, free: 15.27 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.415e-05/0.5523, allocations: 47.56 kB / 0.8617 GB, free: 15.21 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=107): time 3.616e-06/0.5523, allocations: 4 kB / 0.8617 GB, free: 15.21 MB / 0.6387 GB Notification: Performance of matching and sorting (n=138): time 0.02345/0.5758, allocations: 8.688 MB / 0.8702 GB, free: 6.465 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.038e-05/0.5759, allocations: 68.66 kB / 0.8702 GB, free: 6.387 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001375/0.5773, allocations: 1.134 MB / 0.8714 GB, free: 5.246 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001058/0.5774, allocations: 45.7 kB / 0.8714 GB, free: 5.195 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007516/0.5781, allocations: 1.339 MB / 0.8727 GB, free: 3.844 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003887/0.5785, allocations: 0.4957 MB / 0.8732 GB, free: 3.344 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000446/0.579, allocations: 299.4 kB / 0.8735 GB, free: 3.043 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.5791, allocations: 309.1 kB / 0.8738 GB, free: 2.738 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0012/0.5803, allocations: 0.9096 MB / 0.8747 GB, free: 1.828 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001433/0.5817, allocations: 1.326 MB / 0.8759 GB, free: 340 kB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002852/0.5846, allocations: 2.43 MB / 0.8783 GB, free: 13.73 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.827e-06/0.5846, allocations: 4 kB / 0.8783 GB, free: 13.73 MB / 0.6544 GB Notification: Performance of matching and sorting (n=203) (initialization): time 0.00582/0.5905, allocations: 3.469 MB / 0.8817 GB, free: 10.24 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.711e-05/0.5905, allocations: 8 kB / 0.8817 GB, free: 10.23 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.861e-05/0.5905, allocations: 12 kB / 0.8817 GB, free: 10.22 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00323/0.5938, allocations: 1.188 MB / 0.8829 GB, free: 9.031 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009919/0.5948, allocations: 255.5 kB / 0.8831 GB, free: 8.781 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01731/0.6121, allocations: 13.85 MB / 0.8967 GB, free: 10.5 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001345/0.6135, allocations: 91.97 kB / 0.8968 GB, free: 10.41 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002208/0.6137, allocations: 64 kB / 0.8968 GB, free: 10.35 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (132): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,17,84.0%), (5,17,92.0%), (5,25,88.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00187/0.6156, allocations: 1.124 MB / 0.8979 GB, free: 9.219 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004085/0.616, allocations: 170.9 kB / 0.8981 GB, free: 9.051 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005638/0.6217, allocations: 3.161 MB / 0.9012 GB, free: 5.871 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.57e-05/0.6217, allocations: 16 kB / 0.9012 GB, free: 5.855 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.7e-05/0.6218, allocations: 15.94 kB / 0.9012 GB, free: 5.84 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.499e-05/0.6218, allocations: 7.969 kB / 0.9012 GB, free: 5.832 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01071/0.6325, allocations: 6.237 MB / 0.9073 GB, free: 15.46 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-05/0.6325, allocations: 4 kB / 0.9073 GB, free: 15.45 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00058/0.6331, allocations: 148.3 kB / 0.9074 GB, free: 15.31 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002798/0.6359, allocations: 1.085 MB / 0.9085 GB, free: 14.22 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.518e-05/0.6361, allocations: 27.98 kB / 0.9085 GB, free: 14.19 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.016/0.6521, allocations: 13.55 MB / 0.9218 GB, free: 236 kB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.965e-06/0.6521, allocations: 7.938 kB / 0.9218 GB, free: 228 kB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005448/0.6576, allocations: 3.155 MB / 0.9248 GB, free: 12.98 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/0.6586, allocations: 435.9 kB / 0.9253 GB, free: 12.53 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003528/0.659, allocations: 28 kB / 0.9253 GB, free: 12.5 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001001/0.66, allocations: 91.83 kB / 0.9254 GB, free: 12.41 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003673/0.6604, allocations: 120.7 kB / 0.9255 GB, free: 12.29 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.185e-05/0.6605, allocations: 36 kB / 0.9255 GB, free: 12.26 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.001223/0.6617, allocations: 0.7671 MB / 0.9263 GB, free: 11.49 MB / 0.7012 GB Notification: Performance of sort global known variables: time 4.51e-07/0.6617, allocations: 4 kB / 0.9263 GB, free: 11.48 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.002205/0.6639, allocations: 0.6602 MB / 0.9269 GB, free: 10.82 MB / 0.7012 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 (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,17,84.0%), (5,25,88.0%), (5,17,92.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005543/0.6695, allocations: 3.745 MB / 0.9306 GB, free: 6.988 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.004969/0.6745, allocations: 3.15 MB / 0.9337 GB, free: 3.801 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 9.247e-06/0.6745, allocations: 0 / 0.9337 GB, free: 3.801 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.003129/0.6777, allocations: 1.951 MB / 0.9356 GB, free: 1.805 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002616/0.6803, allocations: 0.5067 MB / 0.9361 GB, free: 1.32 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03145/0.7118, allocations: 19.2 MB / 0.9548 GB, free: 13.53 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003222/0.715, allocations: 2.34 MB / 0.9571 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001152/0.7162, allocations: 350.1 kB / 0.9574 GB, free: 10.81 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0013/0.7175, allocations: 1.011 MB / 0.9584 GB, free: 9.801 MB / 0.7325 GB Notification: Performance of SimCode: time 8.62e-07/0.7176, allocations: 4 kB / 0.9584 GB, free: 9.797 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.411/1.129, allocations: 52.31 MB / 1.009 GB, free: 160.9 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/12.43, allocations: 12.55 kB / 1.01 GB, free: 160.9 MB / 0.7325 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_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_RL_N.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe 2>&1)