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.005674/0.00568, allocations: 104.6 kB / 15.74 MB, free: 5.984 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.001279/0.001279, allocations: 197.5 kB / 16.67 MB, free: 5.91 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.322/1.322, 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 9.1.3-maint.9.1.x/package.mo): time 2.189/2.189, allocations: 390.3 MB / 0.6648 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001613/0.001613, allocations: 67.91 kB / 0.9504 GB, free: 8.152 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9059/0.9075, allocations: 140.4 MB / 1.087 GB, free: 5.281 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002264/0.9098, allocations: 1.505 MB / 1.089 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0005591/0.9104, allocations: 409.9 kB / 1.089 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.674e-05/0.9104, allocations: 0 / 1.089 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.001e-05/0.9105, allocations: 5.062 kB / 1.089 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.744e-05/0.9105, allocations: 19.72 kB / 1.089 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001539/0.9107, allocations: 19.89 kB / 1.089 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.915e-05/0.9108, allocations: 45.62 kB / 1.089 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.414e-05/0.9109, allocations: 11.42 kB / 1.089 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.902e-05/0.911, allocations: 29.34 kB / 1.089 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.728e-05/0.911, allocations: 28.8 kB / 1.089 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.997e-05/0.9111, allocations: 6.562 kB / 1.089 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.13e-05/0.9111, allocations: 3.25 kB / 1.089 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.905e-05/0.9111, allocations: 11.7 kB / 1.089 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.266e-05/0.9111, allocations: 20.02 kB / 1.09 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 9.455e-05/0.9112, allocations: 43.39 kB / 1.09 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.9113, allocations: 4 kB / 1.09 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.392e-06/0.9113, allocations: 0 / 1.09 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.109e-06/0.9113, allocations: 0 / 1.09 GB, free: 3.828 MB / 0.8575 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.0004138/0.9117, allocations: 358.3 kB / 1.09 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.9117, allocations: 10.11 kB / 1.09 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.328e-05/0.9118, allocations: 36.2 kB / 1.09 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.748e-05/0.9118, allocations: 8.062 kB / 1.09 GB, free: 3.414 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.167e-05/0.9119, allocations: 177.4 kB / 1.09 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.9119, allocations: 5.5 kB / 1.09 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.067e-05/0.9119, allocations: 2.188 kB / 1.09 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001538/0.9121, allocations: 63.28 kB / 1.09 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.507e-06/0.9121, allocations: 4.641 kB / 1.09 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.025e-05/0.9121, allocations: 5.062 kB / 1.09 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.9121, allocations: 0 / 1.09 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001474/0.9123, allocations: 36.12 kB / 1.09 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003116/0.9126, allocations: 270.4 kB / 1.09 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001109/0.9127, allocations: 45.11 kB / 1.091 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.958e-05/0.9128, allocations: 23.45 kB / 1.091 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.78e-05/0.9128, allocations: 5.156 kB / 1.091 GB, free: 2.809 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.546e-05/0.9128, allocations: 32.38 kB / 1.091 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.422e-06/0.9128, allocations: 0 / 1.091 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0003019/0.9131, allocations: 85.02 kB / 1.091 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.914e-05/0.9132, allocations: 57.42 kB / 1.091 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.187e-05/0.9133, allocations: 121.5 kB / 1.091 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.816e-06/0.9133, allocations: 25.7 kB / 1.091 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.745e-05/0.9133, allocations: 96.72 kB / 1.091 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.136e-05/0.9133, allocations: 10.75 kB / 1.091 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.065e-05/0.9134, allocations: 13.11 kB / 1.091 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.366e-05/0.9134, allocations: 321.7 kB / 1.091 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.872e-05/0.9135, allocations: 18.55 kB / 1.091 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.172e-05/0.9136, allocations: 17.2 kB / 1.091 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001266/0.9137, allocations: 41.16 kB / 1.091 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.9137, allocations: 0 / 1.091 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001636/0.9139, allocations: 73.05 kB / 1.091 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.9139, allocations: 5.484 kB / 1.091 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.9139, allocations: 5.031 kB / 1.091 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.9139, allocations: 3.938 kB / 1.091 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.735e-05/0.914, allocations: 10.88 kB / 1.091 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.9141, allocations: 0 / 1.091 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.083e-05/0.9141, allocations: 12.44 kB / 1.091 GB, free: 2 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.009e-05/0.9141, allocations: 9.906 kB / 1.091 GB, free: 1.992 MB / 0.8575 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.255e-05/0.9142, allocations: 112.9 kB / 1.092 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.462e-05/0.9142, allocations: 3.281 kB / 1.092 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.692e-05/0.9143, allocations: 10.39 kB / 1.092 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.9143, allocations: 1.094 kB / 1.092 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.9143, allocations: 0 / 1.092 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-06/0.9143, allocations: 1.062 kB / 1.092 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001319/0.9144, allocations: 175.9 kB / 1.092 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.9144, allocations: 4 kB / 1.092 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.942e-05/0.9145, allocations: 10.45 kB / 1.092 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.9145, allocations: 0.8438 kB / 1.092 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.376e-06/0.9145, allocations: 1.078 kB / 1.092 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.9145, allocations: 0.7031 kB / 1.092 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.9145, allocations: 0.8438 kB / 1.092 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001941/0.9147, allocations: 180.7 kB / 1.092 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.911e-05/0.9147, allocations: 83.5 kB / 1.092 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.414e-05/0.9148, allocations: 1.5 kB / 1.092 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.601e-05/0.9148, allocations: 4.484 kB / 1.092 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.588e-05/0.9149, allocations: 3.375 kB / 1.092 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.27e-06/0.9149, allocations: 5.156 kB / 1.092 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.162e-05/0.9149, allocations: 92.16 kB / 1.092 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.9149, allocations: 0 / 1.092 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002107/0.9152, allocations: 7.75 kB / 1.092 GB, free: 1.316 MB / 0.8575 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.0004102/0.9156, allocations: 0.7068 MB / 1.093 GB, free: 16.64 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001834/0.9158, allocations: 40.12 kB / 1.093 GB, free: 16.63 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.9158, allocations: 1 kB / 1.093 GB, free: 16.63 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 6.917e-05/0.9159, allocations: 24.39 kB / 1.093 GB, free: 16.62 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002037/0.9161, allocations: 2.297 kB / 1.093 GB, free: 16.62 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004829/0.9166, allocations: 203.3 kB / 1.093 GB, free: 16.45 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000249/0.9168, allocations: 0.6833 MB / 1.094 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 3.407e-05/0.9169, allocations: 5.781 kB / 1.094 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.069e-05/0.9169, allocations: 18.75 kB / 1.094 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of SimCode: time 2.1e-07/0.9169, allocations: 1.094 kB / 1.094 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01906/0.936, allocations: 1.517 MB / 1.095 GB, free: 15.37 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.235/8.171, allocations: 9.953 kB / 1.095 GB, free: 15.36 MB / 0.8731 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