Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.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,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine",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.001431/0.001431, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 191.8 kB / 16.53 MB, free: 6.391 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.309/1.309, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002236/0.002236, allocations: 291.2 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9427/0.9427, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001686/0.001686, allocations: 98.16 kB / 0.5954 GB, free: 27.77 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1379, allocations: 86.98 MB / 0.6803 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine): time 0.03099/0.1689, allocations: 30.74 MB / 0.7103 GB, free: 1.754 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01946/0.1884, allocations: 13.59 MB / 0.7236 GB, free: 4.133 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002619/0.191, allocations: 143.2 kB / 0.7237 GB, free: 3.992 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0075/0.1986, allocations: 3.202 MB / 0.7269 GB, free: 0.7812 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.006645/0.2052, allocations: 2.66 MB / 0.7295 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.004607/0.2098, allocations: 2.011 MB / 0.7314 GB, free: 12.1 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.00828/0.2181, allocations: 7.621 MB / 0.7389 GB, free: 4.453 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01045/0.2286, allocations: 8.299 MB / 0.747 GB, free: 12.04 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00513/0.2337, allocations: 3.393 MB / 0.7503 GB, free: 8.633 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004923/0.2387, allocations: 3.383 MB / 0.7536 GB, free: 5.238 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.001629/0.2403, allocations: 0.5938 MB / 0.7542 GB, free: 4.645 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003475/0.2438, allocations: 1.498 MB / 0.7556 GB, free: 3.145 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.002724/0.2466, allocations: 2.37 MB / 0.7579 GB, free: 0.7695 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.00364/0.2502, allocations: 2.878 MB / 0.7607 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.008221/0.2584, allocations: 9.402 MB / 0.7699 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.2585, allocations: 0 / 0.7699 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.533e-06/0.2585, allocations: 0 / 0.7699 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001664/0.2587, allocations: 0 / 0.7699 GB, free: 4.449 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: 1133 * Number of variables: 1133 Notification: Performance of Generate backend data structure: time 0.241/0.4996, allocations: 5.131 MB / 0.7749 GB, free: 86.99 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.4997, allocations: 9.719 kB / 0.775 GB, free: 86.99 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001006/0.5007, allocations: 0.6157 MB / 0.7756 GB, free: 86.77 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00549/0.5062, allocations: 1.001 MB / 0.7765 GB, free: 86.49 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004848/0.5111, allocations: 2.89 MB / 0.7794 GB, free: 85.03 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001824/0.5113, allocations: 323.2 kB / 0.7797 GB, free: 84.89 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006065/0.5119, allocations: 417.3 kB / 0.7801 GB, free: 84.76 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009776/0.5217, allocations: 6.788 MB / 0.7867 GB, free: 81.87 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-05/0.5218, allocations: 25.25 kB / 0.7867 GB, free: 81.86 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003787/0.5222, allocations: 184.6 kB / 0.7869 GB, free: 81.73 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008604/0.523, allocations: 372.9 kB / 0.7872 GB, free: 81.69 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007691/0.5307, allocations: 5.113 MB / 0.7922 GB, free: 79.89 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02493/0.5557, allocations: 30.74 MB / 0.8223 GB, free: 52.81 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001748/0.5575, allocations: 1.39 MB / 0.8236 GB, free: 52.08 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001519/0.559, allocations: 1.328 MB / 0.8249 GB, free: 51.41 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 8.387e-05/0.5591, allocations: 13.81 kB / 0.8249 GB, free: 51.41 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.787e-05/0.5591, allocations: 54.81 kB / 0.825 GB, free: 51.36 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=130): time 3.065e-06/0.5591, allocations: 0 / 0.825 GB, free: 51.36 MB / 0.5606 GB Notification: Performance of matching and sorting (n=199): time 0.07874/0.6379, allocations: 23.06 MB / 0.8475 GB, free: 32.07 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.087e-05/0.6379, allocations: 77.41 kB / 0.8476 GB, free: 31.98 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002056/0.64, allocations: 2.066 MB / 0.8496 GB, free: 29.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001454/0.6402, allocations: 61.7 kB / 0.8496 GB, free: 29.84 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007148/0.6409, allocations: 2.009 MB / 0.8516 GB, free: 27.81 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000358/0.6413, allocations: 0.6728 MB / 0.8523 GB, free: 27.14 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000568/0.6418, allocations: 404.2 kB / 0.8527 GB, free: 26.74 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.409e-05/0.6419, allocations: 305.1 kB / 0.8529 GB, free: 26.44 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001523/0.6434, allocations: 1.43 MB / 0.8543 GB, free: 25 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001711/0.6451, allocations: 2.017 MB / 0.8563 GB, free: 22.74 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00341/0.6485, allocations: 3.696 MB / 0.8599 GB, free: 18.8 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.336e-06/0.6485, allocations: 7.938 kB / 0.8599 GB, free: 18.79 MB / 0.5606 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.008661/0.6572, allocations: 5.661 MB / 0.8655 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.6572, allocations: 12 kB / 0.8655 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.665e-05/0.6573, allocations: 20 kB / 0.8655 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005693/0.663, allocations: 2.095 MB / 0.8675 GB, free: 10.89 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/0.6643, allocations: 379.4 kB / 0.8679 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03432/0.6986, allocations: 38.46 MB / 0.9055 GB, free: 1.574 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002437/0.7011, allocations: 127.9 kB / 0.9056 GB, free: 1.449 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001775/0.7013, allocations: 92 kB / 0.9057 GB, free: 1.359 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (204): * Single equations (assignments): 186 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,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.002429/0.7037, allocations: 1.506 MB / 0.9071 GB, free: 15.84 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004178/0.7041, allocations: 276.7 kB / 0.9074 GB, free: 15.57 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009569/0.7137, allocations: 5.223 MB / 0.9125 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.411e-05/0.7137, allocations: 20 kB / 0.9125 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.332e-05/0.7137, allocations: 19.94 kB / 0.9125 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.713e-05/0.7138, allocations: 11.95 kB / 0.9125 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01596/0.7297, allocations: 9.672 MB / 0.922 GB, free: 392 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.297e-05/0.7298, allocations: 8 kB / 0.922 GB, free: 384 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008251/0.7306, allocations: 211.7 kB / 0.9222 GB, free: 172 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005586/0.7362, allocations: 1.862 MB / 0.924 GB, free: 14.26 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000144/0.7364, allocations: 40 kB / 0.9241 GB, free: 14.22 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03459/0.771, allocations: 37.47 MB / 0.9607 GB, free: 6.262 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-05/0.771, allocations: 15.41 kB / 0.9607 GB, free: 6.25 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008775/0.7798, allocations: 4.909 MB / 0.9655 GB, free: 1.184 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001234/0.781, allocations: 0.6147 MB / 0.9661 GB, free: 0.5469 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005563/0.7816, allocations: 47.98 kB / 0.9661 GB, free: 0.5 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001606/0.7832, allocations: 123.8 kB / 0.9662 GB, free: 388 kB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005541/0.7838, allocations: 193.5 kB / 0.9664 GB, free: 196 kB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001363/0.7839, allocations: 56 kB / 0.9665 GB, free: 140 kB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001983/0.7859, allocations: 1.379 MB / 0.9678 GB, free: 14.75 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.51e-07/0.7859, allocations: 0 / 0.9678 GB, free: 14.75 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.00312/0.789, allocations: 1.047 MB / 0.9688 GB, free: 13.7 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (112): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008798/0.7978, allocations: 5.543 MB / 0.9742 GB, free: 7.992 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.01133/0.8092, allocations: 7.211 MB / 0.9813 GB, free: 0.5781 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 8.276e-06/0.8092, allocations: 0 / 0.9813 GB, free: 0.5781 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.006359/0.8156, allocations: 4.406 MB / 0.9856 GB, free: 11.95 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004751/0.8204, allocations: 0.993 MB / 0.9866 GB, free: 11.02 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05345/0.8738, allocations: 34.11 MB / 1.02 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004027/0.8779, allocations: 3.117 MB / 1.023 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.001986/0.8799, allocations: 0.5237 MB / 1.023 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001905/0.8818, allocations: 1.671 MB / 1.025 GB, free: 1.102 MB / 0.7169 GB Notification: Performance of SimCode: time 5.71e-07/0.8818, allocations: 0 / 1.025 GB, free: 1.102 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4469/1.329, allocations: 89.28 MB / 1.112 GB, free: 231.8 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/11.96, allocations: 11.17 kB / 1.112 GB, free: 231.8 MB / 0.7481 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_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.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe 2>&1)