Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.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.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL",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.00468/0.00468, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.00125/0.00125, allocations: 198.5 kB / 16.67 MB, free: 5.934 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.439/1.439, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002453/0.002453, allocations: 290.7 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.05/1.05, allocations: 169.3 MB / 0.4983 GB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002674/0.002674, allocations: 92.8 kB / 0.681 GB, free: 0 / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1698/0.1725, allocations: 86.97 MB / 0.7659 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.007623/0.1802, allocations: 5.53 MB / 0.7713 GB, free: 3.395 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004289/0.1845, allocations: 2.642 MB / 0.7739 GB, free: 0.7422 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002285/0.1847, allocations: 23.81 kB / 0.7739 GB, free: 0.7188 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001789/0.1865, allocations: 0.6808 MB / 0.7746 GB, free: 36 kB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.3049/0.4914, allocations: 410.6 kB / 0.775 GB, free: 8.371 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001106/0.4925, allocations: 407.7 kB / 0.7754 GB, free: 8.367 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001254/0.4938, allocations: 0.9602 MB / 0.7763 GB, free: 8.363 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000623/0.4944, allocations: 461.9 kB / 0.7767 GB, free: 8.348 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005004/0.4949, allocations: 369.7 kB / 0.7771 GB, free: 8.324 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005313/0.4955, allocations: 406.6 kB / 0.7775 GB, free: 8.258 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.86e-05/0.4956, allocations: 51.38 kB / 0.7775 GB, free: 8.258 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006769/0.4963, allocations: 366 kB / 0.7779 GB, free: 8.25 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000249/0.4965, allocations: 240.2 kB / 0.7781 GB, free: 8.227 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003475/0.4969, allocations: 353.7 kB / 0.7784 GB, free: 8.121 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001114/0.498, allocations: 0.9797 MB / 0.7794 GB, free: 7.969 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.498, allocations: 2.938 kB / 0.7794 GB, free: 7.969 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.263e-06/0.498, allocations: 0 / 0.7794 GB, free: 7.969 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.056e-05/0.498, allocations: 0.5 kB / 0.7794 GB, free: 7.969 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001376/0.4994, allocations: 1.008 MB / 0.7804 GB, free: 7.332 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.4995, allocations: 10 kB / 0.7804 GB, free: 7.332 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001111/0.4996, allocations: 98.62 kB / 0.7805 GB, free: 7.293 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001345/0.5009, allocations: 195.4 kB / 0.7807 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006993/0.5016, allocations: 0.5288 MB / 0.7812 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.803e-05/0.5017, allocations: 40.02 kB / 0.7812 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001486/0.5018, allocations: 56.78 kB / 0.7813 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.5029, allocations: 0.8257 MB / 0.7821 GB, free: 6.723 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.573e-05/0.5029, allocations: 7.109 kB / 0.7821 GB, free: 6.719 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.619e-05/0.503, allocations: 25.64 kB / 0.7821 GB, free: 6.719 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001751/0.5031, allocations: 65.66 kB / 0.7822 GB, free: 6.719 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008532/0.504, allocations: 0.5735 MB / 0.7827 GB, free: 6.703 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003866/0.5079, allocations: 4.571 MB / 0.7872 GB, free: 18.95 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004016/0.5083, allocations: 296.3 kB / 0.7875 GB, free: 18.83 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002577/0.5086, allocations: 230.9 kB / 0.7877 GB, free: 18.73 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.905e-05/0.5086, allocations: 6.594 kB / 0.7877 GB, free: 18.73 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.153e-05/0.5086, allocations: 35.59 kB / 0.7877 GB, free: 18.69 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=33): time 1.764e-06/0.5086, allocations: 0 / 0.7877 GB, free: 18.69 MB / 0.5762 GB Notification: Performance of matching and sorting (n=40): time 0.005439/0.5141, allocations: 2.639 MB / 0.7903 GB, free: 17.3 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.321e-05/0.5141, allocations: 56.62 kB / 0.7904 GB, free: 17.24 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004601/0.5146, allocations: 471.8 kB / 0.7908 GB, free: 17 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.168e-05/0.5147, allocations: 37.61 kB / 0.7909 GB, free: 16.96 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001764/0.5148, allocations: 348.4 kB / 0.7912 GB, free: 16.69 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.382e-05/0.5149, allocations: 154.1 kB / 0.7913 GB, free: 16.57 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001529/0.5151, allocations: 103.8 kB / 0.7914 GB, free: 16.51 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001705/0.5153, allocations: 362.4 kB / 0.7918 GB, free: 16.18 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003412/0.5156, allocations: 235.8 kB / 0.792 GB, free: 16.1 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004082/0.516, allocations: 414.5 kB / 0.7924 GB, free: 15.8 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007397/0.5168, allocations: 0.676 MB / 0.7931 GB, free: 15.37 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.5168, allocations: 0 / 0.7931 GB, free: 15.37 MB / 0.5762 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001521/0.5183, allocations: 0.9218 MB / 0.794 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.5183, allocations: 8.531 kB / 0.794 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.5183, allocations: 7.172 kB / 0.794 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000749/0.5191, allocations: 229.8 kB / 0.7942 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004901/0.5196, allocations: 111.1 kB / 0.7943 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00524/0.5249, allocations: 5.348 MB / 0.7995 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004962/0.5254, allocations: 28.23 kB / 0.7996 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.208e-05/0.5254, allocations: 26.09 kB / 0.7996 GB, free: 10.22 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003409/0.5258, allocations: 219.1 kB / 0.7998 GB, free: 10.05 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.5259, allocations: 64.16 kB / 0.7999 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001595/0.5275, allocations: 0.7678 MB / 0.8006 GB, free: 9.688 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.5275, allocations: 4.031 kB / 0.8006 GB, free: 9.688 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.5275, allocations: 10.12 kB / 0.8006 GB, free: 9.684 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.398e-05/0.5275, allocations: 2.344 kB / 0.8006 GB, free: 9.684 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002635/0.5302, allocations: 1.498 MB / 0.8021 GB, free: 8.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.5302, allocations: 1.281 kB / 0.8021 GB, free: 8.91 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000387/0.5306, allocations: 72.41 kB / 0.8022 GB, free: 8.902 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007213/0.5313, allocations: 202.8 kB / 0.8023 GB, free: 8.84 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.126e-05/0.5314, allocations: 9.109 kB / 0.8024 GB, free: 8.836 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005914/0.5373, allocations: 5.287 MB / 0.8075 GB, free: 4.195 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.5373, allocations: 2.156 kB / 0.8075 GB, free: 4.195 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001965/0.5393, allocations: 1.13 MB / 0.8086 GB, free: 3.617 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002745/0.5396, allocations: 172.6 kB / 0.8088 GB, free: 3.477 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.814e-05/0.5397, allocations: 16.22 kB / 0.8088 GB, free: 3.465 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003355/0.54, allocations: 25.27 kB / 0.8088 GB, free: 3.461 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.5401, allocations: 38.25 kB / 0.8089 GB, free: 3.449 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.197e-05/0.5402, allocations: 14.31 kB / 0.8089 GB, free: 3.445 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000387/0.5405, allocations: 316 kB / 0.8092 GB, free: 3.297 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5406, allocations: 0 / 0.8092 GB, free: 3.297 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007078/0.5413, allocations: 166.3 kB / 0.8093 GB, free: 3.281 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[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 (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002279/0.5436, allocations: 1.705 MB / 0.811 GB, free: 2.141 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001777/0.5453, allocations: 1.024 MB / 0.812 GB, free: 1.551 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.5454, allocations: 0 / 0.812 GB, free: 1.551 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001082/0.5465, allocations: 0.6816 MB / 0.8127 GB, free: 1.09 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000945/0.5474, allocations: 186.9 kB / 0.8128 GB, free: 1.027 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008254/0.5557, allocations: 5.657 MB / 0.8184 GB, free: 13.71 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006766/0.5564, allocations: 0.952 MB / 0.8193 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003981/0.5568, allocations: 114.5 kB / 0.8194 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003009/0.5571, allocations: 211.9 kB / 0.8196 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of SimCode: time 6.51e-07/0.5571, allocations: 4 kB / 0.8196 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05041/0.6075, allocations: 14.23 MB / 0.8335 GB, free: 7.105 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.52, allocations: 8.109 kB / 0.8335 GB, free: 7.102 MB / 0.5919 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_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_ThreePhasesBalanced_Lines_Examples_ACLine_RL.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1)