Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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_R_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_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.007952/0.007952, allocations: 100.5 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.001891/0.001891, allocations: 196.6 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.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003656/0.003656, allocations: 285.6 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.194/1.194, allocations: 178.5 MB / 0.5074 GB, free: 12.7 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002698/0.002698, allocations: 99.84 kB / 0.6943 GB, free: 15.2 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.417/0.4197, allocations: 89.13 MB / 0.7814 GB, free: 1.152 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04563/0.4654, allocations: 37.94 MB / 0.8184 GB, free: 2.707 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02099/0.4864, allocations: 10.99 MB / 0.8291 GB, free: 7.688 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003525/0.49, allocations: 159.2 kB / 0.8293 GB, free: 7.531 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.01149/0.5015, allocations: 4.357 MB / 0.8335 GB, free: 3.164 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.006554/0.5081, allocations: 2.223 MB / 0.8357 GB, free: 0.9297 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.005712/0.5138, allocations: 2.162 MB / 0.8378 GB, free: 14.77 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.01166/0.5255, allocations: 9.28 MB / 0.8469 GB, free: 5.461 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01491/0.5404, allocations: 11.27 MB / 0.8579 GB, free: 10.08 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00646/0.5469, allocations: 3.996 MB / 0.8618 GB, free: 6.07 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007751/0.5547, allocations: 4.514 MB / 0.8662 GB, free: 1.543 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.002493/0.5572, allocations: 0.8203 MB / 0.867 GB, free: 0.7227 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004584/0.5618, allocations: 1.584 MB / 0.8686 GB, free: 15.14 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.004515/0.5663, allocations: 3.154 MB / 0.8716 GB, free: 11.98 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.005947/0.5723, allocations: 3.661 MB / 0.8752 GB, free: 8.301 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.01655/0.5889, allocations: 12.34 MB / 0.8873 GB, free: 11.93 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.5889, allocations: 0 / 0.8873 GB, free: 11.93 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.393e-06/0.5889, allocations: 0 / 0.8873 GB, free: 11.93 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 0.0002071/0.5891, allocations: 0 / 0.8873 GB, free: 11.93 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.01252/0.6017, allocations: 6.471 MB / 0.8936 GB, free: 5.375 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.6017, allocations: 12.03 kB / 0.8936 GB, free: 5.363 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001174/0.6029, allocations: 0.8333 MB / 0.8944 GB, free: 4.52 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004959/0.6079, allocations: 1.09 MB / 0.8955 GB, free: 3.426 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006267/0.6141, allocations: 3.632 MB / 0.899 GB, free: 15.74 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003403/0.6145, allocations: 435.7 kB / 0.8994 GB, free: 15.32 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008938/0.6154, allocations: 0.5355 MB / 0.9 GB, free: 14.78 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01723/0.6326, allocations: 9.385 MB / 0.9091 GB, free: 5.059 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001306/0.6328, allocations: 27.77 kB / 0.9091 GB, free: 5.031 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007018/0.6335, allocations: 251.9 kB / 0.9094 GB, free: 4.785 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006258/0.6341, allocations: 418.9 kB / 0.9098 GB, free: 4.375 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01419/0.6483, allocations: 7.123 MB / 0.9167 GB, free: 13.24 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04963/0.698, allocations: 41.06 MB / 0.9568 GB, free: 452 kB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005052/0.7031, allocations: 3.1 MB / 0.9599 GB, free: 13.33 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003276/0.7064, allocations: 2.153 MB / 0.962 GB, free: 11.18 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001382/0.7065, allocations: 22 kB / 0.962 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.836e-05/0.7066, allocations: 60.56 kB / 0.9621 GB, free: 11.09 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=209): time 4.027e-06/0.7066, allocations: 0 / 0.9621 GB, free: 11.09 MB / 0.7325 GB Notification: Performance of matching and sorting (n=212): time 0.02497/0.7316, allocations: 10.64 MB / 0.9724 GB, free: 368 kB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.785e-05/0.7317, allocations: 73.41 kB / 0.9725 GB, free: 284 kB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003041/0.7347, allocations: 2.006 MB / 0.9745 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0001484/0.7349, allocations: 65.7 kB / 0.9745 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.001821/0.7367, allocations: 2.478 MB / 0.977 GB, free: 11.68 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006826/0.7374, allocations: 0.7669 MB / 0.9777 GB, free: 10.91 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008039/0.7382, allocations: 485.5 kB / 0.9782 GB, free: 10.43 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.7384, allocations: 301.1 kB / 0.9785 GB, free: 10.13 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00215/0.7405, allocations: 1.372 MB / 0.9798 GB, free: 8.754 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002753/0.7433, allocations: 2.108 MB / 0.9818 GB, free: 6.328 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005246/0.7485, allocations: 3.766 MB / 0.9855 GB, free: 2.254 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.971e-05/0.7486, allocations: 12 kB / 0.9855 GB, free: 2.242 MB / 0.7481 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.3233/1.072, allocations: 5.078 MB / 0.9905 GB, free: 180.5 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.451e-05/1.072, allocations: 17.84 kB / 0.9905 GB, free: 180.5 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.247e-05/1.072, allocations: 22.25 kB / 0.9905 GB, free: 180.5 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003817/1.076, allocations: 1.587 MB / 0.9921 GB, free: 180.2 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001827/1.078, allocations: 456.5 kB / 0.9925 GB, free: 180.1 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02088/1.099, allocations: 18.58 MB / 1.011 GB, free: 169.1 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002241/1.101, allocations: 150 kB / 1.011 GB, free: 169.1 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000285/1.101, allocations: 104.9 kB / 1.011 GB, free: 169.1 MB / 0.7481 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 (231): * Single equations (assignments): 227 * 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 {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003147/1.104, allocations: 1.952 MB / 1.013 GB, free: 168.2 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000562/1.105, allocations: 303.5 kB / 1.013 GB, free: 168.2 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006549/1.111, allocations: 4.447 MB / 1.017 GB, free: 166.2 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.016e-05/1.111, allocations: 19.91 kB / 1.017 GB, free: 166.2 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.443e-05/1.112, allocations: 17.31 kB / 1.017 GB, free: 166.2 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.871e-05/1.112, allocations: 7.969 kB / 1.017 GB, free: 166.2 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01282/1.124, allocations: 9.667 MB / 1.027 GB, free: 160.5 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.668e-06/1.124, allocations: 3.969 kB / 1.027 GB, free: 160.5 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009039/1.125, allocations: 235.5 kB / 1.027 GB, free: 160.5 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002894/1.128, allocations: 1.43 MB / 1.029 GB, free: 159.8 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001261/1.128, allocations: 43.25 kB / 1.029 GB, free: 159.8 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01715/1.146, allocations: 18.59 MB / 1.047 GB, free: 144.1 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/1.146, allocations: 7.938 kB / 1.047 GB, free: 144.1 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00571/1.151, allocations: 4.556 MB / 1.051 GB, free: 139.6 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009947/1.152, allocations: 0.6486 MB / 1.052 GB, free: 138.9 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003446/1.153, allocations: 40.19 kB / 1.052 GB, free: 138.8 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001224/1.154, allocations: 123.8 kB / 1.052 GB, free: 138.7 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003999/1.154, allocations: 185.6 kB / 1.052 GB, free: 138.5 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000124/1.154, allocations: 56 kB / 1.052 GB, free: 138.5 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.001377/1.156, allocations: 1.315 MB / 1.054 GB, free: 137.2 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.1e-07/1.156, allocations: 0 / 1.054 GB, free: 137.2 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.002615/1.158, allocations: 1.141 MB / 1.055 GB, free: 136 MB / 0.7481 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 (107): * Single equations (assignments): 103 * 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 {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005659/1.164, allocations: 5.179 MB / 1.06 GB, free: 130.8 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.005941/1.17, allocations: 4.726 MB / 1.064 GB, free: 126 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/1.17, allocations: 1 kB / 1.064 GB, free: 126 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.003683/1.174, allocations: 2.932 MB / 1.067 GB, free: 123 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003378/1.177, allocations: 0.8983 MB / 1.068 GB, free: 122.2 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03809/1.215, allocations: 30.54 MB / 1.098 GB, free: 90.45 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003223/1.219, allocations: 3.694 MB / 1.101 GB, free: 86.71 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.001714/1.22, allocations: 0.5556 MB / 1.102 GB, free: 86.15 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001735/1.222, allocations: 1.948 MB / 1.104 GB, free: 84.21 MB / 0.7481 GB Notification: Performance of SimCode: time 1.262e-06/1.222, allocations: 0 / 1.104 GB, free: 84.21 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1198/1.342, allocations: 85.3 MB / 1.187 GB, free: 15.93 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.63/16.97, allocations: 7.812 kB / 1.187 GB, free: 15.93 MB / 0.7637 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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_R_N.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1)