Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_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_L_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_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.001062/0.001062, allocations: 108 kB / 15.61 MB, free: 152 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.001057/0.001057, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.29/1.29, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002011/0.002011, allocations: 282.5 kB / 290.7 MB, free: 1.973 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9381/0.9381, allocations: 169.3 MB / 0.4982 GB, free: 13.87 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001757/0.001757, allocations: 96.81 kB / 0.5954 GB, free: 27.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1436, allocations: 86.98 MB / 0.6803 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N): time 0.03729/0.1809, allocations: 34.83 MB / 0.7143 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01774/0.1987, allocations: 11.49 MB / 0.7255 GB, free: 2.113 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003257/0.202, allocations: 167.2 kB / 0.7257 GB, free: 1.949 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.01049/0.2125, allocations: 4.243 MB / 0.7298 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.006879/0.2194, allocations: 1.99 MB / 0.7318 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.006539/0.2259, allocations: 2.403 MB / 0.7341 GB, free: 9.297 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.009416/0.2354, allocations: 8.468 MB / 0.7424 GB, free: 0.8086 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01636/0.2518, allocations: 11.21 MB / 0.7533 GB, free: 5.48 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006347/0.2581, allocations: 3.728 MB / 0.757 GB, free: 1.742 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007084/0.2653, allocations: 4.179 MB / 0.7611 GB, free: 13.55 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.002749/0.2681, allocations: 0.7773 MB / 0.7618 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005777/0.2739, allocations: 2.04 MB / 0.7638 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.004772/0.2787, allocations: 3.064 MB / 0.7668 GB, free: 7.66 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.006371/0.2851, allocations: 3.393 MB / 0.7701 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.5528/0.8378, allocations: 11.91 MB / 0.7817 GB, free: 39.28 MB / 0.5607 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.8379, allocations: 0 / 0.7817 GB, free: 39.28 MB / 0.5607 GB Notification: Performance of FrontEnd: time 2.204e-06/0.8379, allocations: 0 / 0.7817 GB, free: 39.28 MB / 0.5607 GB Notification: Performance of Transformations before backend: time 0.0003398/0.8382, allocations: 2.062 kB / 0.7817 GB, free: 39.28 MB / 0.5607 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.01556/0.8538, allocations: 5.799 MB / 0.7874 GB, free: 37.25 MB / 0.5607 GB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.8538, allocations: 10.41 kB / 0.7874 GB, free: 37.25 MB / 0.5607 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001276/0.8551, allocations: 0.8029 MB / 0.7882 GB, free: 37.18 MB / 0.5607 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005541/0.8607, allocations: 1.059 MB / 0.7892 GB, free: 36.88 MB / 0.5607 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007928/0.8686, allocations: 3.261 MB / 0.7924 GB, free: 36.22 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005601/0.8692, allocations: 413.2 kB / 0.7928 GB, free: 36.21 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003288/0.8725, allocations: 0.5403 MB / 0.7933 GB, free: 36.2 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01788/0.8904, allocations: 9.078 MB / 0.8022 GB, free: 35.19 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002852/0.8907, allocations: 34.5 kB / 0.8022 GB, free: 35.18 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001478/0.8922, allocations: 237.2 kB / 0.8025 GB, free: 35.18 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004283/0.8926, allocations: 347.2 kB / 0.8028 GB, free: 35.17 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01349/0.9062, allocations: 6.829 MB / 0.8095 GB, free: 35 MB / 0.5607 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03888/0.9451, allocations: 40.12 MB / 0.8486 GB, free: 14.5 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003595/0.9487, allocations: 3.1 MB / 0.8517 GB, free: 12.41 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002448/0.9512, allocations: 1.974 MB / 0.8536 GB, free: 11.39 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001118/0.9513, allocations: 17.59 kB / 0.8536 GB, free: 11.39 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.735e-05/0.9513, allocations: 52.38 kB / 0.8537 GB, free: 11.34 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=179): time 3.507e-06/0.9513, allocations: 3.562 kB / 0.8537 GB, free: 11.34 MB / 0.5763 GB Notification: Performance of matching and sorting (n=182): time 0.0239/0.9753, allocations: 9.97 MB / 0.8634 GB, free: 5.699 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.4e-05/0.9753, allocations: 70.38 kB / 0.8635 GB, free: 5.637 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001989/0.9773, allocations: 1.542 MB / 0.865 GB, free: 4.758 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0001465/0.9775, allocations: 53.48 kB / 0.865 GB, free: 4.703 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.001246/0.9787, allocations: 2.249 MB / 0.8672 GB, free: 2.734 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005341/0.9793, allocations: 0.6283 MB / 0.8678 GB, free: 2.191 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005852/0.9799, allocations: 406.6 kB / 0.8682 GB, free: 1.969 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 7.768e-05/0.98, allocations: 305.1 kB / 0.8685 GB, free: 1.668 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001496/0.9815, allocations: 1.176 MB / 0.8697 GB, free: 1.051 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00202/0.9835, allocations: 1.881 MB / 0.8715 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003984/0.9875, allocations: 3.377 MB / 0.8748 GB, free: 11.54 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.739e-05/0.9875, allocations: 4 kB / 0.8748 GB, free: 11.54 MB / 0.5919 GB Notification: Performance of matching and sorting (n=285) (initialization): time 0.007437/0.995, allocations: 4.585 MB / 0.8793 GB, free: 7.121 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.945e-05/0.995, allocations: 19.5 kB / 0.8793 GB, free: 7.105 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.717e-05/0.9951, allocations: 20 kB / 0.8793 GB, free: 7.086 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003659/0.9987, allocations: 1.601 MB / 0.8809 GB, free: 5.484 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001194/0.9999, allocations: 347.7 kB / 0.8812 GB, free: 5.172 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02279/1.023, allocations: 18.6 MB / 0.8994 GB, free: 2.09 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001951/1.025, allocations: 119.9 kB / 0.8995 GB, free: 1.973 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003496/1.025, allocations: 92 kB / 0.8996 GB, free: 1.883 MB / 0.6075 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 (177): * Single equations (assignments): 173 * 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 {(12,26,30.6%), (6,24,66.7%), (6,16,66.7%), (6,16,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003498/1.029, allocations: 1.905 MB / 0.9014 GB, free: 15.99 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005889/1.029, allocations: 225.3 kB / 0.9017 GB, free: 15.77 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007074/1.036, allocations: 4.08 MB / 0.9056 GB, free: 11.72 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.676e-05/1.036, allocations: 27.98 kB / 0.9057 GB, free: 11.7 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.566e-05/1.036, allocations: 16 kB / 0.9057 GB, free: 11.68 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.921e-05/1.036, allocations: 7.969 kB / 0.9057 GB, free: 11.67 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01743/1.054, allocations: 9.476 MB / 0.9149 GB, free: 2.062 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-05/1.054, allocations: 7.188 kB / 0.915 GB, free: 2.059 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008551/1.055, allocations: 178.4 kB / 0.9151 GB, free: 1.891 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003321/1.058, allocations: 1.364 MB / 0.9165 GB, free: 0.5195 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001382/1.058, allocations: 32 kB / 0.9165 GB, free: 500 kB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02016/1.078, allocations: 17.37 MB / 0.9334 GB, free: 14.61 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.466e-06/1.078, allocations: 10.81 kB / 0.9335 GB, free: 14.6 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007189/1.086, allocations: 4.073 MB / 0.9374 GB, free: 10.5 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001333/1.087, allocations: 0.5218 MB / 0.9379 GB, free: 9.957 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006831/1.088, allocations: 36 kB / 0.938 GB, free: 9.922 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001409/1.089, allocations: 88.39 kB / 0.9381 GB, free: 9.836 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005607/1.09, allocations: 160.5 kB / 0.9382 GB, free: 9.68 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001223/1.09, allocations: 49.97 kB / 0.9383 GB, free: 9.633 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001758/1.092, allocations: 1.005 MB / 0.9392 GB, free: 8.605 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.5e-07/1.092, allocations: 0 / 0.9392 GB, free: 8.605 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.004399/1.096, allocations: 0.9844 MB / 0.9402 GB, free: 7.621 MB / 0.6544 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 (85): * Single equations (assignments): 81 * 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 {(6,16,66.7%), (6,16,66.7%), (6,24,66.7%), (6,24,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007102/1.103, allocations: 4.678 MB / 0.9448 GB, free: 2.918 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.008357/1.112, allocations: 5.19 MB / 0.9498 GB, free: 13.76 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 1.187e-05/1.112, allocations: 4 kB / 0.9498 GB, free: 13.75 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.004155/1.116, allocations: 2.671 MB / 0.9525 GB, free: 11.07 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00397/1.12, allocations: 0.7743 MB / 0.9532 GB, free: 10.35 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04916/1.169, allocations: 28.67 MB / 0.9812 GB, free: 11.91 MB / 0.7013 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00585/1.175, allocations: 3.573 MB / 0.9847 GB, free: 8.297 MB / 0.7013 GB Notification: Performance of simCode: alias equations: time 0.001632/1.176, allocations: 471.9 kB / 0.9851 GB, free: 7.832 MB / 0.7013 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002321/1.179, allocations: 1.78 MB / 0.9869 GB, free: 6.055 MB / 0.7013 GB Notification: Performance of SimCode: time 1.332e-06/1.179, allocations: 0 / 0.9869 GB, free: 6.055 MB / 0.7013 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4015/1.58, allocations: 72.51 MB / 1.058 GB, free: 267.7 MB / 0.7638 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.786/11.37, allocations: 10.81 kB / 1.058 GB, free: 267.7 MB / 0.7638 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_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_L_N.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe 2>&1)