Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.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.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",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.00189/0.00189, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.004269/0.004269, allocations: 189.4 kB / 16.25 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.771/2.771, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 5.326/5.326, allocations: 461.9 MB / 0.7343 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002069/0.002069, allocations: 70.39 kB / 0.8987 GB, free: 37.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4028/0.4049, allocations: 157.4 MB / 1.052 GB, free: 8.629 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002988/0.4079, allocations: 1.565 MB / 1.054 GB, free: 7.047 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006898/0.4086, allocations: 423.4 kB / 1.054 GB, free: 6.629 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.033e-05/0.4087, allocations: 0 / 1.054 GB, free: 6.629 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.669e-05/0.4087, allocations: 3.984 kB / 1.054 GB, free: 6.625 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.033e-05/0.4088, allocations: 11.88 kB / 1.054 GB, free: 6.613 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001751/0.409, allocations: 15.97 kB / 1.054 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.99e-05/0.4091, allocations: 51.8 kB / 1.054 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001234/0.4092, allocations: 11.98 kB / 1.054 GB, free: 6.535 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.756e-05/0.4093, allocations: 19.88 kB / 1.054 GB, free: 6.516 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.083e-05/0.4094, allocations: 27.91 kB / 1.054 GB, free: 6.488 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.666e-05/0.4094, allocations: 4 kB / 1.054 GB, free: 6.484 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.283e-05/0.4095, allocations: 4 kB / 1.054 GB, free: 6.48 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.843e-05/0.4095, allocations: 7.922 kB / 1.055 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.229e-05/0.4095, allocations: 35.8 kB / 1.055 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.223e-05/0.4096, allocations: 40.11 kB / 1.055 GB, free: 6.398 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.4096, allocations: 0 / 1.055 GB, free: 6.398 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.045e-06/0.4096, allocations: 4 kB / 1.055 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.258e-05/0.4097, allocations: 0 / 1.055 GB, free: 6.395 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005337/0.4102, allocations: 355.3 kB / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.44e-05/0.4103, allocations: 8.625 kB / 1.055 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.706e-05/0.4103, allocations: 34.75 kB / 1.055 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.873e-05/0.4104, allocations: 8.844 kB / 1.055 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.4105, allocations: 184.2 kB / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.4105, allocations: 384 / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.175e-05/0.4105, allocations: 4.375 kB / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001739/0.4107, allocations: 65.72 kB / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.4107, allocations: 0 / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.4108, allocations: 0 / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.4108, allocations: 0 / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001255/0.4109, allocations: 35.97 kB / 1.055 GB, free: 5.613 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004118/0.4113, allocations: 276.8 kB / 1.056 GB, free: 5.293 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001254/0.4114, allocations: 42.5 kB / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.53e-05/0.4115, allocations: 24.94 kB / 1.056 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.514e-05/0.4116, allocations: 0 / 1.056 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.065e-05/0.4116, allocations: 34.56 kB / 1.056 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.4116, allocations: 4 kB / 1.056 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003182/0.4119, allocations: 81.66 kB / 1.056 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.569e-05/0.412, allocations: 51.41 kB / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.326e-05/0.4121, allocations: 121.8 kB / 1.056 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.4121, allocations: 25.7 kB / 1.056 GB, free: 4.859 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.211e-05/0.4121, allocations: 99.98 kB / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.001e-05/0.4122, allocations: 3.906 kB / 1.056 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.713e-05/0.4122, allocations: 21.7 kB / 1.056 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001153/0.4123, allocations: 314.8 kB / 1.056 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.692e-05/0.4124, allocations: 19.98 kB / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.645e-05/0.4125, allocations: 15.98 kB / 1.056 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001204/0.4126, allocations: 49.09 kB / 1.056 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4126, allocations: 0 / 1.056 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001567/0.4128, allocations: 77.56 kB / 1.056 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.4128, allocations: 5.25 kB / 1.056 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.4128, allocations: 0 / 1.056 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.4128, allocations: 0 / 1.056 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001011/0.4129, allocations: 11.94 kB / 1.056 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.4129, allocations: 0 / 1.056 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.518e-05/0.413, allocations: 11.92 kB / 1.056 GB, free: 4.215 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.088e-06/0.413, allocations: 7.938 kB / 1.056 GB, free: 4.207 MB / 0.8106 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 (3): * Single equations (assignments): 3 * 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 8.296e-05/0.4131, allocations: 119.3 kB / 1.057 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.338e-05/0.4131, allocations: 0 / 1.057 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.048e-05/0.4132, allocations: 11.89 kB / 1.057 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.4132, allocations: 0 / 1.057 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.4132, allocations: 0 / 1.057 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.4132, allocations: 0 / 1.057 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001784/0.4134, allocations: 169.6 kB / 1.057 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.4134, allocations: 0 / 1.057 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.983e-05/0.4134, allocations: 15.98 kB / 1.057 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.4135, allocations: 0 / 1.057 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.4135, allocations: 4 kB / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.4135, allocations: 8 kB / 1.057 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.4135, allocations: 0 / 1.057 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002152/0.4137, allocations: 171.3 kB / 1.057 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.667e-05/0.4138, allocations: 88.95 kB / 1.057 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.529e-05/0.4138, allocations: 4 kB / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.329e-05/0.4139, allocations: 7.984 kB / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.234e-05/0.4139, allocations: 0 / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-06/0.4139, allocations: 0 / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.061e-05/0.414, allocations: 99.27 kB / 1.057 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.414, allocations: 0 / 1.057 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002156/0.4142, allocations: 4 kB / 1.057 GB, free: 3.422 MB / 0.8106 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 (3): * Single equations (assignments): 3 * 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.000561/0.4148, allocations: 0.7046 MB / 1.058 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002006/0.415, allocations: 39.91 kB / 1.058 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.415, allocations: 0 / 1.058 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 7.059e-05/0.4151, allocations: 19.98 kB / 1.058 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002392/0.4153, allocations: 11.98 kB / 1.058 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005765/0.4159, allocations: 201.9 kB / 1.058 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/0.4162, allocations: 0.6846 MB / 1.059 GB, free: 1.672 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.99e-05/0.4163, allocations: 4.328 kB / 1.059 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.568e-05/0.4164, allocations: 19.36 kB / 1.059 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of SimCode: time 2.51e-07/0.4164, allocations: 0 / 1.059 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.344/5.76, allocations: 1.37 MB / 1.06 GB, free: 460 kB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003039/5.76, allocations: 232.6 kB / 1.06 GB, free: 200 kB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.74/20.5, allocations: 2.672 kB / 1.06 GB, free: 200 kB / 0.8106 GB (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches