Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_11_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_11_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.001634/0.001634, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001694/0.001694, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.293/1.293, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.585/2.585, allocations: 469.8 MB / 0.7424 GB, free: 7.484 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 68.31 kB / 0.9087 GB, free: 34.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3177/0.3196, allocations: 159.2 MB / 1.064 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002655/0.3223, allocations: 1.515 MB / 1.066 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0005966/0.3229, allocations: 408.9 kB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.711e-05/0.3229, allocations: 0 / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.905e-05/0.3229, allocations: 3.938 kB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.233e-05/0.323, allocations: 15.86 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 8.723e-05/0.3231, allocations: 11.98 kB / 1.066 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.568e-05/0.3232, allocations: 59.72 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 7.866e-05/0.3232, allocations: 8 kB / 1.066 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.073e-05/0.3233, allocations: 23.91 kB / 1.066 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.672e-05/0.3234, allocations: 19.92 kB / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.474e-05/0.3234, allocations: 4 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.204e-05/0.3234, allocations: 4 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.835e-05/0.3235, allocations: 11.92 kB / 1.066 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.68e-05/0.3235, allocations: 27.88 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 8.721e-05/0.3236, allocations: 48.08 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.3236, allocations: 4 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of FrontEnd: time 4.499e-06/0.3236, allocations: 0 / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.3236, allocations: 3.938 kB / 1.066 GB, free: 12.05 MB / 0.8262 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.0004965/0.3241, allocations: 355.3 kB / 1.067 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.3242, allocations: 8.031 kB / 1.067 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.01e-05/0.3242, allocations: 42.73 kB / 1.067 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.527e-05/0.3242, allocations: 4.844 kB / 1.067 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.3244, allocations: 176.2 kB / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.369e-05/0.3244, allocations: 384 / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.229e-05/0.3244, allocations: 8.312 kB / 1.067 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001649/0.3246, allocations: 61.8 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.393e-06/0.3246, allocations: 0 / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.106e-06/0.3246, allocations: 0 / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.3246, allocations: 4 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001251/0.3248, allocations: 39.91 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000364/0.3251, allocations: 268.9 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001218/0.3253, allocations: 42.56 kB / 1.067 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.176e-05/0.3253, allocations: 20.94 kB / 1.067 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.348e-05/0.3254, allocations: 0 / 1.067 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.312e-05/0.3254, allocations: 38.56 kB / 1.067 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 2.605e-06/0.3254, allocations: 0 / 1.067 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0002985/0.3257, allocations: 93.67 kB / 1.067 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.625e-05/0.3258, allocations: 55.34 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/0.3259, allocations: 117.8 kB / 1.067 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.595e-05/0.3259, allocations: 25.7 kB / 1.068 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.324e-05/0.3259, allocations: 96.12 kB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.935e-05/0.326, allocations: 7.891 kB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.367e-05/0.326, allocations: 17.72 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000137/0.3262, allocations: 318.8 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.865e-05/0.3262, allocations: 19.98 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.699e-05/0.3263, allocations: 19.97 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001292/0.3264, allocations: 48.77 kB / 1.068 GB, free: 9.969 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.3264, allocations: 0 / 1.068 GB, free: 9.969 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001739/0.3266, allocations: 73.58 kB / 1.068 GB, free: 9.891 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.3266, allocations: 4 kB / 1.068 GB, free: 9.887 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/0.3266, allocations: 0 / 1.068 GB, free: 9.887 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.3267, allocations: 0 / 1.068 GB, free: 9.887 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.367e-05/0.3268, allocations: 11.98 kB / 1.068 GB, free: 9.875 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.3268, allocations: 0 / 1.068 GB, free: 9.875 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.075e-05/0.3268, allocations: 8 kB / 1.068 GB, free: 9.867 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.897e-06/0.3268, allocations: 3.984 kB / 1.068 GB, free: 9.863 MB / 0.8262 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.334e-05/0.3269, allocations: 117.8 kB / 1.068 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.304e-05/0.3269, allocations: 3.938 kB / 1.068 GB, free: 9.734 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.211e-05/0.327, allocations: 7.906 kB / 1.068 GB, free: 9.723 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.327, allocations: 0 / 1.068 GB, free: 9.723 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.327, allocations: 0 / 1.068 GB, free: 9.723 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.327, allocations: 3.938 kB / 1.068 GB, free: 9.719 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001862/0.3272, allocations: 177.5 kB / 1.068 GB, free: 9.496 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.3272, allocations: 4 kB / 1.068 GB, free: 9.492 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.393e-05/0.3273, allocations: 8 kB / 1.068 GB, free: 9.484 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.3273, allocations: 0 / 1.068 GB, free: 9.484 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.311e-05/0.3273, allocations: 11.98 kB / 1.068 GB, free: 9.473 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3273, allocations: 0 / 1.068 GB, free: 9.473 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3273, allocations: 0 / 1.068 GB, free: 9.473 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002143/0.3275, allocations: 159.5 kB / 1.069 GB, free: 9.301 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.831e-05/0.3276, allocations: 96.94 kB / 1.069 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.3276, allocations: 4 kB / 1.069 GB, free: 9.184 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.742e-05/0.3277, allocations: 4 kB / 1.069 GB, free: 9.18 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.767e-05/0.3277, allocations: 3.984 kB / 1.069 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.3277, allocations: 0 / 1.069 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.452e-05/0.3278, allocations: 99.27 kB / 1.069 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.014e-06/0.3278, allocations: 0 / 1.069 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002059/0.328, allocations: 11.94 kB / 1.069 GB, free: 9.066 MB / 0.8262 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.0005493/0.3286, allocations: 0.7051 MB / 1.069 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001743/0.3288, allocations: 35.97 kB / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.3288, allocations: 0 / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.928e-05/0.3288, allocations: 27.92 kB / 1.07 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001969/0.329, allocations: 6.594 kB / 1.07 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004651/0.3295, allocations: 182 kB / 1.07 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002964/0.3298, allocations: 0.6846 MB / 1.07 GB, free: 7.34 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.284e-05/0.3299, allocations: 11.98 kB / 1.07 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.817e-05/0.3299, allocations: 15.42 kB / 1.07 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of SimCode: time 1.874e-06/0.3299, allocations: 0 / 1.07 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.101/1.431, allocations: 1.479 MB / 1.072 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/12.39, allocations: 10.75 kB / 1.072 GB, free: 5.949 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc_fmu --startTime=0 --stopTime=100 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches