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.00172/0.00172, 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.001727/0.001727, allocations: 195 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.318/1.318, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002247/0.002247, allocations: 282.8 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9664/0.9664, allocations: 169.3 MB / 0.4982 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001757, allocations: 106.4 kB / 0.5954 GB, free: 27.9 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.159/0.1608, allocations: 86.98 MB / 0.6803 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04105/0.2019, allocations: 37.93 MB / 0.7173 GB, free: 10.51 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01839/0.2203, allocations: 10.99 MB / 0.7281 GB, free: 15.49 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003401/0.2237, allocations: 159.2 kB / 0.7282 GB, free: 15.33 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.01076/0.2346, allocations: 4.352 MB / 0.7325 GB, free: 10.97 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.006505/0.2411, allocations: 2.219 MB / 0.7346 GB, free: 8.742 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.006576/0.2477, allocations: 2.177 MB / 0.7368 GB, free: 6.566 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.01167/0.2594, allocations: 9.284 MB / 0.7458 GB, free: 13.26 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0174/0.2768, allocations: 11.35 MB / 0.7569 GB, free: 1.785 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007118/0.284, allocations: 3.973 MB / 0.7608 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007435/0.2915, allocations: 4.518 MB / 0.7652 GB, free: 9.27 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.002531/0.294, allocations: 0.8203 MB / 0.766 GB, free: 8.449 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004299/0.2984, allocations: 1.58 MB / 0.7676 GB, free: 6.867 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.004616/0.303, allocations: 3.15 MB / 0.7706 GB, free: 3.711 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.007164/0.3102, allocations: 3.661 MB / 0.7742 GB, free: 36 kB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.5675/0.8777, allocations: 12.23 MB / 0.7862 GB, free: 35.04 MB / 0.5607 GB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.8777, allocations: 1.094 kB / 0.7862 GB, free: 35.04 MB / 0.5607 GB Notification: Performance of FrontEnd: time 1.763e-06/0.8777, allocations: 0 / 0.7862 GB, free: 35.04 MB / 0.5607 GB Notification: Performance of Transformations before backend: time 0.0003964/0.8781, allocations: 0 / 0.7862 GB, free: 35.04 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: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.02115/0.8993, allocations: 6.319 MB / 0.7923 GB, free: 32.86 MB / 0.5607 GB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.8994, allocations: 11.19 kB / 0.7923 GB, free: 32.86 MB / 0.5607 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002649/0.902, allocations: 0.8273 MB / 0.7931 GB, free: 32.78 MB / 0.5607 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006691/0.9087, allocations: 1.067 MB / 0.7942 GB, free: 32.46 MB / 0.5607 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008071/0.9168, allocations: 3.419 MB / 0.7975 GB, free: 31.76 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004383/0.9173, allocations: 430.2 kB / 0.7979 GB, free: 31.75 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002554/0.9199, allocations: 0.5458 MB / 0.7985 GB, free: 31.74 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02746/0.9473, allocations: 9.372 MB / 0.8076 GB, free: 30.66 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001713/0.9475, allocations: 21.56 kB / 0.8076 GB, free: 30.66 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001079/0.9486, allocations: 248.5 kB / 0.8079 GB, free: 30.66 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006244/0.9492, allocations: 423.6 kB / 0.8083 GB, free: 30.59 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01394/0.9632, allocations: 7.126 MB / 0.8152 GB, free: 28.74 MB / 0.5607 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04065/1.004, allocations: 41.31 MB / 0.8556 GB, free: 7.277 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004258/1.008, allocations: 3.103 MB / 0.8586 GB, free: 5.691 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002611/1.011, allocations: 2.142 MB / 0.8607 GB, free: 4.59 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001011/1.011, allocations: 25.05 kB / 0.8607 GB, free: 4.586 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.606e-05/1.011, allocations: 60 kB / 0.8608 GB, free: 4.527 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=209): time 4.218e-06/1.011, allocations: 0 / 0.8608 GB, free: 4.527 MB / 0.5763 GB Notification: Performance of matching and sorting (n=212): time 0.02322/1.034, allocations: 10.56 MB / 0.8711 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.811e-05/1.034, allocations: 77.34 kB / 0.8712 GB, free: 14.12 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004161/1.039, allocations: 2.002 MB / 0.8731 GB, free: 12.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0004568/1.039, allocations: 69.08 kB / 0.8732 GB, free: 12.03 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.001721/1.041, allocations: 2.398 MB / 0.8755 GB, free: 9.605 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006991/1.041, allocations: 0.7332 MB / 0.8762 GB, free: 8.879 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007515/1.042, allocations: 485.1 kB / 0.8767 GB, free: 8.398 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.85e-05/1.042, allocations: 305.1 kB / 0.877 GB, free: 8.098 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002015/1.044, allocations: 1.372 MB / 0.8783 GB, free: 6.723 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002389/1.047, allocations: 2.106 MB / 0.8804 GB, free: 4.312 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004552/1.051, allocations: 3.767 MB / 0.8841 GB, free: 332 kB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-05/1.051, allocations: 10.62 kB / 0.8841 GB, free: 324 kB / 0.5919 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.008195/1.06, allocations: 5.065 MB / 0.889 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.534e-05/1.06, allocations: 17.72 kB / 0.8891 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.223e-05/1.06, allocations: 24.91 kB / 0.8891 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003561/1.063, allocations: 1.594 MB / 0.8906 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001738/1.065, allocations: 455.2 kB / 0.8911 GB, free: 9.371 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02329/1.088, allocations: 18.58 MB / 0.9092 GB, free: 6.277 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002743/1.091, allocations: 147.9 kB / 0.9094 GB, free: 6.133 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005282/1.092, allocations: 104 kB / 0.9095 GB, free: 6.031 MB / 0.6232 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.004683/1.096, allocations: 1.944 MB / 0.9113 GB, free: 4.109 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008043/1.097, allocations: 284.7 kB / 0.9116 GB, free: 3.828 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007681/1.105, allocations: 4.447 MB / 0.916 GB, free: 15.41 MB / 0.6388 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.595e-05/1.105, allocations: 20 kB / 0.916 GB, free: 15.39 MB / 0.6388 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.814e-05/1.105, allocations: 16 kB / 0.916 GB, free: 15.38 MB / 0.6388 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.196e-05/1.105, allocations: 11.95 kB / 0.916 GB, free: 15.36 MB / 0.6388 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01844/1.123, allocations: 9.676 MB / 0.9255 GB, free: 5.672 MB / 0.6388 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.456e-05/1.123, allocations: 4 kB / 0.9255 GB, free: 5.668 MB / 0.6388 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/1.124, allocations: 234.8 kB / 0.9257 GB, free: 5.449 MB / 0.6388 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003242/1.128, allocations: 1.429 MB / 0.9271 GB, free: 4.012 MB / 0.6388 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001692/1.128, allocations: 40 kB / 0.9271 GB, free: 3.973 MB / 0.6388 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02111/1.149, allocations: 18.58 MB / 0.9453 GB, free: 0.8828 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.307e-06/1.149, allocations: 11.28 kB / 0.9453 GB, free: 0.875 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007051/1.156, allocations: 4.549 MB / 0.9497 GB, free: 12.31 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001424/1.157, allocations: 0.6265 MB / 0.9503 GB, free: 11.66 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005936/1.158, allocations: 43.98 kB / 0.9504 GB, free: 11.62 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001527/1.16, allocations: 116 kB / 0.9505 GB, free: 11.51 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004512/1.16, allocations: 183.5 kB / 0.9507 GB, free: 11.34 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001464/1.16, allocations: 68.22 kB / 0.9507 GB, free: 11.27 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001921/1.162, allocations: 1.311 MB / 0.952 GB, free: 9.949 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.2e-07/1.162, allocations: 0 / 0.952 GB, free: 9.949 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.003278/1.165, allocations: 1.145 MB / 0.9531 GB, free: 8.805 MB / 0.67 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.0068/1.172, allocations: 5.155 MB / 0.9582 GB, free: 3.625 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.009341/1.182, allocations: 5.925 MB / 0.9639 GB, free: 13.75 MB / 0.6857 GB Notification: Performance of simCode: created event and clocks part: time 1.018e-05/1.182, allocations: 10.69 kB / 0.9639 GB, free: 13.75 MB / 0.6857 GB Notification: Performance of simCode: created simulation system equations: time 0.004314/1.186, allocations: 2.907 MB / 0.9668 GB, free: 10.82 MB / 0.6857 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00462/1.191, allocations: 0.8907 MB / 0.9677 GB, free: 9.961 MB / 0.6857 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05123/1.242, allocations: 33.64 MB / 1.001 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007634/1.25, allocations: 3.694 MB / 1.004 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.002206/1.252, allocations: 0.5556 MB / 1.005 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002731/1.255, allocations: 1.957 MB / 1.007 GB, free: 15.85 MB / 0.7325 GB Notification: Performance of SimCode: time 7.91e-07/1.255, allocations: 0 / 1.007 GB, free: 15.85 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4388/1.693, allocations: 85.71 MB / 1.09 GB, free: 274.3 MB / 0.7638 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.33/12.03, allocations: 12.69 kB / 1.09 GB, free: 274.3 MB / 0.7638 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)