Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.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.EN12975HeatLoss,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975HeatLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975HeatLoss",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.006425/0.006425, 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.001321/0.001321, allocations: 201.9 kB / 16.68 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.405/1.405, 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.66/2.66, allocations: 461.9 MB / 0.7348 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 64.11 kB / 1.054 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8994/0.9009, allocations: 157.4 MB / 1.207 GB, free: 13.51 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss): time 0.003689/0.9047, allocations: 1.914 MB / 1.209 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.004457/0.9091, allocations: 3.457 MB / 1.213 GB, free: 8.113 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001427/0.9093, allocations: 0 / 1.213 GB, free: 8.113 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.000271/0.9096, allocations: 43.69 kB / 1.213 GB, free: 8.07 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0005705/0.9102, allocations: 139.2 kB / 1.213 GB, free: 7.934 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000105/0.9103, allocations: 31.94 kB / 1.213 GB, free: 7.902 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002804/0.9106, allocations: 171.2 kB / 1.213 GB, free: 7.734 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.9107, allocations: 29.69 kB / 1.213 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002093/0.911, allocations: 83.69 kB / 1.213 GB, free: 7.621 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001852/0.9112, allocations: 95.53 kB / 1.213 GB, free: 7.527 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.223e-05/0.9112, allocations: 8 kB / 1.213 GB, free: 7.52 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.877e-05/0.9113, allocations: 27.98 kB / 1.213 GB, free: 7.492 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 7.266e-05/0.9114, allocations: 39.78 kB / 1.213 GB, free: 7.453 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 8.992e-05/0.9115, allocations: 79.53 kB / 1.213 GB, free: 7.375 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002414/0.9117, allocations: 163.4 kB / 1.213 GB, free: 7.215 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.9117, allocations: 3.984 kB / 1.213 GB, free: 7.211 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.623e-06/0.9118, allocations: 0 / 1.213 GB, free: 7.211 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.045e-06/0.9118, allocations: 0 / 1.213 GB, free: 7.211 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.0009423/0.9127, allocations: 0.5139 MB / 1.214 GB, free: 6.648 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.9128, allocations: 8.031 kB / 1.214 GB, free: 6.641 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.636e-05/0.9128, allocations: 38.73 kB / 1.214 GB, free: 6.594 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.444e-05/0.9129, allocations: 16.75 kB / 1.214 GB, free: 6.578 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004186/0.9133, allocations: 254.8 kB / 1.214 GB, free: 6.293 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.9133, allocations: 4.375 kB / 1.214 GB, free: 6.289 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.992e-05/0.9134, allocations: 4.375 kB / 1.214 GB, free: 6.285 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003741/0.9137, allocations: 151.7 kB / 1.214 GB, free: 6.133 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.507e-06/0.9138, allocations: 0 / 1.214 GB, free: 6.133 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.64e-05/0.9138, allocations: 0 / 1.214 GB, free: 6.133 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.942e-05/0.9138, allocations: 11.94 kB / 1.214 GB, free: 6.121 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000439/0.9143, allocations: 147.9 kB / 1.214 GB, free: 5.977 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007648/0.915, allocations: 448.4 kB / 1.215 GB, free: 5.488 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004054/0.9155, allocations: 174.4 kB / 1.215 GB, free: 5.309 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000256/0.9157, allocations: 108.8 kB / 1.215 GB, free: 5.199 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.191e-05/0.9157, allocations: 3.984 kB / 1.215 GB, free: 5.195 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.641e-05/0.9158, allocations: 30.56 kB / 1.215 GB, free: 5.156 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=13): time 1.372e-06/0.9158, allocations: 4 kB / 1.215 GB, free: 5.152 MB / 0.9356 GB Notification: Performance of matching and sorting (n=13): time 0.0008133/0.9166, allocations: 289.7 kB / 1.216 GB, free: 4.863 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.545e-05/0.9167, allocations: 51.41 kB / 1.216 GB, free: 4.801 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002153/0.9169, allocations: 221 kB / 1.216 GB, free: 4.574 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.144e-05/0.9169, allocations: 25.7 kB / 1.216 GB, free: 4.543 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.68e-05/0.917, allocations: 124 kB / 1.216 GB, free: 4.418 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.256e-05/0.9171, allocations: 43.39 kB / 1.216 GB, free: 4.375 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.587e-05/0.9171, allocations: 29.7 kB / 1.216 GB, free: 4.34 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.9173, allocations: 338.7 kB / 1.216 GB, free: 4 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002196/0.9175, allocations: 75.94 kB / 1.216 GB, free: 3.926 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002081/0.9177, allocations: 74.81 kB / 1.216 GB, free: 3.855 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004275/0.9182, allocations: 164.7 kB / 1.217 GB, free: 3.691 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.9182, allocations: 4 kB / 1.217 GB, free: 3.688 MB / 0.9356 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005086/0.9187, allocations: 217.3 kB / 1.217 GB, free: 3.469 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.9187, allocations: 4 kB / 1.217 GB, free: 3.465 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.9187, allocations: 7.938 kB / 1.217 GB, free: 3.457 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.9187, allocations: 0 / 1.217 GB, free: 3.457 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002707/0.919, allocations: 39.91 kB / 1.217 GB, free: 3.418 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.919, allocations: 0 / 1.217 GB, free: 3.418 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001702/0.9192, allocations: 15.97 kB / 1.217 GB, free: 3.402 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.969e-05/0.9192, allocations: 11.94 kB / 1.217 GB, free: 3.391 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.0001079/0.9193, allocations: 125.8 kB / 1.217 GB, free: 3.258 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.653e-05/0.9194, allocations: 19.72 kB / 1.217 GB, free: 3.238 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.544e-05/0.9195, allocations: 21.84 kB / 1.217 GB, free: 3.219 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.9195, allocations: 7.984 kB / 1.217 GB, free: 3.211 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.9195, allocations: 11.94 kB / 1.217 GB, free: 3.199 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.9195, allocations: 3.984 kB / 1.217 GB, free: 3.195 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003164/0.9198, allocations: 269.4 kB / 1.217 GB, free: 2.883 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.9198, allocations: 0 / 1.217 GB, free: 2.883 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002379/0.9201, allocations: 35.91 kB / 1.217 GB, free: 2.848 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.9201, allocations: 0 / 1.217 GB, free: 2.848 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.936e-05/0.9201, allocations: 7.984 kB / 1.217 GB, free: 2.84 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.9201, allocations: 0 / 1.217 GB, free: 2.84 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.9201, allocations: 0 / 1.217 GB, free: 2.84 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005995/0.9207, allocations: 322.5 kB / 1.218 GB, free: 2.512 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001208/0.9209, allocations: 104.9 kB / 1.218 GB, free: 2.391 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.499e-05/0.9209, allocations: 8 kB / 1.218 GB, free: 2.383 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001962/0.9211, allocations: 15.98 kB / 1.218 GB, free: 2.367 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.752e-05/0.9212, allocations: 7.984 kB / 1.218 GB, free: 2.359 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.66e-05/0.9212, allocations: 11.98 kB / 1.218 GB, free: 2.348 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001505/0.9213, allocations: 156.4 kB / 1.218 GB, free: 2.195 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.61e-07/0.9214, allocations: 3.938 kB / 1.218 GB, free: 2.191 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002872/0.9216, allocations: 40 kB / 1.218 GB, free: 2.152 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.0009527/0.9226, allocations: 0.8488 MB / 1.219 GB, free: 1.277 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005233/0.9231, allocations: 179.8 kB / 1.219 GB, free: 1.102 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.9232, allocations: 0 / 1.219 GB, free: 1.102 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002477/0.9234, allocations: 95.86 kB / 1.219 GB, free: 1.008 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004605/0.9239, allocations: 32.39 kB / 1.219 GB, free: 0.9766 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003501/0.9274, allocations: 2.314 MB / 1.221 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/0.9277, allocations: 0.7275 MB / 1.222 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001641/0.9279, allocations: 44.59 kB / 1.222 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/0.928, allocations: 51.42 kB / 1.222 GB, free: 13.74 MB / 0.9512 GB Notification: Performance of SimCode: time 1.062e-06/0.928, allocations: 0 / 1.222 GB, free: 13.74 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02261/0.9506, allocations: 3.991 MB / 1.226 GB, free: 9.914 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.585/8.535, allocations: 11.44 kB / 1.226 GB, free: 9.906 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975HeatLoss_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975HeatLoss.fmu > Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975HeatLoss.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches