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.00143/0.00143, 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.001269/0.00127, allocations: 195.9 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.374/1.374, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002431/0.002431, allocations: 295 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9951/0.9951, allocations: 169.3 MB / 0.4982 GB, free: 14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002795/0.002795, allocations: 99.62 kB / 0.5954 GB, free: 27.77 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1536/0.1564, allocations: 86.98 MB / 0.6803 GB, free: 0.625 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04531/0.2018, allocations: 37.94 MB / 0.7173 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01871/0.2205, allocations: 10.99 MB / 0.7281 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003481/0.224, allocations: 159.2 kB / 0.7282 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.01122/0.2353, allocations: 4.343 MB / 0.7325 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.007036/0.2423, allocations: 2.223 MB / 0.7346 GB, free: 8.809 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.006446/0.2488, allocations: 2.178 MB / 0.7368 GB, free: 6.633 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.01217/0.261, allocations: 9.292 MB / 0.7458 GB, free: 13.32 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01595/0.277, allocations: 11.35 MB / 0.7569 GB, free: 1.848 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006903/0.2839, allocations: 3.985 MB / 0.7608 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007817/0.2918, allocations: 4.506 MB / 0.7652 GB, free: 9.332 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.002867/0.2947, allocations: 0.8203 MB / 0.766 GB, free: 8.512 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004717/0.2994, allocations: 1.588 MB / 0.7676 GB, free: 6.922 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.00464/0.3041, allocations: 3.15 MB / 0.7707 GB, free: 3.766 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.006015/0.3102, allocations: 3.661 MB / 0.7742 GB, free: 92 kB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.5271/0.8373, allocations: 12.23 MB / 0.7862 GB, free: 35.14 MB / 0.5607 GB Notification: Performance of FrontEnd - DAE generated: time 8.326e-06/0.8373, allocations: 0 / 0.7862 GB, free: 35.14 MB / 0.5607 GB Notification: Performance of FrontEnd: time 2.094e-06/0.8374, allocations: 0.6875 kB / 0.7862 GB, free: 35.14 MB / 0.5607 GB Notification: Performance of Transformations before backend: time 0.0003754/0.8377, allocations: 0 / 0.7862 GB, free: 35.14 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.02129/0.859, allocations: 6.315 MB / 0.7923 GB, free: 32.95 MB / 0.5607 GB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.8591, allocations: 10.64 kB / 0.7923 GB, free: 32.95 MB / 0.5607 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002714/0.8618, allocations: 0.8295 MB / 0.7932 GB, free: 32.88 MB / 0.5607 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006566/0.8684, allocations: 1.067 MB / 0.7942 GB, free: 32.56 MB / 0.5607 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007683/0.8761, allocations: 3.42 MB / 0.7975 GB, free: 31.86 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003466/0.8765, allocations: 428.6 kB / 0.7979 GB, free: 31.84 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002582/0.8791, allocations: 0.5436 MB / 0.7985 GB, free: 31.84 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02317/0.9023, allocations: 9.379 MB / 0.8076 GB, free: 30.7 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001581/0.9025, allocations: 19.06 kB / 0.8077 GB, free: 30.7 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001034/0.9035, allocations: 247.9 kB / 0.8079 GB, free: 30.7 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005924/0.9041, allocations: 420.7 kB / 0.8083 GB, free: 30.63 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01488/0.919, allocations: 7.126 MB / 0.8153 GB, free: 28.76 MB / 0.5607 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04522/0.9643, allocations: 41.31 MB / 0.8556 GB, free: 7.289 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004652/0.969, allocations: 3.104 MB / 0.8586 GB, free: 5.707 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002687/0.9717, allocations: 2.136 MB / 0.8607 GB, free: 4.609 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001047/0.9718, allocations: 24.62 kB / 0.8607 GB, free: 4.609 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.031e-05/0.9719, allocations: 64.06 kB / 0.8608 GB, free: 4.543 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=209): time 3.817e-06/0.9719, allocations: 1.688 kB / 0.8608 GB, free: 4.543 MB / 0.5763 GB Notification: Performance of matching and sorting (n=212): time 0.0238/0.9957, allocations: 10.56 MB / 0.8711 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.192e-05/0.9958, allocations: 77.34 kB / 0.8712 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003109/0.9989, allocations: 2.005 MB / 0.8731 GB, free: 12.08 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0003004/0.9992, allocations: 61.7 kB / 0.8732 GB, free: 12.02 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.001865/1.001, allocations: 2.397 MB / 0.8755 GB, free: 9.594 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.000881/1.002, allocations: 0.7278 MB / 0.8762 GB, free: 8.871 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007989/1.003, allocations: 493 kB / 0.8767 GB, free: 8.387 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001211/1.003, allocations: 301.1 kB / 0.877 GB, free: 8.09 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002084/1.005, allocations: 1.376 MB / 0.8783 GB, free: 6.711 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002661/1.008, allocations: 2.107 MB / 0.8804 GB, free: 4.297 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005029/1.013, allocations: 3.762 MB / 0.8841 GB, free: 320 kB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.369e-05/1.013, allocations: 4 kB / 0.8841 GB, free: 316 kB / 0.5919 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.00858/1.021, allocations: 5.073 MB / 0.889 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.926e-05/1.021, allocations: 18.81 kB / 0.8891 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.968e-05/1.021, allocations: 24 kB / 0.8891 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003601/1.025, allocations: 1.598 MB / 0.8906 GB, free: 9.766 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001765/1.027, allocations: 451.8 kB / 0.8911 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02433/1.051, allocations: 18.6 MB / 0.9092 GB, free: 6.254 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002611/1.054, allocations: 139.9 kB / 0.9094 GB, free: 6.117 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002635/1.054, allocations: 112 kB / 0.9095 GB, free: 6.008 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.003734/1.058, allocations: 1.94 MB / 0.9114 GB, free: 4.086 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006739/1.059, allocations: 284.7 kB / 0.9116 GB, free: 3.805 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007463/1.066, allocations: 4.449 MB / 0.916 GB, free: 15.39 MB / 0.6388 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-05/1.066, allocations: 20 kB / 0.916 GB, free: 15.37 MB / 0.6388 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.16e-05/1.066, allocations: 16 kB / 0.916 GB, free: 15.35 MB / 0.6388 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.018e-05/1.066, allocations: 15.95 kB / 0.916 GB, free: 15.34 MB / 0.6388 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01719/1.083, allocations: 9.672 MB / 0.9255 GB, free: 5.645 MB / 0.6388 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-05/1.083, allocations: 7.656 kB / 0.9255 GB, free: 5.641 MB / 0.6388 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/1.084, allocations: 227.3 kB / 0.9257 GB, free: 5.43 MB / 0.6388 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003465/1.088, allocations: 1.437 MB / 0.9271 GB, free: 3.984 MB / 0.6388 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002242/1.088, allocations: 44 kB / 0.9271 GB, free: 3.941 MB / 0.6388 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02371/1.112, allocations: 18.58 MB / 0.9453 GB, free: 0.8516 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.101e-06/1.112, allocations: 7.75 kB / 0.9453 GB, free: 0.8477 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007731/1.12, allocations: 4.543 MB / 0.9497 GB, free: 12.28 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001643/1.121, allocations: 0.6265 MB / 0.9503 GB, free: 11.63 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004169/1.122, allocations: 50.61 kB / 0.9504 GB, free: 11.59 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001306/1.123, allocations: 115.9 kB / 0.9505 GB, free: 11.47 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000495/1.124, allocations: 176.6 kB / 0.9507 GB, free: 11.3 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001437/1.124, allocations: 59.98 kB / 0.9507 GB, free: 11.25 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001892/1.126, allocations: 1.323 MB / 0.952 GB, free: 9.914 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.7e-07/1.126, allocations: 0 / 0.952 GB, free: 9.914 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.003314/1.129, allocations: 1.137 MB / 0.9531 GB, free: 8.777 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.007455/1.136, allocations: 5.16 MB / 0.9582 GB, free: 3.594 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.01025/1.147, allocations: 5.921 MB / 0.9639 GB, free: 13.72 MB / 0.6857 GB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/1.147, allocations: 4 kB / 0.964 GB, free: 13.72 MB / 0.6857 GB Notification: Performance of simCode: created simulation system equations: time 0.004964/1.152, allocations: 2.915 MB / 0.9668 GB, free: 10.79 MB / 0.6857 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004675/1.156, allocations: 0.8892 MB / 0.9677 GB, free: 9.938 MB / 0.6857 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05929/1.216, allocations: 33.63 MB / 1.001 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005581/1.221, allocations: 3.69 MB / 1.004 GB, free: 2.32 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.002148/1.224, allocations: 0.5543 MB / 1.005 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002727/1.226, allocations: 1.953 MB / 1.007 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of SimCode: time 8.62e-07/1.226, allocations: 0 / 1.007 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4209/1.647, allocations: 85.72 MB / 1.09 GB, free: 274.3 MB / 0.7638 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/12.59, allocations: 11.5 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)