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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.005987/0.005987, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001444/0.001444, allocations: 193.4 kB / 16.67 MB, free: 5.969 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.293/1.293, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.557/2.557, allocations: 472.7 MB / 0.7453 GB, free: 440 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 67.91 kB / 1.069 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.818/0.8194, allocations: 159.9 MB / 1.225 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005595/0.8251, allocations: 4.356 MB / 1.229 GB, free: 9.105 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002582/0.8277, allocations: 1.866 MB / 1.231 GB, free: 7.23 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001516/0.8278, allocations: 11.94 kB / 1.231 GB, free: 7.219 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001485/0.8294, allocations: 0.5905 MB / 1.232 GB, free: 6.629 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.00048/0.8298, allocations: 258.6 kB / 1.232 GB, free: 6.375 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005216/0.8304, allocations: 255.4 kB / 1.232 GB, free: 6.125 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0006152/0.831, allocations: 0.6073 MB / 1.233 GB, free: 5.516 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006493/0.8317, allocations: 473.4 kB / 1.233 GB, free: 5.055 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000257/0.8319, allocations: 247.1 kB / 1.234 GB, free: 4.812 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004033/0.8323, allocations: 275 kB / 1.234 GB, free: 4.543 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 5.205e-05/0.8324, allocations: 36 kB / 1.234 GB, free: 4.508 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003909/0.8328, allocations: 259.4 kB / 1.234 GB, free: 4.254 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001419/0.8329, allocations: 151.6 kB / 1.234 GB, free: 4.105 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002043/0.8332, allocations: 219 kB / 1.235 GB, free: 3.891 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0006448/0.8338, allocations: 0.6042 MB / 1.235 GB, free: 3.285 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.8338, allocations: 4 kB / 1.235 GB, free: 3.281 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.473e-06/0.8338, allocations: 0 / 1.235 GB, free: 3.281 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.185e-06/0.8338, allocations: 0 / 1.235 GB, free: 3.281 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.001118/0.835, allocations: 0.7439 MB / 1.236 GB, free: 2.488 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.835, allocations: 12.03 kB / 1.236 GB, free: 2.477 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.626e-05/0.8351, allocations: 74.7 kB / 1.236 GB, free: 2.395 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009173/0.836, allocations: 152.5 kB / 1.236 GB, free: 2.246 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004266/0.8365, allocations: 342.7 kB / 1.236 GB, free: 1.871 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/0.8365, allocations: 21.38 kB / 1.236 GB, free: 1.852 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.807e-05/0.8365, allocations: 40.36 kB / 1.236 GB, free: 1.812 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007009/0.8373, allocations: 0.5316 MB / 1.237 GB, free: 1.242 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.8373, allocations: 3.938 kB / 1.237 GB, free: 1.238 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.603e-05/0.8373, allocations: 15.98 kB / 1.237 GB, free: 1.223 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.45e-05/0.8374, allocations: 32.64 kB / 1.237 GB, free: 1.191 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005439/0.8379, allocations: 386.3 kB / 1.237 GB, free: 0.8164 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002448/0.8404, allocations: 2.396 MB / 1.24 GB, free: 14.2 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004907/0.8409, allocations: 270.3 kB / 1.24 GB, free: 13.92 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001609/0.841, allocations: 112.8 kB / 1.24 GB, free: 13.81 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.433e-05/0.8411, allocations: 3.938 kB / 1.24 GB, free: 13.8 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.767e-05/0.8411, allocations: 38.5 kB / 1.24 GB, free: 13.76 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=20): time 1.302e-06/0.8411, allocations: 0 / 1.24 GB, free: 13.76 MB / 0.9669 GB Notification: Performance of matching and sorting (n=23): time 0.002126/0.8433, allocations: 1.13 MB / 1.241 GB, free: 12.53 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.929e-05/0.8433, allocations: 55.41 kB / 1.241 GB, free: 12.46 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002965/0.8436, allocations: 300.5 kB / 1.242 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.615e-05/0.8437, allocations: 33.7 kB / 1.242 GB, free: 12.12 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001428/0.8438, allocations: 232.2 kB / 1.242 GB, free: 11.89 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 6.26e-05/0.8439, allocations: 95.2 kB / 1.242 GB, free: 11.8 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.299e-05/0.844, allocations: 58.03 kB / 1.242 GB, free: 11.73 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001362/0.8441, allocations: 342.8 kB / 1.242 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001568/0.8443, allocations: 96.61 kB / 1.242 GB, free: 11.29 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002184/0.8445, allocations: 195.7 kB / 1.243 GB, free: 11.06 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003926/0.8449, allocations: 319.4 kB / 1.243 GB, free: 10.71 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.8449, allocations: 0 / 1.243 GB, free: 10.71 MB / 0.9669 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007223/0.8456, allocations: 445.9 kB / 1.243 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.8457, allocations: 8 kB / 1.243 GB, free: 10.26 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.8457, allocations: 4 kB / 1.243 GB, free: 10.25 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003408/0.846, allocations: 94.84 kB / 1.243 GB, free: 10.15 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002521/0.8463, allocations: 63.91 kB / 1.243 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003228/0.8495, allocations: 4.403 MB / 1.248 GB, free: 5.262 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002199/0.8498, allocations: 8 kB / 1.248 GB, free: 5.254 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.325e-05/0.8498, allocations: 16.16 kB / 1.248 GB, free: 5.238 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.0001841/0.85, allocations: 175.6 kB / 1.248 GB, free: 5.059 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.582e-05/0.85, allocations: 35.75 kB / 1.248 GB, free: 5.023 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.913e-05/0.8501, allocations: 38.31 kB / 1.248 GB, free: 4.984 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.8501, allocations: 4 kB / 1.248 GB, free: 4.98 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.8501, allocations: 0 / 1.248 GB, free: 4.98 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.8502, allocations: 3.984 kB / 1.248 GB, free: 4.977 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004442/0.8506, allocations: 397.4 kB / 1.248 GB, free: 4.539 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.8506, allocations: 7.922 kB / 1.248 GB, free: 4.531 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001787/0.8508, allocations: 35.92 kB / 1.248 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002835/0.8511, allocations: 98.44 kB / 1.249 GB, free: 4.391 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.807e-05/0.8511, allocations: 4 kB / 1.249 GB, free: 4.387 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00307/0.8542, allocations: 4.387 MB / 1.253 GB, free: 15.58 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.8542, allocations: 7.969 kB / 1.253 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007296/0.8549, allocations: 0.5506 MB / 1.253 GB, free: 15 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.8551, allocations: 125.1 kB / 1.253 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.676e-05/0.8551, allocations: 8 kB / 1.254 GB, free: 14.85 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001853/0.8553, allocations: 15.97 kB / 1.254 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.086e-05/0.8554, allocations: 15.84 kB / 1.254 GB, free: 14.82 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.8554, allocations: 12 kB / 1.254 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001907/0.8556, allocations: 211 kB / 1.254 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.174e-06/0.8556, allocations: 0 / 1.254 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004055/0.856, allocations: 103.9 kB / 1.254 GB, free: 14.5 MB / 0.9825 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.001022/0.857, allocations: 1.102 MB / 1.255 GB, free: 13.36 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0008475/0.8579, allocations: 0.6096 MB / 1.256 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.8579, allocations: 8.25 kB / 1.256 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0004753/0.8584, allocations: 474.2 kB / 1.256 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004524/0.8588, allocations: 76.34 kB / 1.256 GB, free: 12.13 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003813/0.8627, allocations: 3.368 MB / 1.259 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003777/0.8631, allocations: 0.8311 MB / 1.26 GB, free: 7.742 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001758/0.8632, allocations: 58.94 kB / 1.26 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001371/0.8634, allocations: 107.4 kB / 1.26 GB, free: 7.578 MB / 0.9825 GB Notification: Performance of SimCode: time 4.81e-07/0.8634, allocations: 0 / 1.26 GB, free: 7.578 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03149/0.8949, allocations: 7.793 MB / 1.268 GB, free: 15.95 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.421/10.32, allocations: 17.25 kB / 1.268 GB, free: 15.94 MB / 0.9981 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