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.00695/0.00695, allocations: 101.6 kB / 15.73 MB, free: 5.539 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.001533/0.001533, allocations: 193.1 kB / 16.67 MB, free: 5.469 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.435/1.435, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.565/2.565, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 67.89 kB / 1.054 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.949/0.9503, allocations: 157.4 MB / 1.207 GB, free: 13.5 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002673/0.953, allocations: 1.503 MB / 1.209 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0007015/0.9538, allocations: 419 kB / 1.209 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.17e-05/0.9538, allocations: 0 / 1.209 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.953e-05/0.9539, allocations: 3.938 kB / 1.209 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.918e-05/0.954, allocations: 11.88 kB / 1.209 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001672/0.9541, allocations: 19.95 kB / 1.209 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 8.231e-05/0.9542, allocations: 51.73 kB / 1.209 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001055/0.9543, allocations: 15.98 kB / 1.209 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.306e-05/0.9544, allocations: 19.94 kB / 1.209 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.906e-05/0.9545, allocations: 23.91 kB / 1.209 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.733e-05/0.9545, allocations: 4 kB / 1.209 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.109e-05/0.9546, allocations: 4 kB / 1.209 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.145e-05/0.9546, allocations: 11.92 kB / 1.209 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.025e-05/0.9546, allocations: 15.92 kB / 1.209 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001044/0.9548, allocations: 50.02 kB / 1.209 GB, free: 11.35 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.9548, allocations: 0 / 1.209 GB, free: 11.35 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.493e-06/0.9548, allocations: 0 / 1.209 GB, free: 11.35 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.739e-06/0.9548, allocations: 0 / 1.209 GB, free: 11.35 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005164/0.9553, allocations: 367.3 kB / 1.21 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.9554, allocations: 8.031 kB / 1.21 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.053e-05/0.9554, allocations: 30.75 kB / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.95e-05/0.9554, allocations: 12.78 kB / 1.21 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001224/0.9556, allocations: 172.2 kB / 1.21 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.9556, allocations: 384 / 1.21 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.579e-05/0.9556, allocations: 12.36 kB / 1.21 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001685/0.9558, allocations: 61.78 kB / 1.21 GB, free: 10.6 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.9558, allocations: 0 / 1.21 GB, free: 10.6 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.578e-06/0.9558, allocations: 3.938 kB / 1.21 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.9558, allocations: 0 / 1.21 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001252/0.9559, allocations: 39.91 kB / 1.21 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003838/0.9563, allocations: 272.9 kB / 1.21 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000121/0.9565, allocations: 46.56 kB / 1.21 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.518e-05/0.9565, allocations: 24.94 kB / 1.21 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.754e-05/0.9566, allocations: 0 / 1.21 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/0.9566, allocations: 38.5 kB / 1.21 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 9.12e-07/0.9566, allocations: 0 / 1.21 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0003064/0.9569, allocations: 85.56 kB / 1.21 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.512e-05/0.957, allocations: 55.41 kB / 1.211 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001123/0.9571, allocations: 121.8 kB / 1.211 GB, free: 9.824 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.546e-05/0.9571, allocations: 25.7 kB / 1.211 GB, free: 9.793 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.812e-05/0.9572, allocations: 84.14 kB / 1.211 GB, free: 9.707 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.263e-05/0.9572, allocations: 15.84 kB / 1.211 GB, free: 9.691 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.707e-05/0.9572, allocations: 17.7 kB / 1.211 GB, free: 9.668 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.9574, allocations: 318.8 kB / 1.211 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.483e-05/0.9574, allocations: 19.98 kB / 1.211 GB, free: 9.328 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.387e-05/0.9575, allocations: 15.98 kB / 1.211 GB, free: 9.312 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001165/0.9576, allocations: 44.77 kB / 1.211 GB, free: 9.266 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.9576, allocations: 0 / 1.211 GB, free: 9.266 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001651/0.9578, allocations: 73.56 kB / 1.211 GB, free: 9.188 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.9578, allocations: 8 kB / 1.211 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.9578, allocations: 0 / 1.211 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.9578, allocations: 4 kB / 1.211 GB, free: 9.176 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001/0.9579, allocations: 8 kB / 1.211 GB, free: 9.168 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.958, allocations: 3.984 kB / 1.211 GB, free: 9.164 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.225e-05/0.958, allocations: 4 kB / 1.211 GB, free: 9.16 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.149e-05/0.958, allocations: 4 kB / 1.211 GB, free: 9.156 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 (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 7.39e-05/0.9581, allocations: 113.8 kB / 1.211 GB, free: 9.035 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.704e-05/0.9581, allocations: 11.84 kB / 1.211 GB, free: 9.023 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.328e-05/0.9582, allocations: 15.89 kB / 1.211 GB, free: 8.996 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.9582, allocations: 4 kB / 1.211 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.9582, allocations: 3.938 kB / 1.211 GB, free: 8.988 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.9582, allocations: 0 / 1.211 GB, free: 8.988 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001703/0.9584, allocations: 169.6 kB / 1.212 GB, free: 8.773 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.9584, allocations: 3.938 kB / 1.212 GB, free: 8.77 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.2e-05/0.9585, allocations: 11.98 kB / 1.212 GB, free: 8.758 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.9585, allocations: 336 / 1.212 GB, free: 8.758 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.795e-06/0.9585, allocations: 0 / 1.212 GB, free: 8.758 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.9585, allocations: 0 / 1.212 GB, free: 8.758 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.9585, allocations: 0 / 1.212 GB, free: 8.758 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002206/0.9587, allocations: 175.4 kB / 1.212 GB, free: 8.57 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.615e-05/0.9588, allocations: 85.02 kB / 1.212 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.679e-05/0.9588, allocations: 4 kB / 1.212 GB, free: 8.465 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.288e-05/0.9589, allocations: 7.984 kB / 1.212 GB, free: 8.457 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.68e-05/0.9589, allocations: 0 / 1.212 GB, free: 8.457 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-06/0.9589, allocations: 3.938 kB / 1.212 GB, free: 8.453 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.033e-05/0.959, allocations: 99.64 kB / 1.212 GB, free: 8.355 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.959, allocations: 4 kB / 1.212 GB, free: 8.352 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002337/0.9593, allocations: 4 kB / 1.212 GB, free: 8.348 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 (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.0005263/0.9598, allocations: 0.7045 MB / 1.213 GB, free: 7.617 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001858/0.96, allocations: 47.91 kB / 1.213 GB, free: 7.57 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.96, allocations: 0 / 1.213 GB, free: 7.57 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 6.707e-05/0.9601, allocations: 27.97 kB / 1.213 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002215/0.9603, allocations: 0 / 1.213 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005362/0.9608, allocations: 192 kB / 1.213 GB, free: 7.316 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000243/0.9611, allocations: 0.6846 MB / 1.214 GB, free: 6.605 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.737e-05/0.9611, allocations: 7.938 kB / 1.214 GB, free: 6.598 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.786e-05/0.9612, allocations: 23.38 kB / 1.214 GB, free: 6.574 MB / 0.9356 GB Notification: Performance of SimCode: time 3.5e-07/0.9612, allocations: 0 / 1.214 GB, free: 6.574 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02009/0.9813, allocations: 1.532 MB / 1.215 GB, free: 5.191 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.804/8.785, allocations: 1.5 kB / 1.215 GB, free: 5.191 MB / 0.9356 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