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.005957/0.005957, allocations: 99.58 kB / 15.73 MB, free: 6.055 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.001244/0.001244, allocations: 197.9 kB / 16.67 MB, free: 5.969 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.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002496/0.002497, allocations: 271 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.012/1.012, allocations: 169.3 MB / 0.4983 GB, free: 13.78 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002741/0.002741, allocations: 108.2 kB / 0.681 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1866/0.1893, allocations: 86.96 MB / 0.7659 GB, free: 8.918 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.3724/0.5618, allocations: 37.94 MB / 0.803 GB, free: 10.11 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02154/0.5834, allocations: 11 MB / 0.8137 GB, free: 2.562 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006373/0.5898, allocations: 156.6 kB / 0.8139 GB, free: 2.516 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.01268/0.6025, allocations: 4.351 MB / 0.8181 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.008533/0.611, allocations: 2.215 MB / 0.8203 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.006835/0.6179, allocations: 2.179 MB / 0.8224 GB, free: 13.27 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.01347/0.6314, allocations: 9.289 MB / 0.8315 GB, free: 8.27 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01779/0.6492, allocations: 11.25 MB / 0.8425 GB, free: 2.988 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007563/0.6569, allocations: 4.008 MB / 0.8464 GB, free: 0.6758 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009013/0.6659, allocations: 4.517 MB / 0.8508 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.002813/0.6688, allocations: 0.8203 MB / 0.8516 GB, free: 12.45 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005743/0.6745, allocations: 1.584 MB / 0.8531 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.005568/0.6801, allocations: 3.146 MB / 0.8562 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.008586/0.6887, allocations: 3.657 MB / 0.8598 GB, free: 4.043 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0176/0.7064, allocations: 12.34 MB / 0.8718 GB, free: 7.664 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 9.968e-06/0.7064, allocations: 8 kB / 0.8718 GB, free: 7.656 MB / 0.6231 GB Notification: Performance of FrontEnd: time 3.056e-06/0.7064, allocations: 0 / 0.8718 GB, free: 7.656 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0004734/0.7069, allocations: 0 / 0.8718 GB, free: 7.656 MB / 0.6231 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.01956/0.7265, allocations: 6.467 MB / 0.8781 GB, free: 1.109 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/0.7266, allocations: 12.03 kB / 0.8782 GB, free: 1.098 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002713/0.7293, allocations: 0.8255 MB / 0.879 GB, free: 268 kB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006502/0.7358, allocations: 1.094 MB / 0.88 GB, free: 15.16 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008272/0.7441, allocations: 3.636 MB / 0.8836 GB, free: 11.48 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000503/0.7446, allocations: 427.7 kB / 0.884 GB, free: 11.06 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002203/0.7469, allocations: 0.5355 MB / 0.8845 GB, free: 10.52 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02274/0.7696, allocations: 9.385 MB / 0.8937 GB, free: 0.8047 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002883/0.7699, allocations: 19.83 kB / 0.8937 GB, free: 0.7852 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002018/0.772, allocations: 251.9 kB / 0.8939 GB, free: 0.5391 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007839/0.7728, allocations: 422.9 kB / 0.8943 GB, free: 128 kB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01708/0.7899, allocations: 7.127 MB / 0.9013 GB, free: 8.988 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05843/0.8483, allocations: 41.08 MB / 0.9414 GB, free: 12.18 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005365/0.8538, allocations: 3.112 MB / 0.9444 GB, free: 9.062 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003248/0.857, allocations: 2.145 MB / 0.9465 GB, free: 6.922 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001323/0.8572, allocations: 22 kB / 0.9466 GB, free: 6.898 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.78e-05/0.8573, allocations: 72.36 kB / 0.9466 GB, free: 6.82 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=209): time 3.527e-06/0.8573, allocations: 0 / 0.9466 GB, free: 6.82 MB / 0.7012 GB Notification: Performance of matching and sorting (n=212): time 0.02528/0.8826, allocations: 10.63 MB / 0.957 GB, free: 12.09 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.698e-05/0.8827, allocations: 73.41 kB / 0.9571 GB, free: 12.01 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003195/0.8859, allocations: 2.002 MB / 0.959 GB, free: 9.988 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0002556/0.8861, allocations: 65.7 kB / 0.9591 GB, free: 9.918 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.001985/0.8881, allocations: 2.474 MB / 0.9615 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.000934/0.8891, allocations: 0.7785 MB / 0.9623 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008437/0.8899, allocations: 477.5 kB / 0.9627 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.000157/0.8901, allocations: 309.1 kB / 0.963 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002171/0.8923, allocations: 1.364 MB / 0.9644 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00287/0.8952, allocations: 2.104 MB / 0.9664 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005393/0.9006, allocations: 3.766 MB / 0.9701 GB, free: 14 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.568e-05/0.9006, allocations: 12 kB / 0.9701 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.009298/0.9099, allocations: 5.078 MB / 0.9751 GB, free: 8.883 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.721e-05/0.91, allocations: 20.06 kB / 0.9751 GB, free: 8.863 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.696e-05/0.91, allocations: 24 kB / 0.9751 GB, free: 8.84 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003708/0.9138, allocations: 1.58 MB / 0.9766 GB, free: 7.25 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001706/0.9155, allocations: 447.3 kB / 0.9771 GB, free: 6.812 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0251/0.9406, allocations: 18.6 MB / 0.9952 GB, free: 3.652 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002411/0.943, allocations: 151.8 kB / 0.9954 GB, free: 3.504 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002453/0.9433, allocations: 104 kB / 0.9955 GB, free: 3.402 MB / 0.7481 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.003344/0.9467, allocations: 1.942 MB / 0.9974 GB, free: 1.449 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006015/0.9473, allocations: 298.2 kB / 0.9977 GB, free: 1.156 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007861/0.9551, allocations: 4.459 MB / 1.002 GB, free: 12.67 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.268e-05/0.9552, allocations: 23.94 kB / 1.002 GB, free: 12.64 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.242e-05/0.9552, allocations: 20 kB / 1.002 GB, free: 12.62 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.947e-05/0.9552, allocations: 8.094 kB / 1.002 GB, free: 12.62 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01601/0.9713, allocations: 9.668 MB / 1.012 GB, free: 2.805 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/0.9713, allocations: 4 kB / 1.012 GB, free: 2.801 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009954/0.9723, allocations: 235.6 kB / 1.012 GB, free: 2.57 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003447/0.9758, allocations: 1.435 MB / 1.013 GB, free: 1.125 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001578/0.9759, allocations: 40 kB / 1.013 GB, free: 1.086 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02546/1.001, allocations: 18.58 MB / 1.031 GB, free: 13.94 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/1.001, allocations: 4 kB / 1.031 GB, free: 13.93 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007868/1.009, allocations: 4.558 MB / 1.036 GB, free: 9.289 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001462/1.011, allocations: 0.6436 MB / 1.036 GB, free: 8.625 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003657/1.011, allocations: 40 kB / 1.036 GB, free: 8.586 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001258/1.012, allocations: 115.9 kB / 1.037 GB, free: 8.473 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000549/1.013, allocations: 181.6 kB / 1.037 GB, free: 8.297 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001435/1.013, allocations: 60 kB / 1.037 GB, free: 8.238 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.002012/1.015, allocations: 1.311 MB / 1.038 GB, free: 6.918 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/1.015, allocations: 0 / 1.038 GB, free: 6.918 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.003351/1.019, allocations: 1.145 MB / 1.039 GB, free: 5.773 MB / 0.795 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.007961/1.027, allocations: 5.186 MB / 1.044 GB, free: 500 kB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.008274/1.035, allocations: 4.724 MB / 1.049 GB, free: 11.72 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.157e-05/1.035, allocations: 4 kB / 1.049 GB, free: 11.72 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.005155/1.04, allocations: 2.925 MB / 1.052 GB, free: 8.738 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003911/1.044, allocations: 0.8939 MB / 1.053 GB, free: 7.867 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0528/1.097, allocations: 30.56 MB / 1.082 GB, free: 8.105 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005274/1.102, allocations: 3.69 MB / 1.086 GB, free: 4.379 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001947/1.104, allocations: 0.5556 MB / 1.087 GB, free: 3.816 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002661/1.107, allocations: 1.948 MB / 1.088 GB, free: 1.867 MB / 0.8419 GB Notification: Performance of SimCode: time 7.92e-07/1.107, allocations: 0 / 1.088 GB, free: 1.867 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5073/1.614, allocations: 85.29 MB / 1.172 GB, free: 227.8 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.95/16.57, allocations: 15.72 kB / 1.172 GB, free: 227.8 MB / 0.8419 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)