Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_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.ACLineMatrix_RLC_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_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.003948/0.003949, allocations: 99.34 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.001075/0.001075, allocations: 195.1 kB / 16.67 MB, free: 5.977 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.236/1.236, 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.002052/0.002052, allocations: 278.7 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8792/0.8792, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001656/0.001656, allocations: 95.92 kB / 0.681 GB, free: 15.97 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1387/0.1404, 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.ACLineMatrix_RLC_N): time 0.3004/0.4408, allocations: 10.06 MB / 0.7758 GB, free: 10.16 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004499/0.4453, allocations: 3.173 MB / 0.7789 GB, free: 10.09 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003766/0.4457, allocations: 37.19 kB / 0.7789 GB, free: 10.08 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001303/0.447, allocations: 0.6 MB / 0.7795 GB, free: 9.93 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001193/0.4483, allocations: 0.7722 MB / 0.7802 GB, free: 9.738 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001264/0.4495, allocations: 0.7429 MB / 0.781 GB, free: 9.387 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002233/0.4518, allocations: 2.997 MB / 0.7839 GB, free: 8.133 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002207/0.454, allocations: 2.588 MB / 0.7864 GB, free: 7.16 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001318/0.4553, allocations: 1.268 MB / 0.7876 GB, free: 6.621 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001551/0.4569, allocations: 1.564 MB / 0.7892 GB, free: 6 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002792/0.4572, allocations: 234 kB / 0.7894 GB, free: 6 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008515/0.458, allocations: 0.4939 MB / 0.7899 GB, free: 5.902 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000839/0.4589, allocations: 1.071 MB / 0.7909 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0008584/0.4598, allocations: 1.115 MB / 0.792 GB, free: 4.82 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.003462/0.4632, allocations: 3.696 MB / 0.7956 GB, free: 3.676 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.4632, allocations: 0 / 0.7956 GB, free: 3.676 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.252e-06/0.4632, allocations: 0 / 0.7956 GB, free: 3.676 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.283e-05/0.4633, allocations: 0.6562 kB / 0.7956 GB, free: 3.676 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: 439 * Number of variables: 439 Notification: Performance of Generate backend data structure: time 0.003812/0.4671, allocations: 2.194 MB / 0.7978 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.4672, allocations: 9.406 kB / 0.7978 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003703/0.4675, allocations: 259.5 kB / 0.798 GB, free: 2.184 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009066/0.4766, allocations: 1.326 MB / 0.7993 GB, free: 2.004 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002627/0.4792, allocations: 1.305 MB / 0.8006 GB, free: 1.297 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.342e-05/0.4793, allocations: 120.3 kB / 0.8007 GB, free: 1.238 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003147/0.4796, allocations: 152.7 kB / 0.8009 GB, free: 1.184 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005211/0.4849, allocations: 3.432 MB / 0.8042 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.422e-05/0.4849, allocations: 10.31 kB / 0.8042 GB, free: 15.88 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002331/0.4852, allocations: 63.67 kB / 0.8043 GB, free: 15.83 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002694/0.4854, allocations: 205.2 kB / 0.8045 GB, free: 15.8 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004524/0.49, allocations: 3.126 MB / 0.8075 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01655/0.5065, allocations: 13.57 MB / 0.8208 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002287/0.5088, allocations: 1.725 MB / 0.8225 GB, free: 2.957 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001948/0.5108, allocations: 1.444 MB / 0.8239 GB, free: 2.242 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 7.901e-05/0.5109, allocations: 10.19 kB / 0.8239 GB, free: 2.242 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.955e-05/0.5109, allocations: 43.84 kB / 0.8239 GB, free: 2.191 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=104): time 2.975e-06/0.5109, allocations: 0 / 0.8239 GB, free: 2.191 MB / 0.5762 GB Notification: Performance of matching and sorting (n=183): time 0.143/0.654, allocations: 36.73 MB / 0.8598 GB, free: 2.945 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.006e-05/0.6541, allocations: 73.34 kB / 0.8599 GB, free: 2.859 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001873/0.656, allocations: 1.054 MB / 0.8609 GB, free: 1.781 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0002975/0.6563, allocations: 53.7 kB / 0.8609 GB, free: 1.723 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005513/0.6568, allocations: 0.8171 MB / 0.8617 GB, free: 0.8945 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007763/0.6576, allocations: 0.6468 MB / 0.8624 GB, free: 248 kB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001009/0.6586, allocations: 363.6 kB / 0.8627 GB, free: 15.88 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001117/0.6588, allocations: 301.1 kB / 0.863 GB, free: 15.58 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002811/0.6616, allocations: 1.928 MB / 0.8649 GB, free: 13.65 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002913/0.6645, allocations: 2.289 MB / 0.8671 GB, free: 11.23 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005608/0.6701, allocations: 4.394 MB / 0.8714 GB, free: 6.711 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/0.6701, allocations: 4 kB / 0.8714 GB, free: 6.707 MB / 0.6231 GB Notification: Performance of matching and sorting (n=241) (initialization): time 0.02018/0.6903, allocations: 9.033 MB / 0.8802 GB, free: 13.65 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 3.889e-05/0.6904, allocations: 11.98 kB / 0.8802 GB, free: 13.64 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.547e-05/0.6904, allocations: 8 kB / 0.8803 GB, free: 13.63 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01715/0.7076, allocations: 4.971 MB / 0.8851 GB, free: 8.641 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008982/0.7085, allocations: 191.7 kB / 0.8853 GB, free: 8.453 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05617/0.7647, allocations: 38.93 MB / 0.9233 GB, free: 0.9492 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002338/0.7671, allocations: 99.89 kB / 0.9234 GB, free: 0.8516 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004741/0.7676, allocations: 64 kB / 0.9235 GB, free: 0.7891 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (105): * Single equations (assignments): 101 * 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 {(8,16,100.0%), (8,16,100.0%), (8,38,100.0%), (8,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001585/0.7692, allocations: 0.8212 MB / 0.9243 GB, free: 15.95 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004218/0.7696, allocations: 147.1 kB / 0.9244 GB, free: 15.81 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01937/0.789, allocations: 8.882 MB / 0.9331 GB, free: 6.895 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.06e-05/0.789, allocations: 16 kB / 0.9331 GB, free: 6.879 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.538e-05/0.7891, allocations: 32 kB / 0.9331 GB, free: 6.848 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.797e-05/0.7891, allocations: 7.969 kB / 0.9331 GB, free: 6.84 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02669/0.8158, allocations: 13.41 MB / 0.9462 GB, free: 9.27 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-05/0.8159, allocations: 7.938 kB / 0.9462 GB, free: 9.262 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004791/0.8164, allocations: 123.8 kB / 0.9464 GB, free: 9.141 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01588/0.8323, allocations: 4.835 MB / 0.9511 GB, free: 4.293 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001908/0.8325, allocations: 35.98 kB / 0.9511 GB, free: 4.258 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05266/0.8851, allocations: 36.87 MB / 0.9871 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.343e-06/0.8852, allocations: 7.938 kB / 0.9871 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01911/0.9043, allocations: 8.597 MB / 0.9955 GB, free: 6.113 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001664/0.906, allocations: 0.6444 MB / 0.9962 GB, free: 5.449 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004524/0.9065, allocations: 36 kB / 0.9962 GB, free: 5.414 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001476/0.908, allocations: 91.89 kB / 0.9963 GB, free: 5.324 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007603/0.9087, allocations: 165.6 kB / 0.9964 GB, free: 5.164 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001701/0.9089, allocations: 48 kB / 0.9965 GB, free: 5.117 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.001006/0.9099, allocations: 0.7382 MB / 0.9972 GB, free: 4.367 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9099, allocations: 0 / 0.9972 GB, free: 4.367 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.003103/0.913, allocations: 1 MB / 0.9982 GB, free: 3.367 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (66): * Single equations (assignments): 62 * 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 {(8,16,100.0%), (8,38,100.0%), (8,8,100.0%), (15,23,74.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01889/0.9319, allocations: 9.202 MB / 1.007 GB, free: 10.07 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.009878/0.9418, allocations: 5.952 MB / 1.013 GB, free: 4.062 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.9419, allocations: 0 / 1.013 GB, free: 4.062 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.007761/0.9497, allocations: 3.951 MB / 1.017 GB, free: 60 kB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001703/0.9514, allocations: 238.6 kB / 1.017 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0569/1.008, allocations: 31.07 MB / 1.047 GB, free: 240 kB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002082/1.01, allocations: 1.855 MB / 1.049 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0009211/1.011, allocations: 359.4 kB / 1.05 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008347/1.012, allocations: 0.6047 MB / 1.05 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of SimCode: time 9.92e-07/1.012, allocations: 4 kB / 1.05 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4018/1.414, allocations: 76.16 MB / 1.125 GB, free: 277.9 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/12.75, allocations: 20 kB / 1.125 GB, free: 277.8 MB / 0.8419 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_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_ACLineMatrix_RLC_N.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe 2>&1)