Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_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_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_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.007432/0.007432, allocations: 100 kB / 15.73 MB, free: 6.02 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.001754/0.001754, allocations: 195 kB / 16.67 MB, free: 5.93 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.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00257/0.00257, allocations: 296.7 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 1.007/1.007, allocations: 169.3 MB / 0.4983 GB, free: 4.449 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002705/0.002705, allocations: 99.83 kB / 0.681 GB, free: 7.457 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4019/0.4046, allocations: 86.98 MB / 0.7659 GB, free: 3.848 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N): time 0.03984/0.4445, allocations: 33.31 MB / 0.7985 GB, free: 2.418 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02434/0.4689, allocations: 14.82 MB / 0.8129 GB, free: 3.559 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00327/0.4722, allocations: 155.2 kB / 0.8131 GB, free: 3.406 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.009844/0.4821, allocations: 3.658 MB / 0.8166 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.008821/0.4909, allocations: 2.886 MB / 0.8195 GB, free: 12.84 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.006395/0.4973, allocations: 2.327 MB / 0.8217 GB, free: 10.51 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.01266/0.51, allocations: 8.816 MB / 0.8303 GB, free: 1.672 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01251/0.5225, allocations: 9.577 MB / 0.8397 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006158/0.5287, allocations: 3.95 MB / 0.8436 GB, free: 4.016 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006433/0.5352, allocations: 4.042 MB / 0.8475 GB, free: 15.96 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.001421/0.5366, allocations: 0.7188 MB / 0.8482 GB, free: 15.24 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003545/0.5402, allocations: 1.716 MB / 0.8499 GB, free: 13.52 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.003054/0.5432, allocations: 2.834 MB / 0.8527 GB, free: 10.68 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.004602/0.5478, allocations: 3.388 MB / 0.856 GB, free: 7.281 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01319/0.5611, allocations: 11.22 MB / 0.8669 GB, free: 12.02 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.5611, allocations: 4 kB / 0.8669 GB, free: 12.02 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.793e-06/0.5611, allocations: 0 / 0.8669 GB, free: 12.02 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0002664/0.5614, allocations: 0 / 0.8669 GB, free: 12.02 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: 1338 * Number of variables: 1338 Notification: Performance of Generate backend data structure: time 0.01268/0.5741, allocations: 6.136 MB / 0.8729 GB, free: 5.797 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.5741, allocations: 8.031 kB / 0.8729 GB, free: 5.789 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001128/0.5753, allocations: 0.7193 MB / 0.8736 GB, free: 5.059 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006685/0.5819, allocations: 1.176 MB / 0.8748 GB, free: 3.879 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007719/0.5897, allocations: 3.534 MB / 0.8782 GB, free: 276 kB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003505/0.5901, allocations: 382.4 kB / 0.8786 GB, free: 15.89 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001176/0.5912, allocations: 499.8 kB / 0.8791 GB, free: 15.41 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01423/0.6055, allocations: 8.001 MB / 0.8869 GB, free: 7.129 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001283/0.6056, allocations: 31.77 kB / 0.8869 GB, free: 7.098 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005505/0.6062, allocations: 216 kB / 0.8871 GB, free: 6.887 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001109/0.6073, allocations: 437.6 kB / 0.8875 GB, free: 6.457 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01088/0.6182, allocations: 6.085 MB / 0.8935 GB, free: 368 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04104/0.6593, allocations: 34.95 MB / 0.9276 GB, free: 10.23 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003258/0.6626, allocations: 2.022 MB / 0.9296 GB, free: 8.199 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002774/0.6654, allocations: 1.881 MB / 0.9314 GB, free: 6.328 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001213/0.6655, allocations: 21.98 kB / 0.9314 GB, free: 6.305 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.452e-05/0.6656, allocations: 56.5 kB / 0.9315 GB, free: 6.242 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=171): time 3.507e-06/0.6656, allocations: 0 / 0.9315 GB, free: 6.242 MB / 0.7012 GB Notification: Performance of matching and sorting (n=276): time 0.4817/1.147, allocations: 38.97 MB / 0.9695 GB, free: 181.9 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.366e-05/1.147, allocations: 81.92 kB / 0.9696 GB, free: 181.8 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003608/1.151, allocations: 2.28 MB / 0.9718 GB, free: 181.3 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0003687/1.151, allocations: 73.27 kB / 0.9719 GB, free: 181.2 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.001248/1.153, allocations: 2.338 MB / 0.9742 GB, free: 180.5 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007538/1.153, allocations: 0.9748 MB / 0.9752 GB, free: 179.9 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008925/1.154, allocations: 0.511 MB / 0.9757 GB, free: 179.6 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 3.49e-05/1.154, allocations: 305.7 kB / 0.9759 GB, free: 179.3 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002656/1.157, allocations: 1.97 MB / 0.9779 GB, free: 178.6 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003057/1.16, allocations: 2.601 MB / 0.9804 GB, free: 177.1 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005029/1.165, allocations: 4.934 MB / 0.9852 GB, free: 174.4 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.135e-05/1.165, allocations: 11.78 kB / 0.9852 GB, free: 174.4 MB / 0.7325 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01258/1.178, allocations: 7.773 MB / 0.9928 GB, free: 171.3 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.8e-05/1.178, allocations: 17.19 kB / 0.9928 GB, free: 171.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.057e-05/1.178, allocations: 17.91 kB / 0.9929 GB, free: 171.3 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007981/1.186, allocations: 3.216 MB / 0.996 GB, free: 170.5 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001458/1.187, allocations: 406.2 kB / 0.9964 GB, free: 170.5 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03428/1.222, allocations: 33.9 MB / 1.029 GB, free: 139.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002679/1.224, allocations: 163.8 kB / 1.03 GB, free: 139.6 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002185/1.224, allocations: 108 kB / 1.03 GB, free: 139.5 MB / 0.7325 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 (202): * Single equations (assignments): 196 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(10,28,71.0%), (10,28,65.0%), (6,24,77.8%), (6,24,77.8%), (5,17,84.0%), (5,17,84.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002203/1.227, allocations: 1.795 MB / 1.032 GB, free: 137.7 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004612/1.227, allocations: 348.5 kB / 1.032 GB, free: 137.4 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01145/1.239, allocations: 7.364 MB / 1.039 GB, free: 129.9 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-05/1.239, allocations: 28 kB / 1.039 GB, free: 129.9 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.8e-05/1.239, allocations: 28 kB / 1.039 GB, free: 129.9 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.085e-05/1.239, allocations: 15.94 kB / 1.039 GB, free: 129.9 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01721/1.256, allocations: 12.92 MB / 1.052 GB, free: 116.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.451e-05/1.256, allocations: 11.83 kB / 1.052 GB, free: 116.8 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008392/1.257, allocations: 231.5 kB / 1.052 GB, free: 116.6 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007089/1.264, allocations: 2.856 MB / 1.055 GB, free: 113.7 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003064/1.264, allocations: 56 kB / 1.055 GB, free: 113.7 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03288/1.297, allocations: 32.7 MB / 1.087 GB, free: 80.13 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.63e-06/1.297, allocations: 11.94 kB / 1.087 GB, free: 80.12 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01013/1.307, allocations: 6.9 MB / 1.093 GB, free: 73 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001282/1.309, allocations: 0.7917 MB / 1.094 GB, free: 72.19 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004028/1.309, allocations: 56 kB / 1.094 GB, free: 72.14 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001644/1.311, allocations: 171.8 kB / 1.094 GB, free: 71.97 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007037/1.311, allocations: 249.5 kB / 1.095 GB, free: 71.73 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001614/1.312, allocations: 72 kB / 1.095 GB, free: 71.66 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.00161/1.313, allocations: 1.525 MB / 1.096 GB, free: 70.13 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/1.313, allocations: 0 / 1.096 GB, free: 70.13 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.00299/1.316, allocations: 1.375 MB / 1.098 GB, free: 68.75 MB / 0.7325 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 (105): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(5,17,84.0%), (6,24,77.8%), (10,28,65.0%), (5,17,92.0%), (6,24,77.8%), (10,28,65.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01032/1.327, allocations: 7.533 MB / 1.105 GB, free: 61 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.009778/1.336, allocations: 6.946 MB / 1.112 GB, free: 53.97 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.048e-05/1.336, allocations: 4 kB / 1.112 GB, free: 53.97 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.006513/1.343, allocations: 4.432 MB / 1.116 GB, free: 49.46 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004214/1.347, allocations: 1.124 MB / 1.117 GB, free: 48.41 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05241/1.4, allocations: 39.19 MB / 1.155 GB, free: 8.145 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003225/1.403, allocations: 3.639 MB / 1.159 GB, free: 4.473 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001737/1.405, allocations: 0.5556 MB / 1.16 GB, free: 3.914 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001764/1.406, allocations: 1.975 MB / 1.161 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of SimCode: time 1.002e-06/1.406, allocations: 4 kB / 1.161 GB, free: 1.934 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3074/1.714, allocations: 111.6 MB / 1.27 GB, free: 3.656 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.69/18.4, allocations: 10.03 kB / 1.271 GB, free: 3.652 MB / 0.8419 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_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_N.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe 2>&1)