Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_9_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.001241/0.001241, allocations: 108 kB / 15.61 MB, free: 152 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.001259/0.001259, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.372/1.372, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.286/2.286, allocations: 390.2 MB / 0.6647 GB, free: 432 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 63.89 kB / 0.8127 GB, free: 14.33 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6256/0.6271, allocations: 140.4 MB / 0.9497 GB, free: 9.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002661/0.6298, allocations: 1.501 MB / 0.9512 GB, free: 7.902 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000595/0.6305, allocations: 412.8 kB / 0.9516 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.807e-05/0.6305, allocations: 0 / 0.9516 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.633e-05/0.6306, allocations: 5.094 kB / 0.9516 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.344e-05/0.6306, allocations: 9.125 kB / 0.9516 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001833/0.6308, allocations: 22.7 kB / 0.9516 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.095e-05/0.6309, allocations: 52.39 kB / 0.9517 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001112/0.631, allocations: 13.17 kB / 0.9517 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.555e-05/0.6311, allocations: 26.08 kB / 0.9517 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.499e-05/0.6312, allocations: 27.03 kB / 0.9517 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.812e-05/0.6312, allocations: 4.031 kB / 0.9517 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.314e-05/0.6312, allocations: 2.812 kB / 0.9517 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.925e-05/0.6313, allocations: 9.891 kB / 0.9518 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.423e-05/0.6313, allocations: 26.3 kB / 0.9518 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.255e-05/0.6314, allocations: 43.42 kB / 0.9518 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.6314, allocations: 1.062 kB / 0.9518 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.823e-06/0.6314, allocations: 0 / 0.9518 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.66e-06/0.6314, allocations: 0 / 0.9518 GB, free: 7.418 MB / 0.7169 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.0004195/0.6318, allocations: 360.2 kB / 0.9522 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.6319, allocations: 9.344 kB / 0.9522 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.566e-05/0.6319, allocations: 39.98 kB / 0.9522 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.004e-05/0.6319, allocations: 7.438 kB / 0.9522 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.847e-05/0.632, allocations: 179.8 kB / 0.9524 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.186e-06/0.632, allocations: 5.469 kB / 0.9524 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.278e-05/0.6321, allocations: 2.656 kB / 0.9524 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001589/0.6322, allocations: 59.39 kB / 0.9525 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.6322, allocations: 0 / 0.9525 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.738e-06/0.6323, allocations: 0 / 0.9525 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.6323, allocations: 2.156 kB / 0.9525 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001231/0.6324, allocations: 31.28 kB / 0.9525 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003055/0.6327, allocations: 281.3 kB / 0.9528 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001125/0.6328, allocations: 41.25 kB / 0.9528 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.745e-05/0.6329, allocations: 24.16 kB / 0.9528 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.6329, allocations: 3.984 kB / 0.9528 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.619e-05/0.6329, allocations: 39.92 kB / 0.9529 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.824e-06/0.633, allocations: 0 / 0.9529 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003048/0.6333, allocations: 92.19 kB / 0.9529 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.411e-05/0.6333, allocations: 52.91 kB / 0.953 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.215e-05/0.6334, allocations: 111.9 kB / 0.9531 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.015e-06/0.6334, allocations: 25.7 kB / 0.9531 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.327e-05/0.6334, allocations: 102.2 kB / 0.9532 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.8e-05/0.6334, allocations: 13.72 kB / 0.9532 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.061e-05/0.6335, allocations: 16.62 kB / 0.9533 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.794e-05/0.6335, allocations: 320 kB / 0.9536 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.924e-05/0.6336, allocations: 17.2 kB / 0.9536 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.776e-05/0.6337, allocations: 18.7 kB / 0.9536 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001242/0.6338, allocations: 53.27 kB / 0.9536 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.6338, allocations: 0 / 0.9536 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001528/0.634, allocations: 63.14 kB / 0.9537 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.634, allocations: 5.25 kB / 0.9537 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.634, allocations: 0 / 0.9537 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.634, allocations: 1.062 kB / 0.9537 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.6341, allocations: 14.92 kB / 0.9537 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.6341, allocations: 0 / 0.9537 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.087e-05/0.6342, allocations: 8.359 kB / 0.9537 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.374e-06/0.6342, allocations: 4 kB / 0.9537 GB, free: 5.477 MB / 0.7169 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 5.358e-05/0.6343, allocations: 111.9 kB / 0.9538 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.639e-05/0.6343, allocations: 7.125 kB / 0.9538 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.332e-05/0.6343, allocations: 8.938 kB / 0.9539 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.6343, allocations: 1.188 kB / 0.9539 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.6343, allocations: 0 / 0.9539 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.6343, allocations: 1.094 kB / 0.9539 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001269/0.6345, allocations: 174.5 kB / 0.954 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.6345, allocations: 0 / 0.954 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.905e-05/0.6346, allocations: 22.45 kB / 0.954 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.6346, allocations: 1.188 kB / 0.954 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-06/0.6346, allocations: 0 / 0.954 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.053e-06/0.6346, allocations: 1.156 kB / 0.954 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.6346, allocations: 0 / 0.954 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001785/0.6348, allocations: 177.5 kB / 0.9542 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.815e-05/0.6348, allocations: 79.73 kB / 0.9543 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.372e-05/0.6348, allocations: 4 kB / 0.9543 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.836e-05/0.6349, allocations: 3.969 kB / 0.9543 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.157e-05/0.6349, allocations: 5.359 kB / 0.9543 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.099e-06/0.635, allocations: 1.094 kB / 0.9543 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.27e-05/0.635, allocations: 96.45 kB / 0.9544 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.635, allocations: 0 / 0.9544 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002164/0.6352, allocations: 11.47 kB / 0.9544 GB, free: 4.758 MB / 0.7169 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.0003523/0.6356, allocations: 0.7059 MB / 0.9551 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001782/0.6358, allocations: 43.28 kB / 0.9551 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.6358, allocations: 0 / 0.9551 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.89e-05/0.6358, allocations: 28.77 kB / 0.9552 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002123/0.6361, allocations: 4 kB / 0.9552 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004829/0.6366, allocations: 191.8 kB / 0.9554 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001319/0.6367, allocations: 0.6847 MB / 0.956 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.287e-05/0.6367, allocations: 5.656 kB / 0.956 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.407e-05/0.6368, allocations: 16.83 kB / 0.956 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.6368, allocations: 1.188 kB / 0.956 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6463/1.283, allocations: 1.468 MB / 0.9575 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.22/14.5, allocations: 12.67 kB / 0.9575 GB, free: 2.344 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches