Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_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_RLC_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_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.004848/0.004848, allocations: 102.4 kB / 15.74 MB, free: 6.043 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.001286/0.001286, allocations: 200.5 kB / 16.68 MB, free: 5.965 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.429/1.429, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002507/0.002506, allocations: 275 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.079/1.079, allocations: 178.6 MB / 0.5074 GB, free: 4.504 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002694/0.002694, allocations: 109.5 kB / 0.6943 GB, free: 3.594 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4811/0.4838, allocations: 89.14 MB / 0.7814 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.05109/0.535, allocations: 41.18 MB / 0.8216 GB, free: 20 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02935/0.5644, allocations: 15.08 MB / 0.8363 GB, free: 4.051 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00591/0.5703, allocations: 192.1 kB / 0.8365 GB, free: 3.988 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.01278/0.5831, allocations: 4.456 MB / 0.8408 GB, free: 0.5312 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.009493/0.5927, allocations: 2.792 MB / 0.8436 GB, free: 14.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.008613/0.6013, allocations: 3.153 MB / 0.8466 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.01641/0.6177, allocations: 11.4 MB / 0.8578 GB, free: 0.8438 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01854/0.6363, allocations: 12.47 MB / 0.87 GB, free: 4.242 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00916/0.6455, allocations: 4.814 MB / 0.8747 GB, free: 15.41 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01123/0.6568, allocations: 5.39 MB / 0.8799 GB, free: 10.01 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.004462/0.6613, allocations: 0.9492 MB / 0.8808 GB, free: 9.059 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00686/0.6682, allocations: 2.04 MB / 0.8828 GB, free: 7.016 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.006113/0.6743, allocations: 3.688 MB / 0.8864 GB, free: 3.32 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.009313/0.6837, allocations: 4.303 MB / 0.8906 GB, free: 15 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.02248/0.7062, allocations: 14.32 MB / 0.9046 GB, free: 0.6367 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.7062, allocations: 4 kB / 0.9046 GB, free: 0.6328 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.635e-06/0.7063, allocations: 0 / 0.9046 GB, free: 0.6328 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 0.0004725/0.7067, allocations: 0 / 0.9046 GB, free: 0.6328 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1668 * Number of variables: 1668 Notification: Performance of Generate backend data structure: time 0.02176/0.7285, allocations: 7.79 MB / 0.9122 GB, free: 8.746 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/0.7286, allocations: 12.03 kB / 0.9122 GB, free: 8.734 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003303/0.7319, allocations: 0.8955 MB / 0.9131 GB, free: 7.828 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01114/0.743, allocations: 1.554 MB / 0.9146 GB, free: 6.27 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009859/0.7529, allocations: 4.47 MB / 0.919 GB, free: 1.727 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004518/0.7534, allocations: 452.5 kB / 0.9194 GB, free: 1.281 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00231/0.7557, allocations: 0.594 MB / 0.92 GB, free: 0.6875 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02251/0.7783, allocations: 10.69 MB / 0.9304 GB, free: 5.625 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001665/0.7785, allocations: 31.78 kB / 0.9305 GB, free: 5.594 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009048/0.7794, allocations: 267.9 kB / 0.9307 GB, free: 5.332 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002864/0.7822, allocations: 0.7767 MB / 0.9315 GB, free: 4.551 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01787/0.8001, allocations: 8.557 MB / 0.9398 GB, free: 11.97 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0683/0.8685, allocations: 46.61 MB / 0.9854 GB, free: 9.613 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006802/0.8753, allocations: 4.325 MB / 0.9896 GB, free: 5.281 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00586/0.8812, allocations: 3.716 MB / 0.9932 GB, free: 1.555 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003468/0.8816, allocations: 34.78 kB / 0.9932 GB, free: 1.52 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.976e-05/0.8816, allocations: 77.33 kB / 0.9933 GB, free: 1.434 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=353): time 4.708e-06/0.8817, allocations: 0 / 0.9933 GB, free: 1.434 MB / 0.7481 GB Notification: Performance of matching and sorting (n=578): time 0.8859/1.768, allocations: 122.9 MB / 1.113 GB, free: 241.5 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.506e-05/1.768, allocations: 112.8 kB / 1.113 GB, free: 241.4 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003608/1.771, allocations: 2.68 MB / 1.116 GB, free: 240 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.001036/1.772, allocations: 121.5 kB / 1.116 GB, free: 239.9 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.001312/1.774, allocations: 2.75 MB / 1.119 GB, free: 237.9 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001818/1.776, allocations: 2.047 MB / 1.121 GB, free: 236.2 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001625/1.777, allocations: 0.934 MB / 1.122 GB, free: 235.7 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 3.88e-05/1.777, allocations: 301.1 kB / 1.122 GB, free: 235.4 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004768/1.782, allocations: 4.082 MB / 1.126 GB, free: 232.3 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005199/1.787, allocations: 5.015 MB / 1.131 GB, free: 227 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01124/1.798, allocations: 9.843 MB / 1.141 GB, free: 216.8 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.808e-05/1.799, allocations: 11.94 kB / 1.141 GB, free: 216.8 MB / 0.8262 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.03409/1.833, allocations: 17.02 MB / 1.157 GB, free: 199.6 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.374e-05/1.833, allocations: 16 kB / 1.157 GB, free: 199.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.889e-05/1.833, allocations: 20 kB / 1.157 GB, free: 199.6 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.029/1.862, allocations: 9.09 MB / 1.166 GB, free: 190.5 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002446/1.864, allocations: 0.5187 MB / 1.167 GB, free: 189.9 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08829/1.953, allocations: 77.03 MB / 1.242 GB, free: 111.4 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004947/1.958, allocations: 275.8 kB / 1.242 GB, free: 111.1 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007173/1.958, allocations: 199.9 kB / 1.242 GB, free: 110.9 MB / 0.8262 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 (274): * Single equations (assignments): 263 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(5,17,84.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (14,72,59.2%), (14,72,59.2%), (6,40,77.8%), (8,70,73.4%), (8,70,70.3%), (6,40,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003668/1.962, allocations: 2.424 MB / 1.245 GB, free: 108.5 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001083/1.963, allocations: 0.4951 MB / 1.245 GB, free: 108 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03395/1.997, allocations: 16.81 MB / 1.262 GB, free: 91.05 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.041e-05/1.997, allocations: 52 kB / 1.262 GB, free: 91 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001983/1.997, allocations: 75.98 kB / 1.262 GB, free: 90.92 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001001/1.997, allocations: 31.89 kB / 1.262 GB, free: 90.89 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04827/2.046, allocations: 25.66 MB / 1.287 GB, free: 64.99 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.686e-05/2.046, allocations: 8 kB / 1.287 GB, free: 64.98 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001864/2.048, allocations: 319.5 kB / 1.287 GB, free: 64.67 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.027/2.075, allocations: 8.271 MB / 1.295 GB, free: 56.36 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00102/2.076, allocations: 107.9 kB / 1.295 GB, free: 56.26 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09147/2.167, allocations: 73.91 MB / 1.367 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.025e-06/2.167, allocations: 8 kB / 1.367 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04786/2.215, allocations: 21.58 MB / 1.389 GB, free: 6.859 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004417/2.22, allocations: 1.38 MB / 1.39 GB, free: 5.457 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001749/2.221, allocations: 115.9 kB / 1.39 GB, free: 5.344 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004492/2.226, allocations: 283.7 kB / 1.39 GB, free: 5.066 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002217/2.228, allocations: 0.5296 MB / 1.391 GB, free: 4.527 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005708/2.229, allocations: 148 kB / 1.391 GB, free: 4.383 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.003296/2.232, allocations: 1.776 MB / 1.393 GB, free: 2.617 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.8e-07/2.232, allocations: 0 / 1.393 GB, free: 2.617 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.01048/2.242, allocations: 2.461 MB / 1.395 GB, free: 160 kB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 8 (RLCLine_sc.phase1.Vc[1],RLCLine_sc.phase1.Vc[2],RLCLine_sc.phase2.Vc[1],RLCLine_sc.phase2.Vc[2],RLCLine_sc.phase3.Vc[1],RLCLine_sc.phase3.Vc[2],RLCLine_sc.neutral.Vc[1],RLCLine_sc.neutral.Vc[2]) * 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 (142): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(6,40,77.8%), (8,70,70.3%), (14,72,51.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (5,17,84.0%), (6,40,83.3%), (8,70,70.3%), (14,72,51.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.4009/2.643, allocations: 22.29 MB / 1.417 GB, free: 287.8 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.02757/2.671, allocations: 14.58 MB / 1.431 GB, free: 286 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 1.21e-05/2.671, allocations: 1.812 kB / 1.431 GB, free: 286 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.01699/2.688, allocations: 9.403 MB / 1.44 GB, free: 282.3 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007735/2.696, allocations: 1.371 MB / 1.442 GB, free: 281.8 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.125/2.821, allocations: 70.4 MB / 1.51 GB, free: 236.3 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006753/2.828, allocations: 4.901 MB / 1.515 GB, free: 231.4 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.002578/2.83, allocations: 0.7448 MB / 1.516 GB, free: 230.6 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002721/2.833, allocations: 2.608 MB / 1.518 GB, free: 228 MB / 0.8887 GB Notification: Performance of SimCode: time 7.82e-07/2.833, allocations: 0 / 1.518 GB, free: 228 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.293/3.126, allocations: 196.5 MB / 1.71 GB, free: 33.12 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.97/24.1, allocations: 4.188 kB / 1.71 GB, free: 33.11 MB / 0.8887 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_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_RLC_N.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe 2>&1)