Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.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.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel",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.00859/0.00859, allocations: 101.1 kB / 15.73 MB, free: 5.609 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.001746/0.001747, allocations: 193.5 kB / 16.67 MB, free: 5.527 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.3/1.3, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.513/2.513, allocations: 469.4 MB / 0.7422 GB, free: 3.469 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 67.84 kB / 1.064 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7648/0.7662, allocations: 159.1 MB / 1.22 GB, free: 2.25 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006218/0.7724, allocations: 4.37 MB / 1.224 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.003107/0.7756, allocations: 1.858 MB / 1.226 GB, free: 11.99 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003814/0.776, allocations: 11.94 kB / 1.226 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001677/0.7777, allocations: 0.5837 MB / 1.226 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0008346/0.7786, allocations: 266.6 kB / 1.227 GB, free: 11.13 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008083/0.7794, allocations: 254.6 kB / 1.227 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0008911/0.7803, allocations: 0.6073 MB / 1.227 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008123/0.7811, allocations: 473.4 kB / 1.228 GB, free: 9.816 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004223/0.7816, allocations: 251.2 kB / 1.228 GB, free: 9.57 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005836/0.7822, allocations: 267 kB / 1.228 GB, free: 9.309 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 8.471e-05/0.7823, allocations: 36 kB / 1.228 GB, free: 9.273 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004951/0.7828, allocations: 255.5 kB / 1.229 GB, free: 9.023 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001757/0.7829, allocations: 147.6 kB / 1.229 GB, free: 8.879 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002794/0.7832, allocations: 222.9 kB / 1.229 GB, free: 8.66 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0008947/0.7841, allocations: 0.6081 MB / 1.23 GB, free: 8.051 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.7842, allocations: 4 kB / 1.23 GB, free: 8.047 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.242e-06/0.7842, allocations: 0 / 1.23 GB, free: 8.047 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 2.046e-05/0.7842, allocations: 0 / 1.23 GB, free: 8.047 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.00153/0.7857, allocations: 0.7323 MB / 1.23 GB, free: 7.266 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.7858, allocations: 16.61 kB / 1.23 GB, free: 7.25 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001022/0.7859, allocations: 74.72 kB / 1.23 GB, free: 7.168 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001008/0.7869, allocations: 152.5 kB / 1.231 GB, free: 7.02 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005391/0.7875, allocations: 342.6 kB / 1.231 GB, free: 6.645 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.841e-05/0.7875, allocations: 29.36 kB / 1.231 GB, free: 6.617 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.514e-05/0.7876, allocations: 36.38 kB / 1.231 GB, free: 6.582 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008165/0.7884, allocations: 0.5354 MB / 1.232 GB, free: 6.012 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/0.7884, allocations: 8 kB / 1.232 GB, free: 6.004 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.779e-05/0.7885, allocations: 16 kB / 1.232 GB, free: 5.988 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-05/0.7886, allocations: 28.64 kB / 1.232 GB, free: 5.961 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005914/0.7891, allocations: 390.2 kB / 1.232 GB, free: 5.582 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002776/0.7919, allocations: 2.392 MB / 1.234 GB, free: 2.969 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005346/0.7925, allocations: 266.4 kB / 1.235 GB, free: 2.699 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001691/0.7927, allocations: 108.8 kB / 1.235 GB, free: 2.59 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.521e-05/0.7927, allocations: 4 kB / 1.235 GB, free: 2.586 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/0.7927, allocations: 38.55 kB / 1.235 GB, free: 2.539 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=20): time 2.204e-06/0.7927, allocations: 0 / 1.235 GB, free: 2.539 MB / 0.9512 GB Notification: Performance of matching and sorting (n=23): time 0.002313/0.7951, allocations: 1.14 MB / 1.236 GB, free: 1.305 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.831e-05/0.7951, allocations: 51.41 kB / 1.236 GB, free: 1.242 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003185/0.7955, allocations: 308.4 kB / 1.236 GB, free: 0.9336 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.675e-05/0.7955, allocations: 29.7 kB / 1.236 GB, free: 0.8984 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001476/0.7957, allocations: 240.1 kB / 1.236 GB, free: 0.6562 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 7.311e-05/0.7957, allocations: 87.23 kB / 1.236 GB, free: 0.5703 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.7959, allocations: 58.03 kB / 1.237 GB, free: 0.5039 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001328/0.796, allocations: 342.8 kB / 1.237 GB, free: 164 kB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001963/0.7962, allocations: 100.6 kB / 1.237 GB, free: 64 kB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002293/0.7964, allocations: 191.7 kB / 1.237 GB, free: 15.84 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003803/0.7968, allocations: 319.4 kB / 1.237 GB, free: 15.49 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.7968, allocations: 0 / 1.237 GB, free: 15.49 MB / 0.9669 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007711/0.7976, allocations: 446 kB / 1.238 GB, free: 15.04 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/0.7976, allocations: 5.562 kB / 1.238 GB, free: 15.04 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.7977, allocations: 4 kB / 1.238 GB, free: 15.03 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003834/0.798, allocations: 98.69 kB / 1.238 GB, free: 14.93 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000282/0.7983, allocations: 59.91 kB / 1.238 GB, free: 14.87 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003405/0.8018, allocations: 4.399 MB / 1.242 GB, free: 10.04 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002823/0.8021, allocations: 8 kB / 1.242 GB, free: 10.04 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.945e-05/0.8021, allocations: 16 kB / 1.242 GB, free: 10.02 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 31 * 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 {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002371/0.8023, allocations: 178.4 kB / 1.242 GB, free: 9.836 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.486e-05/0.8024, allocations: 35.75 kB / 1.243 GB, free: 9.801 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.745e-05/0.8025, allocations: 42.31 kB / 1.243 GB, free: 9.762 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.8025, allocations: 4 kB / 1.243 GB, free: 9.758 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.8025, allocations: 3.938 kB / 1.243 GB, free: 9.754 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.8026, allocations: 3.984 kB / 1.243 GB, free: 9.75 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004733/0.803, allocations: 397.4 kB / 1.243 GB, free: 9.312 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.803, allocations: 3.938 kB / 1.243 GB, free: 9.309 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002039/0.8033, allocations: 43.97 kB / 1.243 GB, free: 9.266 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000308/0.8036, allocations: 90.48 kB / 1.243 GB, free: 9.168 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.8036, allocations: 4 kB / 1.243 GB, free: 9.164 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003175/0.8068, allocations: 4.392 MB / 1.247 GB, free: 4.352 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.8068, allocations: 4.094 kB / 1.247 GB, free: 4.348 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008775/0.8077, allocations: 0.5582 MB / 1.248 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001775/0.8079, allocations: 124.9 kB / 1.248 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.935e-05/0.8079, allocations: 4 kB / 1.248 GB, free: 3.621 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002229/0.8082, allocations: 20.05 kB / 1.248 GB, free: 3.602 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.855e-05/0.8082, allocations: 23.83 kB / 1.248 GB, free: 3.578 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.589e-05/0.8083, allocations: 4 kB / 1.248 GB, free: 3.574 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0002135/0.8085, allocations: 211 kB / 1.248 GB, free: 3.367 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.1e-07/0.8085, allocations: 0 / 1.248 GB, free: 3.367 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0004777/0.809, allocations: 100 kB / 1.248 GB, free: 3.27 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * 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 {(1,1,100.0%), (1,2,100.0%), (1,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.001023/0.81, allocations: 1.099 MB / 1.249 GB, free: 2.137 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0008866/0.8109, allocations: 0.6053 MB / 1.25 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.8109, allocations: 0 / 1.25 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0005138/0.8114, allocations: 484.4 kB / 1.251 GB, free: 0.9805 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005527/0.812, allocations: 79.06 kB / 1.251 GB, free: 0.9062 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004196/0.8162, allocations: 3.377 MB / 1.254 GB, free: 13.36 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004015/0.8166, allocations: 0.8311 MB / 1.255 GB, free: 12.5 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0002105/0.8169, allocations: 62.92 kB / 1.255 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001522/0.817, allocations: 115.4 kB / 1.255 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of SimCode: time 7.21e-07/0.817, allocations: 0 / 1.255 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03208/0.8491, allocations: 7.785 MB / 1.262 GB, free: 4.711 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.401/10.25, allocations: 11.25 kB / 1.262 GB, free: 4.703 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.006 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches