Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_ASHRAEHeatLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss,fileNamePrefix="Buildings_latest_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.009525/0.009525, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.002124/0.002124, allocations: 196.6 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.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.505/2.505, allocations: 461.9 MB / 0.7348 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 68.12 kB / 1.054 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8674/0.8688, allocations: 157.4 MB / 1.207 GB, free: 13.56 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss): time 0.003413/0.8722, allocations: 1.914 MB / 1.209 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.004591/0.8769, allocations: 3.445 MB / 1.212 GB, free: 8.176 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001527/0.877, allocations: 4 kB / 1.212 GB, free: 8.172 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0003112/0.8774, allocations: 47.69 kB / 1.213 GB, free: 8.125 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.000613/0.878, allocations: 135.2 kB / 1.213 GB, free: 7.992 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001106/0.8781, allocations: 23.97 kB / 1.213 GB, free: 7.969 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002952/0.8784, allocations: 167.2 kB / 1.213 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001261/0.8786, allocations: 33.67 kB / 1.213 GB, free: 7.77 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002353/0.8788, allocations: 87.62 kB / 1.213 GB, free: 7.684 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001813/0.879, allocations: 75.62 kB / 1.213 GB, free: 7.609 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.106e-05/0.8791, allocations: 12 kB / 1.213 GB, free: 7.598 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.989e-05/0.8792, allocations: 35.91 kB / 1.213 GB, free: 7.562 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 6.927e-05/0.8792, allocations: 31.84 kB / 1.213 GB, free: 7.531 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 8.737e-05/0.8793, allocations: 75.55 kB / 1.213 GB, free: 7.457 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002433/0.8796, allocations: 167.3 kB / 1.213 GB, free: 7.293 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.8796, allocations: 0 / 1.213 GB, free: 7.293 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.024e-06/0.8796, allocations: 0 / 1.213 GB, free: 7.293 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.273e-06/0.8796, allocations: 0 / 1.213 GB, free: 7.293 MB / 0.9356 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.0008911/0.8805, allocations: 0.5022 MB / 1.214 GB, free: 6.742 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.8806, allocations: 8.031 kB / 1.214 GB, free: 6.734 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.999e-05/0.8806, allocations: 46.72 kB / 1.214 GB, free: 6.68 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.672e-05/0.8807, allocations: 20.66 kB / 1.214 GB, free: 6.66 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003577/0.881, allocations: 230.9 kB / 1.214 GB, free: 6.398 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.8811, allocations: 12.3 kB / 1.214 GB, free: 6.387 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.394e-05/0.8811, allocations: 8.375 kB / 1.214 GB, free: 6.379 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003378/0.8814, allocations: 137.5 kB / 1.214 GB, free: 6.238 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.8815, allocations: 0 / 1.214 GB, free: 6.238 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.68e-05/0.8815, allocations: 4 kB / 1.214 GB, free: 6.234 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.907e-05/0.8815, allocations: 15.97 kB / 1.214 GB, free: 6.219 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003924/0.8819, allocations: 135.9 kB / 1.214 GB, free: 6.086 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006815/0.8826, allocations: 440.4 kB / 1.215 GB, free: 5.605 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003807/0.883, allocations: 166.4 kB / 1.215 GB, free: 5.434 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002309/0.8832, allocations: 100.8 kB / 1.215 GB, free: 5.332 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/0.8833, allocations: 8 kB / 1.215 GB, free: 5.324 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.93e-05/0.8833, allocations: 30.56 kB / 1.215 GB, free: 5.285 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=13): time 1.132e-06/0.8833, allocations: 0 / 1.215 GB, free: 5.285 MB / 0.9356 GB Notification: Performance of matching and sorting (n=13): time 0.0008402/0.8841, allocations: 281.6 kB / 1.215 GB, free: 5.004 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.703e-05/0.8842, allocations: 63.41 kB / 1.215 GB, free: 4.93 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001928/0.8844, allocations: 205 kB / 1.216 GB, free: 4.719 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.8844, allocations: 33.7 kB / 1.216 GB, free: 4.68 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.025e-05/0.8845, allocations: 116.1 kB / 1.216 GB, free: 4.562 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.784e-05/0.8846, allocations: 43.34 kB / 1.216 GB, free: 4.52 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.972e-05/0.8846, allocations: 33.7 kB / 1.216 GB, free: 4.48 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.8848, allocations: 334.8 kB / 1.216 GB, free: 4.145 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002077/0.885, allocations: 67.94 kB / 1.216 GB, free: 4.078 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001911/0.8852, allocations: 74.81 kB / 1.216 GB, free: 4.008 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003932/0.8856, allocations: 152.7 kB / 1.216 GB, free: 3.855 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.8856, allocations: 4 kB / 1.216 GB, free: 3.852 MB / 0.9356 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004764/0.8861, allocations: 209.3 kB / 1.217 GB, free: 3.641 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.852e-05/0.8861, allocations: 4 kB / 1.217 GB, free: 3.637 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.8861, allocations: 0 / 1.217 GB, free: 3.637 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.8862, allocations: 0 / 1.217 GB, free: 3.637 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002532/0.8864, allocations: 35.95 kB / 1.217 GB, free: 3.602 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.8864, allocations: 4 kB / 1.217 GB, free: 3.598 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001543/0.8866, allocations: 27.83 kB / 1.217 GB, free: 3.57 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.628e-05/0.8866, allocations: 7.938 kB / 1.217 GB, free: 3.562 MB / 0.9356 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.0001348/0.8868, allocations: 129.8 kB / 1.217 GB, free: 3.426 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.82e-05/0.8868, allocations: 15.81 kB / 1.217 GB, free: 3.41 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.786e-05/0.8869, allocations: 25.83 kB / 1.217 GB, free: 3.387 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-06/0.8869, allocations: 4 kB / 1.217 GB, free: 3.383 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.8869, allocations: 7.938 kB / 1.217 GB, free: 3.375 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.8869, allocations: 4 kB / 1.217 GB, free: 3.371 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000295/0.8872, allocations: 257.4 kB / 1.217 GB, free: 3.07 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.8872, allocations: 0 / 1.217 GB, free: 3.07 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002274/0.8875, allocations: 35.97 kB / 1.217 GB, free: 3.035 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.107e-06/0.8875, allocations: 0 / 1.217 GB, free: 3.035 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.702e-05/0.8875, allocations: 7.984 kB / 1.217 GB, free: 3.027 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.8875, allocations: 3.938 kB / 1.217 GB, free: 3.023 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.8875, allocations: 0 / 1.217 GB, free: 3.023 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005777/0.8881, allocations: 314.6 kB / 1.218 GB, free: 2.703 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 9.753e-05/0.8882, allocations: 112.8 kB / 1.218 GB, free: 2.574 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.027e-05/0.8883, allocations: 0 / 1.218 GB, free: 2.574 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001795/0.8884, allocations: 19.97 kB / 1.218 GB, free: 2.555 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.764e-05/0.8885, allocations: 11.98 kB / 1.218 GB, free: 2.543 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.389e-05/0.8885, allocations: 8 kB / 1.218 GB, free: 2.535 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001215/0.8887, allocations: 156.4 kB / 1.218 GB, free: 2.383 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8887, allocations: 0 / 1.218 GB, free: 2.383 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002802/0.8889, allocations: 40 kB / 1.218 GB, free: 2.344 MB / 0.9356 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.0008305/0.8898, allocations: 0.841 MB / 1.219 GB, free: 1.477 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004591/0.8903, allocations: 167.9 kB / 1.219 GB, free: 1.312 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.8903, allocations: 0 / 1.219 GB, free: 1.312 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002255/0.8905, allocations: 91.86 kB / 1.219 GB, free: 1.223 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004502/0.891, allocations: 32.64 kB / 1.219 GB, free: 1.191 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00318/0.8942, allocations: 2.237 MB / 1.221 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/0.8945, allocations: 0.7275 MB / 1.222 GB, free: 14.13 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.000154/0.8946, allocations: 48.59 kB / 1.222 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.8948, allocations: 55.5 kB / 1.222 GB, free: 14.03 MB / 0.9512 GB Notification: Performance of SimCode: time 8.01e-07/0.8948, allocations: 3.938 kB / 1.222 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02437/0.9192, allocations: 3.825 MB / 1.226 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.75/8.67, allocations: 8.734 kB / 1.226 GB, free: 10.36 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_ASHRAEHeatLoss_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_ASHRAEHeatLoss.fmu > Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_SolarCollectors_BaseClasses_Examples_ASHRAEHeatLoss.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches