Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.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,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R",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.005153/0.005152, allocations: 97.92 kB / 15.73 MB, free: 6.004 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.001315/0.001315, allocations: 197.5 kB / 16.67 MB, free: 5.922 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 4.145 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002489/0.002489, allocations: 279 kB / 290.8 MB, free: 1.75 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.093/1.093, allocations: 178.6 MB / 0.5074 GB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002655/0.002655, allocations: 99.84 kB / 0.6943 GB, free: 3.543 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4442/0.4469, allocations: 89.13 MB / 0.7814 GB, free: 13.83 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.04357/0.4905, allocations: 35.13 MB / 0.8157 GB, free: 4.754 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01769/0.5082, allocations: 9.941 MB / 0.8254 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003906/0.5121, allocations: 145.2 kB / 0.8255 GB, free: 12.75 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.009792/0.5219, allocations: 3.799 MB / 0.8292 GB, free: 9.809 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.00685/0.5288, allocations: 2.037 MB / 0.8312 GB, free: 8.109 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.005235/0.5341, allocations: 1.961 MB / 0.8331 GB, free: 6.488 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.009951/0.544, allocations: 7.97 MB / 0.8409 GB, free: 1.91 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01218/0.5562, allocations: 9.532 MB / 0.8502 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006033/0.5623, allocations: 3.377 MB / 0.8535 GB, free: 5.09 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005822/0.5681, allocations: 3.727 MB / 0.8571 GB, free: 1.352 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.001222/0.5694, allocations: 0.6797 MB / 0.8578 GB, free: 0.6719 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003047/0.5724, allocations: 1.447 MB / 0.8592 GB, free: 15.22 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.002595/0.575, allocations: 2.616 MB / 0.8618 GB, free: 12.6 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.003643/0.5787, allocations: 3.104 MB / 0.8648 GB, free: 9.484 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01185/0.5905, allocations: 10.41 MB / 0.875 GB, free: 15.04 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.5906, allocations: 0 / 0.875 GB, free: 15.04 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.993e-06/0.5906, allocations: 0 / 0.875 GB, free: 15.04 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.000283/0.5909, allocations: 0 / 0.875 GB, free: 15.04 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: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01101/0.6019, allocations: 5.534 MB / 0.8804 GB, free: 9.43 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.602, allocations: 12.03 kB / 0.8804 GB, free: 9.418 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009484/0.6029, allocations: 0.6984 MB / 0.8811 GB, free: 8.711 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004449/0.6074, allocations: 0.9889 MB / 0.882 GB, free: 7.719 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005278/0.6127, allocations: 3.2 MB / 0.8852 GB, free: 4.465 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002774/0.6129, allocations: 357.9 kB / 0.8855 GB, free: 4.113 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006995/0.6137, allocations: 464.3 kB / 0.8859 GB, free: 3.66 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01263/0.6263, allocations: 7.911 MB / 0.8937 GB, free: 11.39 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001106/0.6264, allocations: 23.77 kB / 0.8937 GB, free: 11.36 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005135/0.627, allocations: 211.9 kB / 0.8939 GB, free: 11.16 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005403/0.6275, allocations: 369.1 kB / 0.8942 GB, free: 10.79 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01086/0.6384, allocations: 5.937 MB / 0.9 GB, free: 4.84 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04036/0.6788, allocations: 36 MB / 0.9352 GB, free: 13.61 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003613/0.6824, allocations: 2.146 MB / 0.9373 GB, free: 11.44 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002087/0.6845, allocations: 1.488 MB / 0.9388 GB, free: 9.949 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 9.93e-05/0.6846, allocations: 17.31 kB / 0.9388 GB, free: 9.934 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.777e-05/0.6847, allocations: 59.8 kB / 0.9388 GB, free: 9.867 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=157): time 3.266e-06/0.6847, allocations: 4 kB / 0.9388 GB, free: 9.863 MB / 0.7012 GB Notification: Performance of matching and sorting (n=160): time 0.015/0.6997, allocations: 7.602 MB / 0.9463 GB, free: 1.996 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.371e-05/0.6998, allocations: 68.72 kB / 0.9463 GB, free: 1.918 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002705/0.7025, allocations: 1.864 MB / 0.9481 GB, free: 28 kB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001412/0.7027, allocations: 57.7 kB / 0.9482 GB, free: 15.96 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.001743/0.7044, allocations: 2.18 MB / 0.9503 GB, free: 13.77 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005926/0.705, allocations: 0.5849 MB / 0.9509 GB, free: 13.18 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007173/0.7058, allocations: 408 kB / 0.9513 GB, free: 12.77 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001476/0.7059, allocations: 309.1 kB / 0.9516 GB, free: 12.46 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001744/0.7077, allocations: 1.058 MB / 0.9526 GB, free: 11.4 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002403/0.7101, allocations: 1.76 MB / 0.9543 GB, free: 9.324 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004281/0.7144, allocations: 3.045 MB / 0.9573 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.22e-05/0.7144, allocations: 8 kB / 0.9573 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.006962/0.7214, allocations: 3.934 MB / 0.9612 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.98e-05/0.7214, allocations: 16 kB / 0.9612 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.817e-05/0.7214, allocations: 20 kB / 0.9612 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002664/0.7241, allocations: 0.9316 MB / 0.9621 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001548/0.7257, allocations: 435.2 kB / 0.9625 GB, free: 0.5469 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0246/0.7503, allocations: 22.77 MB / 0.9848 GB, free: 8.098 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002031/0.7523, allocations: 119.9 kB / 0.9849 GB, free: 7.98 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001925/0.7525, allocations: 96 kB / 0.985 GB, free: 7.887 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 (227): * Single equations (assignments): 215 * 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,6,100.0%), (2,6,100.0%), (2,6,100.0%), (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.002944/0.7555, allocations: 1.656 MB / 0.9866 GB, free: 6.219 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004878/0.756, allocations: 266.4 kB / 0.9868 GB, free: 5.957 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005752/0.7618, allocations: 3.26 MB / 0.99 GB, free: 2.645 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.65e-05/0.7618, allocations: 16 kB / 0.99 GB, free: 2.629 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.534e-05/0.7618, allocations: 15.94 kB / 0.99 GB, free: 2.613 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.456e-05/0.7618, allocations: 7.969 kB / 0.99 GB, free: 2.605 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0122/0.774, allocations: 7.561 MB / 0.9974 GB, free: 10.89 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/0.7741, allocations: 4 kB / 0.9974 GB, free: 10.89 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000957/0.775, allocations: 211.6 kB / 0.9976 GB, free: 10.68 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002488/0.7775, allocations: 0.8921 MB / 0.9985 GB, free: 9.75 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001085/0.7777, allocations: 39.98 kB / 0.9985 GB, free: 9.711 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.023/0.8007, allocations: 22.74 MB / 1.021 GB, free: 1.293 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.424e-06/0.8007, allocations: 7.938 kB / 1.021 GB, free: 1.285 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00595/0.8067, allocations: 3.392 MB / 1.024 GB, free: 13.78 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001051/0.8077, allocations: 0.5422 MB / 1.025 GB, free: 13.21 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002806/0.808, allocations: 35.88 kB / 1.025 GB, free: 13.18 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001076/0.8091, allocations: 95.89 kB / 1.025 GB, free: 13.09 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003926/0.8095, allocations: 144.9 kB / 1.025 GB, free: 12.95 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001119/0.8096, allocations: 48.14 kB / 1.025 GB, free: 12.9 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001798/0.8114, allocations: 1.221 MB / 1.026 GB, free: 11.66 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8114, allocations: 0 / 1.026 GB, free: 11.66 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.002658/0.8141, allocations: 0.9062 MB / 1.027 GB, free: 10.75 MB / 0.795 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 (109): * Single equations (assignments): 97 * 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,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,2,100.0%), (2,6,100.0%), (2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005895/0.82, allocations: 3.989 MB / 1.031 GB, free: 6.645 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.00706/0.8271, allocations: 4.447 MB / 1.035 GB, free: 2.047 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/0.8271, allocations: 0 / 1.035 GB, free: 2.047 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.004395/0.8315, allocations: 3.004 MB / 1.038 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003457/0.835, allocations: 0.8282 MB / 1.039 GB, free: 14.08 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0386/0.8736, allocations: 25.18 MB / 1.064 GB, free: 3.805 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003702/0.8773, allocations: 3.209 MB / 1.067 GB, free: 0.5625 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.001713/0.879, allocations: 0.5293 MB / 1.067 GB, free: 28 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3264/1.205, allocations: 1.648 MB / 1.069 GB, free: 250 MB / 0.8262 GB Notification: Performance of SimCode: time 9.22e-07/1.206, allocations: 0 / 1.069 GB, free: 250 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1306/1.336, allocations: 70.3 MB / 1.137 GB, free: 209.5 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.21/15.54, allocations: 6.625 kB / 1.137 GB, free: 209.5 MB / 0.8262 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1)