Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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_R_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_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.001302/0.001302, 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.001281/0.001281, allocations: 193.9 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.415/1.415, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002553/0.002553, allocations: 290.7 kB / 290.7 MB, free: 1.977 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.055/1.055, allocations: 178.5 MB / 0.5073 GB, free: 4.578 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002701/0.002701, allocations: 96.78 kB / 0.6066 GB, free: 24.61 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1564/0.1591, allocations: 89.14 MB / 0.6936 GB, free: 4.195 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04483/0.204, allocations: 37.94 MB / 0.7307 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01853/0.2226, allocations: 11 MB / 0.7414 GB, free: 3.121 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002855/0.2255, allocations: 155.3 kB / 0.7416 GB, free: 2.969 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.01081/0.2363, allocations: 4.351 MB / 0.7458 GB, free: 14.61 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.006183/0.2425, allocations: 2.223 MB / 0.748 GB, free: 12.38 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.005546/0.2481, allocations: 2.17 MB / 0.7501 GB, free: 10.21 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.01127/0.2593, allocations: 9.288 MB / 0.7592 GB, free: 0.8906 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3198/0.5792, allocations: 11.34 MB / 0.7702 GB, free: 15.13 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007474/0.5867, allocations: 3.979 MB / 0.7741 GB, free: 15 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008414/0.5952, allocations: 4.511 MB / 0.7785 GB, free: 14.49 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.003482/0.5987, allocations: 0.8224 MB / 0.7793 GB, free: 14.49 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006719/0.6055, allocations: 1.587 MB / 0.7809 GB, free: 14.49 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.006919/0.6124, allocations: 3.15 MB / 0.784 GB, free: 14.27 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.01033/0.6228, allocations: 3.654 MB / 0.7875 GB, free: 13.4 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01803/0.6408, allocations: 12.24 MB / 0.7995 GB, free: 11.77 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.6409, allocations: 0 / 0.7995 GB, free: 11.77 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.144e-06/0.6409, allocations: 0 / 0.7995 GB, free: 11.77 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0004515/0.6414, allocations: 1.188 kB / 0.7995 GB, free: 11.77 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: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.02548/0.6669, allocations: 6.325 MB / 0.8056 GB, free: 7.891 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.6669, allocations: 9.812 kB / 0.8057 GB, free: 7.891 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003819/0.6707, allocations: 0.8342 MB / 0.8065 GB, free: 7.312 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007611/0.6784, allocations: 1.057 MB / 0.8075 GB, free: 6.812 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008472/0.6869, allocations: 3.424 MB / 0.8108 GB, free: 4.781 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003756/0.6873, allocations: 424.9 kB / 0.8113 GB, free: 4.598 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003087/0.6904, allocations: 0.5389 MB / 0.8118 GB, free: 4.426 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02818/0.7186, allocations: 9.384 MB / 0.8209 GB, free: 14.74 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003259/0.719, allocations: 20.53 kB / 0.821 GB, free: 14.74 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002972/0.7219, allocations: 245.2 kB / 0.8212 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007216/0.7227, allocations: 423.7 kB / 0.8216 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01812/0.7408, allocations: 7.124 MB / 0.8286 GB, free: 9.172 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05941/0.8003, allocations: 41.32 MB / 0.8689 GB, free: 12.7 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005417/0.8057, allocations: 3.102 MB / 0.8719 GB, free: 9.609 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003506/0.8092, allocations: 2.133 MB / 0.874 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001622/0.8094, allocations: 24.27 kB / 0.874 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.32e-05/0.8095, allocations: 63.84 kB / 0.8741 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=209): time 4.368e-06/0.8095, allocations: 0 / 0.8741 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of matching and sorting (n=212): time 0.02688/0.8364, allocations: 10.56 MB / 0.8844 GB, free: 12.8 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.417e-05/0.8365, allocations: 81.34 kB / 0.8845 GB, free: 12.71 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003449/0.84, allocations: 2.002 MB / 0.8864 GB, free: 10.69 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.000274/0.8403, allocations: 65.7 kB / 0.8865 GB, free: 10.62 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.001921/0.8422, allocations: 2.397 MB / 0.8889 GB, free: 8.195 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008929/0.8431, allocations: 0.7356 MB / 0.8896 GB, free: 7.465 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009607/0.8441, allocations: 481.2 kB / 0.89 GB, free: 6.988 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.000136/0.8442, allocations: 301.1 kB / 0.8903 GB, free: 6.691 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002283/0.8465, allocations: 1.371 MB / 0.8917 GB, free: 5.32 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002889/0.8494, allocations: 2.106 MB / 0.8937 GB, free: 2.906 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005415/0.8548, allocations: 3.774 MB / 0.8974 GB, free: 14.92 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-05/0.8549, allocations: 8 kB / 0.8974 GB, free: 14.91 MB / 0.6387 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.008946/0.8638, allocations: 5.064 MB / 0.9023 GB, free: 10.01 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 3.308e-05/0.8639, allocations: 16 kB / 0.9024 GB, free: 9.996 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.384e-05/0.8639, allocations: 24 kB / 0.9024 GB, free: 9.973 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003763/0.8677, allocations: 1.599 MB / 0.9039 GB, free: 8.371 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001788/0.8695, allocations: 456.3 kB / 0.9044 GB, free: 7.957 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0254/0.8949, allocations: 18.58 MB / 0.9225 GB, free: 4.875 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002701/0.8976, allocations: 147.9 kB / 0.9227 GB, free: 4.73 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000554/0.8982, allocations: 108 kB / 0.9228 GB, free: 4.625 MB / 0.6544 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 (231): * Single equations (assignments): 227 * 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 {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004839/0.9031, allocations: 1.946 MB / 0.9247 GB, free: 2.699 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009598/0.904, allocations: 288.6 kB / 0.9249 GB, free: 2.414 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008568/0.9126, allocations: 4.446 MB / 0.9293 GB, free: 13.99 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.459e-05/0.9127, allocations: 20 kB / 0.9293 GB, free: 13.97 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.193e-05/0.9127, allocations: 20 kB / 0.9293 GB, free: 13.95 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.651e-05/0.9128, allocations: 11.95 kB / 0.9293 GB, free: 13.94 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02059/0.9334, allocations: 9.664 MB / 0.9388 GB, free: 4.254 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.987e-05/0.9334, allocations: 7.984 kB / 0.9388 GB, free: 4.246 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001148/0.9346, allocations: 239.2 kB / 0.939 GB, free: 4.027 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003618/0.9382, allocations: 1.43 MB / 0.9404 GB, free: 2.59 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003281/0.9386, allocations: 40 kB / 0.9404 GB, free: 2.551 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02541/0.964, allocations: 18.58 MB / 0.9586 GB, free: 15.46 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.079e-05/0.964, allocations: 15.22 kB / 0.9586 GB, free: 15.45 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009024/0.9731, allocations: 4.552 MB / 0.9631 GB, free: 10.87 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001722/0.9748, allocations: 0.6376 MB / 0.9637 GB, free: 10.21 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009562/0.9758, allocations: 43.38 kB / 0.9637 GB, free: 10.17 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001971/0.9778, allocations: 115.9 kB / 0.9638 GB, free: 10.06 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000577/0.9784, allocations: 181.3 kB / 0.964 GB, free: 9.883 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001923/0.9786, allocations: 60 kB / 0.9641 GB, free: 9.824 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.002564/0.9811, allocations: 1.315 MB / 0.9653 GB, free: 8.5 MB / 0.7012 GB Notification: Performance of sort global known variables: time 2.21e-07/0.9812, allocations: 0 / 0.9653 GB, free: 8.5 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.004302/0.9855, allocations: 1.145 MB / 0.9665 GB, free: 7.355 MB / 0.7012 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 (107): * Single equations (assignments): 103 * 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 {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008223/0.9937, allocations: 5.153 MB / 0.9715 GB, free: 2.176 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.01076/1.004, allocations: 5.9 MB / 0.9773 GB, free: 12.31 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.343e-05/1.005, allocations: 4 kB / 0.9773 GB, free: 12.31 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.005232/1.01, allocations: 2.925 MB / 0.9801 GB, free: 9.367 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005183/1.015, allocations: 0.889 MB / 0.981 GB, free: 8.504 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06057/1.076, allocations: 33.64 MB / 1.014 GB, free: 4.602 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006349/1.082, allocations: 3.694 MB / 1.017 GB, free: 0.875 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.002391/1.084, allocations: 0.5479 MB / 1.018 GB, free: 328 kB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003008/1.087, allocations: 1.955 MB / 1.02 GB, free: 14.4 MB / 0.7637 GB Notification: Performance of SimCode: time 9.82e-07/1.087, allocations: 0 / 1.02 GB, free: 14.4 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4547/1.542, allocations: 85.71 MB / 1.104 GB, free: 260.3 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/12.99, allocations: 9.188 kB / 1.104 GB, free: 260.3 MB / 0.7794 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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_R_N.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1)