Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss.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.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_ASHRAEHeatLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_ASHRAEHeatLoss",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.005985/0.005985, 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.001276/0.001276, allocations: 191.5 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.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.217/2.217, allocations: 390.3 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001565/0.001565, allocations: 63.91 kB / 0.9504 GB, free: 8.125 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7887/0.7903, allocations: 140.4 MB / 1.087 GB, free: 5.262 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss): time 0.003509/0.7938, allocations: 1.909 MB / 1.089 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.004195/0.798, allocations: 3.448 MB / 1.093 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001516/0.7982, allocations: 1.562 kB / 1.093 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003309/0.7986, allocations: 55 kB / 1.093 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005814/0.7992, allocations: 130.8 kB / 1.093 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 8.815e-05/0.7993, allocations: 24 kB / 1.093 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000245/0.7995, allocations: 165.8 kB / 1.093 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.7997, allocations: 27.88 kB / 1.093 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000192/0.7999, allocations: 93.66 kB / 1.093 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000163/0.8, allocations: 74.33 kB / 1.093 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.923e-05/0.8001, allocations: 12.97 kB / 1.093 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.559e-05/0.8002, allocations: 32.19 kB / 1.093 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.973e-05/0.8002, allocations: 34.94 kB / 1.093 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.344e-05/0.8003, allocations: 76.36 kB / 1.093 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002791/0.8006, allocations: 167.8 kB / 1.094 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.8006, allocations: 0 / 1.094 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.234e-06/0.8006, allocations: 0.5625 kB / 1.094 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.8007, allocations: 0 / 1.094 GB, free: 0.9766 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0008414/0.8015, allocations: 0.5083 MB / 1.094 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.8016, allocations: 9.531 kB / 1.094 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.661e-05/0.8016, allocations: 38.7 kB / 1.094 GB, free: 492 kB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.885e-05/0.8016, allocations: 22.09 kB / 1.094 GB, free: 480 kB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003024/0.802, allocations: 242.3 kB / 1.094 GB, free: 232 kB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.968e-06/0.802, allocations: 10.59 kB / 1.094 GB, free: 224 kB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.416e-05/0.802, allocations: 3.844 kB / 1.094 GB, free: 224 kB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003671/0.8024, allocations: 140.6 kB / 1.094 GB, free: 160 kB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.8024, allocations: 0 / 1.094 GB, free: 160 kB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.538e-05/0.8024, allocations: 1.188 kB / 1.094 GB, free: 160 kB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.072e-05/0.8025, allocations: 14.34 kB / 1.095 GB, free: 156 kB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004487/0.8029, allocations: 132.2 kB / 1.095 GB, free: 128 kB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007716/0.8037, allocations: 449.3 kB / 1.095 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004489/0.8042, allocations: 163.9 kB / 1.095 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002785/0.8044, allocations: 99.41 kB / 1.095 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 1.719e-05/0.8045, allocations: 1.469 kB / 1.095 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.28e-05/0.8045, allocations: 36.91 kB / 1.095 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=13): time 1.483e-06/0.8045, allocations: 0 / 1.095 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of matching and sorting (n=13): time 0.0008855/0.8054, allocations: 284.4 kB / 1.096 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.347e-05/0.8054, allocations: 53.83 kB / 1.096 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00021/0.8057, allocations: 210.6 kB / 1.096 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.118e-05/0.8057, allocations: 26.41 kB / 1.096 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 7.726e-05/0.8058, allocations: 124.2 kB / 1.096 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 5.117e-05/0.8058, allocations: 49.25 kB / 1.096 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.025e-05/0.8059, allocations: 32.36 kB / 1.096 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.806, allocations: 333.6 kB / 1.096 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002543/0.8063, allocations: 69.44 kB / 1.096 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002415/0.8065, allocations: 75.39 kB / 1.097 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004825/0.807, allocations: 161 kB / 1.097 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.807, allocations: 0 / 1.097 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005812/0.8076, allocations: 213.1 kB / 1.097 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.8076, allocations: 5.312 kB / 1.097 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.677e-06/0.8077, allocations: 3.984 kB / 1.097 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.8077, allocations: 1.828 kB / 1.097 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002561/0.8079, allocations: 33.22 kB / 1.097 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.808, allocations: 1.438 kB / 1.097 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001688/0.8081, allocations: 25.31 kB / 1.097 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.671e-05/0.8082, allocations: 7.891 kB / 1.097 GB, free: 14.62 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001063/0.8083, allocations: 128.4 kB / 1.097 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.222e-05/0.8083, allocations: 21.36 kB / 1.097 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.464e-05/0.8084, allocations: 25.98 kB / 1.097 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.8084, allocations: 5.234 kB / 1.097 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.8084, allocations: 0 / 1.097 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.8084, allocations: 1.703 kB / 1.097 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002978/0.8087, allocations: 261.3 kB / 1.097 GB, free: 14.24 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.8087, allocations: 2.016 kB / 1.097 GB, free: 14.24 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002286/0.809, allocations: 36.34 kB / 1.097 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.809, allocations: 5.25 kB / 1.097 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.528e-05/0.809, allocations: 2.672 kB / 1.097 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.809, allocations: 0.8125 kB / 1.097 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.809, allocations: 1.125 kB / 1.097 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006073/0.8096, allocations: 315 kB / 1.098 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001087/0.8097, allocations: 113.2 kB / 1.098 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.165e-05/0.8098, allocations: 1.438 kB / 1.098 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001962/0.81, allocations: 17 kB / 1.098 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.161e-05/0.81, allocations: 12.66 kB / 1.098 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.8101, allocations: 3.891 kB / 1.098 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000141/0.8102, allocations: 161.7 kB / 1.098 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.9e-07/0.8102, allocations: 0 / 1.098 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002842/0.8105, allocations: 30.88 kB / 1.098 GB, free: 13.82 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008813/0.8114, allocations: 0.8539 MB / 1.099 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005471/0.8119, allocations: 181.3 kB / 1.099 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.812, allocations: 1.125 kB / 1.099 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002606/0.8122, allocations: 84.33 kB / 1.099 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004133/0.8127, allocations: 25.67 kB / 1.099 GB, free: 13.02 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003179/0.8158, allocations: 2.253 MB / 1.101 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000265/0.8161, allocations: 0.7288 MB / 1.102 GB, free: 10.77 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001768/0.8163, allocations: 48.41 kB / 1.102 GB, free: 10.76 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.8164, allocations: 49.59 kB / 1.102 GB, free: 10.73 MB / 0.8731 GB Notification: Performance of SimCode: time 3.51e-07/0.8164, allocations: 0 / 1.102 GB, free: 10.73 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02084/0.8373, allocations: 3.762 MB / 1.106 GB, free: 10.22 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.327/8.165, allocations: 5.531 kB / 1.106 GB, free: 10.21 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 Buildings_9_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_ASHRAEHeatLoss.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_SolarCollectors_BaseClasses_Examples_ASHRAEHeatLoss.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches