Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_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_RL_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_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.001312/0.001312, 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.001388/0.001388, allocations: 191.3 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.384/1.384, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002477/0.002477, allocations: 283 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.048/1.048, allocations: 178.6 MB / 0.5073 GB, free: 4.551 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002731/0.002731, allocations: 101 kB / 0.6066 GB, free: 24.56 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1519/0.1547, allocations: 89.14 MB / 0.6936 GB, free: 4.211 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02866/0.1834, allocations: 23.4 MB / 0.7165 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0116/0.195, allocations: 6.501 MB / 0.7228 GB, free: 6.234 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001447/0.1965, allocations: 91.56 kB / 0.7229 GB, free: 6.145 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.003717/0.2002, allocations: 1.497 MB / 0.7244 GB, free: 4.645 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.00372/0.2039, allocations: 1.82 MB / 0.7261 GB, free: 2.816 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003175/0.2071, allocations: 1.453 MB / 0.7276 GB, free: 1.363 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.007552/0.2147, allocations: 6.916 MB / 0.7343 GB, free: 10.43 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008918/0.2236, allocations: 7 MB / 0.7412 GB, free: 3.332 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004436/0.2281, allocations: 2.832 MB / 0.7439 GB, free: 0.4922 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005679/0.2338, allocations: 3.482 MB / 0.7473 GB, free: 13 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.001109/0.2349, allocations: 0.5273 MB / 0.7478 GB, free: 12.47 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002715/0.2376, allocations: 1.17 MB / 0.749 GB, free: 11.3 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0028/0.2404, allocations: 2.456 MB / 0.7514 GB, free: 8.84 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.003586/0.244, allocations: 2.54 MB / 0.7539 GB, free: 6.289 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.2882/0.5322, allocations: 8.458 MB / 0.7621 GB, free: 30.69 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/0.5323, allocations: 0.875 kB / 0.7621 GB, free: 30.69 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.084e-06/0.5323, allocations: 0.875 kB / 0.7621 GB, free: 30.69 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0002751/0.5326, allocations: 0 / 0.7621 GB, free: 30.69 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1053 * Number of variables: 1053 Notification: Performance of Generate backend data structure: time 0.01077/0.5434, allocations: 4.428 MB / 0.7664 GB, free: 29.03 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.5434, allocations: 9.688 kB / 0.7664 GB, free: 29.03 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008878/0.5443, allocations: 0.5719 MB / 0.767 GB, free: 28.97 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00857/0.5529, allocations: 1.676 MB / 0.7686 GB, free: 28.73 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00544/0.5584, allocations: 2.574 MB / 0.7712 GB, free: 28.14 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002683/0.5587, allocations: 279.5 kB / 0.7714 GB, free: 28.14 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001322/0.56, allocations: 361.4 kB / 0.7718 GB, free: 28.13 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01248/0.5725, allocations: 7.49 MB / 0.7791 GB, free: 27.37 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.811e-05/0.5726, allocations: 17.95 kB / 0.7791 GB, free: 27.36 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004581/0.5731, allocations: 159.4 kB / 0.7793 GB, free: 27.36 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005856/0.5736, allocations: 489 kB / 0.7797 GB, free: 27.36 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009625/0.5833, allocations: 5.691 MB / 0.7853 GB, free: 26.58 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02962/0.6129, allocations: 31.72 MB / 0.8163 GB, free: 16.56 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002581/0.6156, allocations: 2.089 MB / 0.8183 GB, free: 15.47 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002781/0.6184, allocations: 2.184 MB / 0.8204 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001496/0.6185, allocations: 20.14 kB / 0.8204 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.393e-05/0.6186, allocations: 46.69 kB / 0.8205 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=146): time 3.266e-06/0.6186, allocations: 0 / 0.8205 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=251): time 0.3184/0.937, allocations: 77 MB / 0.8957 GB, free: 9.773 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.629e-05/0.9371, allocations: 81.39 kB / 0.8958 GB, free: 9.684 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002457/0.9396, allocations: 1.672 MB / 0.8974 GB, free: 7.969 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0004454/0.94, allocations: 61.7 kB / 0.8974 GB, free: 7.902 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.001347/0.9414, allocations: 1.753 MB / 0.8992 GB, free: 6.133 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009782/0.9424, allocations: 0.8486 MB / 0.9 GB, free: 5.293 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001075/0.9435, allocations: 485.2 kB / 0.9005 GB, free: 4.812 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001289/0.9436, allocations: 301.1 kB / 0.9007 GB, free: 4.516 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004123/0.9477, allocations: 2.734 MB / 0.9034 GB, free: 1.777 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00466/0.9524, allocations: 3.326 MB / 0.9067 GB, free: 14.21 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009429/0.9618, allocations: 6.397 MB / 0.9129 GB, free: 7.645 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.12e-05/0.9619, allocations: 4 kB / 0.9129 GB, free: 7.641 MB / 0.6387 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.03638/0.9983, allocations: 14.68 MB / 0.9272 GB, free: 9.207 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.973e-05/0.9983, allocations: 12 kB / 0.9273 GB, free: 9.195 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.183e-05/0.9984, allocations: 20 kB / 0.9273 GB, free: 9.176 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05008/1.049, allocations: 9.302 MB / 0.9364 GB, free: 15.86 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002277/1.051, allocations: 297.8 kB / 0.9366 GB, free: 15.59 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1088/1.16, allocations: 52.39 MB / 0.9878 GB, free: 10.46 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003385/1.163, allocations: 227.7 kB / 0.988 GB, free: 10.23 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003729/1.164, allocations: 96 kB / 0.9881 GB, free: 10.14 MB / 0.7169 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 (157): * Single equations (assignments): 151 * 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 {(19,19,64.8%), (19,19,60.9%), (12,18,50.0%), (12,18,50.0%), (12,10,52.8%), (12,10,52.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002783/1.166, allocations: 1.586 MB / 0.9897 GB, free: 8.566 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006623/1.167, allocations: 249 kB / 0.9899 GB, free: 8.32 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03594/1.203, allocations: 14.75 MB / 1.004 GB, free: 9.711 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-05/1.203, allocations: 28 kB / 1.004 GB, free: 9.684 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001315/1.203, allocations: 44 kB / 1.004 GB, free: 9.641 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.308e-05/1.203, allocations: 11.95 kB / 1.004 GB, free: 9.629 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0479/1.251, allocations: 20.52 MB / 1.024 GB, free: 5.199 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.008e-05/1.251, allocations: 4 kB / 1.024 GB, free: 5.195 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008262/1.252, allocations: 162.8 kB / 1.025 GB, free: 5.047 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.032/1.284, allocations: 9.067 MB / 1.033 GB, free: 11.96 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005404/1.285, allocations: 48 kB / 1.033 GB, free: 11.91 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3429/1.627, allocations: 51.95 MB / 1.084 GB, free: 253.8 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/1.628, allocations: 14.47 kB / 1.084 GB, free: 253.8 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02788/1.655, allocations: 14.36 MB / 1.098 GB, free: 247.7 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00179/1.657, allocations: 0.8423 MB / 1.099 GB, free: 247.1 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004583/1.658, allocations: 53.36 kB / 1.099 GB, free: 247.1 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0021/1.66, allocations: 207.4 kB / 1.099 GB, free: 247 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001237/1.661, allocations: 246.2 kB / 1.1 GB, free: 246.9 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001966/1.661, allocations: 67.78 kB / 1.1 GB, free: 246.8 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001193/1.662, allocations: 1.125 MB / 1.101 GB, free: 246.2 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.7e-07/1.662, allocations: 0 / 1.101 GB, free: 246.2 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.003952/1.666, allocations: 1.614 MB / 1.102 GB, free: 245.7 MB / 0.7637 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 (80): * Single equations (assignments): 74 * 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 {(12,10,53.5%), (12,18,50.0%), (19,19,64.8%), (12,10,53.5%), (12,18,50.0%), (19,19,54.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02712/1.694, allocations: 14.98 MB / 1.117 GB, free: 230.6 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.02105/1.715, allocations: 11.32 MB / 1.128 GB, free: 219.3 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/1.715, allocations: 4.875 kB / 1.128 GB, free: 219.3 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.01573/1.73, allocations: 7.319 MB / 1.135 GB, free: 211.9 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002756/1.733, allocations: 0.5571 MB / 1.136 GB, free: 211.4 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08167/1.815, allocations: 53.37 MB / 1.188 GB, free: 155.9 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00258/1.817, allocations: 3.224 MB / 1.191 GB, free: 152.6 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.001058/1.819, allocations: 390.4 kB / 1.191 GB, free: 152.3 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00111/1.82, allocations: 1.464 MB / 1.193 GB, free: 150.8 MB / 0.7637 GB Notification: Performance of SimCode: time 1.152e-06/1.82, allocations: 0 / 1.193 GB, free: 150.8 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1605/1.98, allocations: 119.5 MB / 1.309 GB, free: 31.89 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/13.55, allocations: 9.359 kB / 1.309 GB, free: 31.89 MB / 0.7637 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_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_RL_N.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe 2>&1)