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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(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.002018/0.002018, allocations: 107.4 kB / 15.34 MB, free: 0.5 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.002895/0.002895, allocations: 194.9 kB / 16.26 MB, free: 6.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.388/2.388, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 4.89/4.89, allocations: 461.9 MB / 0.7343 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002664/0.002664, allocations: 67.48 kB / 0.8987 GB, free: 37.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5332/0.5359, allocations: 157.4 MB / 1.052 GB, free: 8.684 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.009541/0.5455, allocations: 4.399 MB / 1.057 GB, free: 4.262 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003922/0.5495, allocations: 1.839 MB / 1.058 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002848/0.5498, allocations: 15.94 kB / 1.059 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.002205/0.5521, allocations: 0.5676 MB / 1.059 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000987/0.5531, allocations: 238.9 kB / 1.059 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.00104/0.5541, allocations: 231.5 kB / 1.06 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001064/0.5552, allocations: 0.6073 MB / 1.06 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001187/0.5564, allocations: 0.5107 MB / 1.061 GB, free: 260 kB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004457/0.5569, allocations: 247.1 kB / 1.061 GB, free: 12 kB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006566/0.5576, allocations: 271 kB / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.684e-05/0.5577, allocations: 40 kB / 1.061 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006956/0.5584, allocations: 255.4 kB / 1.061 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002279/0.5586, allocations: 159.6 kB / 1.062 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000325/0.559, allocations: 222.9 kB / 1.062 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.00107/0.56, allocations: 0.6153 MB / 1.062 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.5601, allocations: 0 / 1.062 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.564e-06/0.5601, allocations: 0 / 1.062 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.226e-05/0.5601, allocations: 0 / 1.062 GB, free: 14.46 MB / 0.8262 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.001894/0.562, allocations: 0.7368 MB / 1.063 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 6.393e-05/0.5621, allocations: 8.625 kB / 1.063 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001374/0.5622, allocations: 74.72 kB / 1.063 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001664/0.5639, allocations: 152.2 kB / 1.063 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007093/0.5646, allocations: 330.5 kB / 1.064 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.734e-05/0.5647, allocations: 25.38 kB / 1.064 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.898e-05/0.5648, allocations: 40.36 kB / 1.064 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/0.5662, allocations: 0.5316 MB / 1.064 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/0.5663, allocations: 3.938 kB / 1.064 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.114e-05/0.5663, allocations: 15.98 kB / 1.064 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.649e-05/0.5664, allocations: 32.64 kB / 1.064 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009036/0.5673, allocations: 386.3 kB / 1.065 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004876/0.5722, allocations: 2.403 MB / 1.067 GB, free: 9.391 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008533/0.5731, allocations: 258.5 kB / 1.067 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002498/0.5734, allocations: 112.8 kB / 1.067 GB, free: 9.016 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.5734, allocations: 0 / 1.067 GB, free: 9.016 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.462e-05/0.5735, allocations: 42.5 kB / 1.067 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=20): time 1.823e-06/0.5735, allocations: 0 / 1.067 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23): time 0.003543/0.577, allocations: 1.124 MB / 1.068 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.426e-05/0.5771, allocations: 55.41 kB / 1.068 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005313/0.5777, allocations: 308.3 kB / 1.069 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.399e-05/0.5777, allocations: 33.7 kB / 1.069 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000251/0.578, allocations: 227.7 kB / 1.069 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001281/0.5781, allocations: 86.83 kB / 1.069 GB, free: 7.02 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.5783, allocations: 61.94 kB / 1.069 GB, free: 6.953 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002355/0.5785, allocations: 338.8 kB / 1.07 GB, free: 6.613 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002674/0.5788, allocations: 100.6 kB / 1.07 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003648/0.5792, allocations: 195.7 kB / 1.07 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006551/0.5799, allocations: 316.2 kB / 1.07 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.5799, allocations: 0 / 1.07 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.00132/0.5812, allocations: 445.7 kB / 1.071 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.958e-05/0.5813, allocations: 9.406 kB / 1.071 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.5813, allocations: 4.344 kB / 1.071 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005205/0.5818, allocations: 94.5 kB / 1.071 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004189/0.5822, allocations: 75.78 kB / 1.071 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006126/0.5884, allocations: 4.388 MB / 1.075 GB, free: 500 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004627/0.5889, allocations: 12.03 kB / 1.075 GB, free: 488 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.782e-05/0.5889, allocations: 12 kB / 1.075 GB, free: 476 kB / 0.8262 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.0004334/0.5894, allocations: 181.8 kB / 1.075 GB, free: 284 kB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.5895, allocations: 39.55 kB / 1.075 GB, free: 244 kB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.888e-05/0.5896, allocations: 34.33 kB / 1.075 GB, free: 212 kB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.926e-06/0.5896, allocations: 7.984 kB / 1.075 GB, free: 204 kB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.545e-05/0.5897, allocations: 0 / 1.075 GB, free: 204 kB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.5897, allocations: 3.938 kB / 1.075 GB, free: 200 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009483/0.5906, allocations: 397.4 kB / 1.076 GB, free: 15.76 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.5906, allocations: 3.938 kB / 1.076 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003008/0.591, allocations: 35.98 kB / 1.076 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005064/0.5915, allocations: 90.5 kB / 1.076 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.888e-05/0.5915, allocations: 11.98 kB / 1.076 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006132/0.5977, allocations: 4.383 MB / 1.08 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/0.5977, allocations: 3.938 kB / 1.08 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001562/0.5993, allocations: 0.556 MB / 1.081 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003635/0.5997, allocations: 124.7 kB / 1.081 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001165/0.5998, allocations: 11.94 kB / 1.081 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003788/0.6002, allocations: 4 kB / 1.081 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.381e-05/0.6003, allocations: 19.97 kB / 1.081 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.181e-05/0.6004, allocations: 20 kB / 1.081 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005069/0.6009, allocations: 207 kB / 1.081 GB, free: 9.824 MB / 0.8419 GB Notification: Performance of sort global known variables: time 6.11e-07/0.6009, allocations: 0 / 1.081 GB, free: 9.824 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0009442/0.6019, allocations: 96 kB / 1.081 GB, free: 9.73 MB / 0.8419 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.002088/0.604, allocations: 1.104 MB / 1.082 GB, free: 8.594 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001627/0.6056, allocations: 0.6213 MB / 1.083 GB, free: 7.934 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/0.6056, allocations: 0 / 1.083 GB, free: 7.934 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0007796/0.6064, allocations: 474.5 kB / 1.083 GB, free: 7.434 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008106/0.6072, allocations: 87.3 kB / 1.083 GB, free: 7.352 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008759/0.616, allocations: 3.524 MB / 1.087 GB, free: 3.672 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008822/0.6169, allocations: 0.8427 MB / 1.088 GB, free: 2.805 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003729/0.6173, allocations: 54.94 kB / 1.088 GB, free: 2.746 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002281/0.6176, allocations: 107.4 kB / 1.088 GB, free: 2.641 MB / 0.8419 GB Notification: Performance of SimCode: time 1.142e-06/0.6176, allocations: 4 kB / 1.088 GB, free: 2.637 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.584/2.202, allocations: 7.598 MB / 1.095 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003676/2.202, allocations: 220.8 kB / 1.095 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.575/4.778, allocations: 0 / 1.095 GB, free: 10.98 MB / 0.8575 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 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.mat","/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