Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_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.007769/0.007769, allocations: 103.7 kB / 15.74 MB, free: 6.445 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.001839/0.001839, allocations: 196.3 kB / 16.67 MB, free: 6.352 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.382/1.382, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.347/2.347, allocations: 390.3 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001244, allocations: 67.33 kB / 0.9504 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2606, allocations: 140.4 MB / 1.087 GB, free: 1.996 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N): time 0.02371/0.2844, allocations: 20.24 MB / 1.107 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01093/0.2953, allocations: 6.453 MB / 1.114 GB, free: 7.215 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001987/0.2974, allocations: 83.62 kB / 1.114 GB, free: 7.133 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.005857/0.3033, allocations: 2.244 MB / 1.116 GB, free: 4.883 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.003502/0.3068, allocations: 1.244 MB / 1.117 GB, free: 3.633 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.003377/0.3102, allocations: 1.289 MB / 1.118 GB, free: 2.344 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.005524/0.3157, allocations: 4.85 MB / 1.123 GB, free: 13.48 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00858/0.3243, allocations: 5.606 MB / 1.129 GB, free: 7.805 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004006/0.3284, allocations: 2.119 MB / 1.131 GB, free: 5.68 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004077/0.3325, allocations: 2.344 MB / 1.133 GB, free: 3.328 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.001231/0.3337, allocations: 428 kB / 1.133 GB, free: 2.91 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002809/0.3366, allocations: 0.9987 MB / 1.134 GB, free: 1.91 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.002782/0.3394, allocations: 1.672 MB / 1.136 GB, free: 240 kB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.004287/0.3437, allocations: 1.914 MB / 1.138 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.009813/0.3535, allocations: 6.534 MB / 1.144 GB, free: 7.758 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 1.016e-05/0.3536, allocations: 0 / 1.144 GB, free: 7.758 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.913e-06/0.3536, allocations: 0 / 1.144 GB, free: 7.758 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0002137/0.3538, allocations: 0 / 1.144 GB, free: 7.758 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.00872/0.3625, allocations: 3.545 MB / 1.148 GB, free: 4.145 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/0.3626, allocations: 8.031 kB / 1.148 GB, free: 4.137 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006903/0.3633, allocations: 454.6 kB / 1.148 GB, free: 3.68 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003494/0.3668, allocations: 0.6623 MB / 1.149 GB, free: 3.016 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004436/0.3713, allocations: 2.046 MB / 1.151 GB, free: 0.9102 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001597/0.3714, allocations: 222.3 kB / 1.151 GB, free: 0.6914 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006228/0.3721, allocations: 300.1 kB / 1.151 GB, free: 408 kB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008399/0.3805, allocations: 4.878 MB / 1.156 GB, free: 11.32 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.648e-05/0.3806, allocations: 19.83 kB / 1.156 GB, free: 11.3 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003032/0.3809, allocations: 128 kB / 1.156 GB, free: 11.18 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004365/0.3813, allocations: 237.7 kB / 1.156 GB, free: 10.95 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006062/0.3874, allocations: 3.746 MB / 1.16 GB, free: 7.188 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02471/0.4122, allocations: 21.43 MB / 1.181 GB, free: 15.76 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001917/0.4141, allocations: 1.308 MB / 1.182 GB, free: 14.44 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001462/0.4156, allocations: 1.054 MB / 1.183 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 5.822e-05/0.4157, allocations: 16.94 kB / 1.183 GB, free: 13.37 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.584e-05/0.4157, allocations: 43.56 kB / 1.183 GB, free: 13.31 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=107): time 2.846e-06/0.4157, allocations: 0 / 1.183 GB, free: 13.31 MB / 0.9512 GB Notification: Performance of matching and sorting (n=138): time 0.02375/0.4395, allocations: 8.696 MB / 1.192 GB, free: 4.562 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.256e-05/0.4396, allocations: 64.72 kB / 1.192 GB, free: 4.488 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001357/0.4409, allocations: 1.138 MB / 1.193 GB, free: 3.344 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001196/0.4411, allocations: 45.7 kB / 1.193 GB, free: 3.293 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007335/0.4418, allocations: 1.335 MB / 1.194 GB, free: 1.945 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003958/0.4422, allocations: 0.4996 MB / 1.195 GB, free: 1.441 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004279/0.4426, allocations: 291.5 kB / 1.195 GB, free: 1.152 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 8.729e-05/0.4427, allocations: 305.1 kB / 1.195 GB, free: 0.8516 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001196/0.4439, allocations: 0.9096 MB / 1.196 GB, free: 15.94 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0014/0.4454, allocations: 1.33 MB / 1.198 GB, free: 14.44 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002794/0.4482, allocations: 2.43 MB / 1.2 GB, free: 11.84 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.364e-06/0.4482, allocations: 4 kB / 1.2 GB, free: 11.84 MB / 0.9669 GB Notification: Performance of matching and sorting (n=203) (initialization): time 0.005555/0.4537, allocations: 3.476 MB / 1.203 GB, free: 8.34 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.493e-05/0.4538, allocations: 14.03 kB / 1.203 GB, free: 8.328 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.62e-05/0.4538, allocations: 12 kB / 1.203 GB, free: 8.316 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002971/0.4568, allocations: 1.186 MB / 1.204 GB, free: 7.125 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008706/0.4577, allocations: 259.5 kB / 1.205 GB, free: 6.871 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01584/0.4735, allocations: 13.84 MB / 1.218 GB, free: 8.609 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001252/0.4748, allocations: 91.98 kB / 1.218 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.4749, allocations: 63.98 kB / 1.218 GB, free: 8.457 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (132): * Single equations (assignments): 129 * 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 {(5,17,84.0%), (5,17,92.0%), (5,25,88.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00153/0.4765, allocations: 1.11 MB / 1.219 GB, free: 7.336 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002413/0.4767, allocations: 174.9 kB / 1.22 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00523/0.4819, allocations: 3.169 MB / 1.223 GB, free: 3.969 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-05/0.482, allocations: 12 kB / 1.223 GB, free: 3.957 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.957e-05/0.482, allocations: 15.94 kB / 1.223 GB, free: 3.941 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/0.482, allocations: 11.97 kB / 1.223 GB, free: 3.93 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009815/0.4918, allocations: 6.237 MB / 1.229 GB, free: 13.55 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.105e-05/0.4919, allocations: 4 kB / 1.229 GB, free: 13.55 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006057/0.4925, allocations: 147.8 kB / 1.229 GB, free: 13.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002942/0.4955, allocations: 1.072 MB / 1.23 GB, free: 12.32 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001595/0.4956, allocations: 28 kB / 1.23 GB, free: 12.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01609/0.5117, allocations: 13.56 MB / 1.243 GB, free: 14.32 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.5118, allocations: 4 kB / 1.243 GB, free: 14.32 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00501/0.5168, allocations: 3.163 MB / 1.246 GB, free: 11.07 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008674/0.5177, allocations: 435.9 kB / 1.247 GB, free: 10.62 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002572/0.518, allocations: 24 kB / 1.247 GB, free: 10.6 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008264/0.5188, allocations: 83.89 kB / 1.247 GB, free: 10.52 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003111/0.5191, allocations: 128.7 kB / 1.247 GB, free: 10.39 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.954e-05/0.5192, allocations: 39.94 kB / 1.247 GB, free: 10.35 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0009601/0.5202, allocations: 0.771 MB / 1.248 GB, free: 9.578 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5202, allocations: 0 / 1.248 GB, free: 9.578 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001819/0.522, allocations: 0.6562 MB / 1.248 GB, free: 8.922 MB / 1.014 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 (70): * Single equations (assignments): 67 * 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 {(5,17,84.0%), (5,25,88.0%), (5,17,92.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005079/0.5271, allocations: 3.753 MB / 1.252 GB, free: 5.082 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.004823/0.5319, allocations: 3.15 MB / 1.255 GB, free: 1.887 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/0.532, allocations: 0 / 1.255 GB, free: 1.887 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.5218/1.054, allocations: 1.961 MB / 1.257 GB, free: 157.3 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002816/1.057, allocations: 0.4935 MB / 1.258 GB, free: 157.3 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03266/1.089, allocations: 19.2 MB / 1.276 GB, free: 151.3 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002888/1.092, allocations: 2.339 MB / 1.279 GB, free: 150.2 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.00126/1.094, allocations: 350.1 kB / 1.279 GB, free: 150.2 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00104/1.095, allocations: 1.008 MB / 1.28 GB, free: 149.3 MB / 1.014 GB Notification: Performance of SimCode: time 1.062e-06/1.095, allocations: 0 / 1.28 GB, free: 149.3 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08645/1.181, allocations: 52.3 MB / 1.331 GB, free: 117.4 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.1/13.28, allocations: 6.375 kB / 1.331 GB, free: 117.3 MB / 1.014 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches