Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_Buildings_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.007316/0.007316, allocations: 98.16 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.001852/0.001852, allocations: 196.1 kB / 16.67 MB, free: 5.926 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.257/1.257, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.432/2.432, allocations: 469.4 MB / 0.7422 GB, free: 3.473 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 71.89 kB / 1.064 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6566/0.6578, allocations: 159.1 MB / 1.22 GB, free: 2.277 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.006255/0.664, allocations: 5.543 MB / 1.225 GB, free: 12.71 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.003668/0.6677, allocations: 2.646 MB / 1.228 GB, free: 10.05 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002394/0.668, allocations: 23.81 kB / 1.228 GB, free: 10.03 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001595/0.6696, allocations: 0.6918 MB / 1.228 GB, free: 9.336 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0007296/0.6703, allocations: 421.7 kB / 1.229 GB, free: 8.922 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007682/0.6711, allocations: 403 kB / 1.229 GB, free: 8.527 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0007945/0.6719, allocations: 0.9591 MB / 1.23 GB, free: 7.566 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005332/0.6725, allocations: 473.1 kB / 1.231 GB, free: 7.098 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000362/0.6728, allocations: 374.6 kB / 1.231 GB, free: 6.73 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004096/0.6733, allocations: 402.4 kB / 1.231 GB, free: 6.336 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 6.405e-05/0.6733, allocations: 48 kB / 1.231 GB, free: 6.289 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004847/0.6738, allocations: 371.2 kB / 1.232 GB, free: 5.926 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0002/0.674, allocations: 247.3 kB / 1.232 GB, free: 5.684 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002783/0.6743, allocations: 350.3 kB / 1.232 GB, free: 5.34 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0008876/0.6752, allocations: 0.9815 MB / 1.233 GB, free: 4.355 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.6752, allocations: 0 / 1.233 GB, free: 4.355 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.012e-06/0.6752, allocations: 0 / 1.233 GB, free: 4.355 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.304e-05/0.6753, allocations: 0 / 1.233 GB, free: 4.355 MB / 0.9512 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.001387/0.6766, allocations: 0.9962 MB / 1.234 GB, free: 3.309 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.6767, allocations: 8.625 kB / 1.234 GB, free: 3.301 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.803e-05/0.6768, allocations: 94.7 kB / 1.234 GB, free: 3.199 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001349/0.6781, allocations: 212.2 kB / 1.235 GB, free: 2.992 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007529/0.6789, allocations: 0.5262 MB / 1.235 GB, free: 2.43 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.811e-05/0.6789, allocations: 37.36 kB / 1.235 GB, free: 2.395 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001397/0.6791, allocations: 52.56 kB / 1.235 GB, free: 2.344 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001023/0.6801, allocations: 0.8355 MB / 1.236 GB, free: 1.426 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/0.6802, allocations: 0 / 1.236 GB, free: 1.426 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.511e-05/0.6802, allocations: 27.98 kB / 1.236 GB, free: 1.398 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001867/0.6804, allocations: 72.94 kB / 1.236 GB, free: 1.328 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007952/0.6812, allocations: 0.5735 MB / 1.237 GB, free: 0.75 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003745/0.685, allocations: 4.566 MB / 1.241 GB, free: 11.83 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004163/0.6854, allocations: 303.3 kB / 1.241 GB, free: 11.53 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002784/0.6857, allocations: 233.2 kB / 1.242 GB, free: 11.3 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/0.6857, allocations: 4.281 kB / 1.242 GB, free: 11.29 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.353e-05/0.6857, allocations: 34.78 kB / 1.242 GB, free: 11.25 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=33): time 1.643e-06/0.6858, allocations: 0 / 1.242 GB, free: 11.25 MB / 0.9669 GB Notification: Performance of matching and sorting (n=40): time 0.005159/0.6909, allocations: 2.652 MB / 1.244 GB, free: 8.473 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.93e-05/0.691, allocations: 55.41 kB / 1.244 GB, free: 8.406 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004154/0.6914, allocations: 466 kB / 1.245 GB, free: 7.938 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.368e-05/0.6914, allocations: 37.69 kB / 1.245 GB, free: 7.895 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.000184/0.6916, allocations: 344.5 kB / 1.245 GB, free: 7.555 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 9.893e-05/0.6917, allocations: 150.7 kB / 1.245 GB, free: 7.406 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001524/0.6919, allocations: 110.2 kB / 1.245 GB, free: 7.293 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001146/0.692, allocations: 362.8 kB / 1.246 GB, free: 6.93 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003266/0.6923, allocations: 241 kB / 1.246 GB, free: 6.695 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004096/0.6927, allocations: 410.4 kB / 1.246 GB, free: 6.219 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000766/0.6935, allocations: 0.67 MB / 1.247 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.6935, allocations: 4 kB / 1.247 GB, free: 5.473 MB / 0.9669 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001523/0.6951, allocations: 0.9218 MB / 1.248 GB, free: 4.535 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.6951, allocations: 8 kB / 1.248 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.6951, allocations: 4 kB / 1.248 GB, free: 4.523 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007429/0.6958, allocations: 222.5 kB / 1.248 GB, free: 4.297 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004951/0.6964, allocations: 115.8 kB / 1.248 GB, free: 4.184 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00457/0.7009, allocations: 5.352 MB / 1.253 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004034/0.7014, allocations: 31.97 kB / 1.253 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.829e-05/0.7014, allocations: 24 kB / 1.253 GB, free: 14.36 MB / 0.9825 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.000251/0.7017, allocations: 225.7 kB / 1.254 GB, free: 14.13 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.888e-05/0.7017, allocations: 63.61 kB / 1.254 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001401/0.7032, allocations: 0.7774 MB / 1.255 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.7032, allocations: 4 kB / 1.255 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.7032, allocations: 4 kB / 1.255 GB, free: 13.26 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.7032, allocations: 0 / 1.255 GB, free: 13.26 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002243/0.7054, allocations: 1.498 MB / 1.256 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.7055, allocations: 4.406 kB / 1.256 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003666/0.7058, allocations: 75.88 kB / 1.256 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006422/0.7065, allocations: 202.4 kB / 1.256 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.075e-05/0.7065, allocations: 12 kB / 1.256 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004444/0.711, allocations: 5.278 MB / 1.261 GB, free: 5.68 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.711, allocations: 0 / 1.261 GB, free: 5.68 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001644/0.7126, allocations: 1.139 MB / 1.263 GB, free: 4.492 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002483/0.7129, allocations: 168.7 kB / 1.263 GB, free: 4.309 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.004e-05/0.713, allocations: 20 kB / 1.263 GB, free: 4.289 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003461/0.7134, allocations: 27.97 kB / 1.263 GB, free: 4.262 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.107e-05/0.7134, allocations: 31.95 kB / 1.263 GB, free: 4.23 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.759e-05/0.7135, allocations: 16 kB / 1.263 GB, free: 4.215 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003269/0.7138, allocations: 310.9 kB / 1.263 GB, free: 3.914 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7138, allocations: 0 / 1.263 GB, free: 3.914 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000634/0.7145, allocations: 168 kB / 1.263 GB, free: 3.75 MB / 0.9825 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.001868/0.7163, allocations: 1.707 MB / 1.265 GB, free: 1.98 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001509/0.7179, allocations: 1.005 MB / 1.266 GB, free: 0.9375 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.7179, allocations: 0 / 1.266 GB, free: 0.9375 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0009086/0.7188, allocations: 0.6876 MB / 1.267 GB, free: 216 kB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008467/0.7196, allocations: 185.6 kB / 1.267 GB, free: 40 kB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007035/0.7267, allocations: 5.648 MB / 1.272 GB, free: 10.11 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004976/0.7272, allocations: 0.9532 MB / 1.273 GB, free: 9.133 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0003228/0.7275, allocations: 113 kB / 1.273 GB, free: 9.02 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002623/0.7278, allocations: 215.4 kB / 1.273 GB, free: 8.809 MB / 0.9981 GB Notification: Performance of SimCode: time 6.72e-07/0.7278, allocations: 0 / 1.273 GB, free: 8.809 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03915/0.767, allocations: 14.2 MB / 1.287 GB, free: 10.91 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.11/10.88, allocations: 7.719 kB / 1.287 GB, free: 10.91 MB / 1.014 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.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 Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches