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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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: translateModel(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criSol.G_TC|criSol.TEnv|criSol.TIn",fileNamePrefix="Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") translateModel(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criSol.G_TC|criSol.TEnv|criSol.TIn",fileNamePrefix="Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005987/0.005987, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001155/0.001155, allocations: 192.6 kB / 16.67 MB, free: 5.969 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.72/2.72, allocations: 472.7 MB / 0.7453 GB, free: 440 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 67.89 kB / 1.069 GB, free: 9.574 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8232/0.8245, allocations: 159.9 MB / 1.226 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002869/0.8274, allocations: 1.504 MB / 1.227 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0006984/0.8281, allocations: 411.1 kB / 1.228 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.69e-05/0.8282, allocations: 0 / 1.228 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.378e-05/0.8282, allocations: 3.938 kB / 1.228 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 6.277e-05/0.8283, allocations: 15.86 kB / 1.228 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001957/0.8285, allocations: 19.91 kB / 1.228 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001007/0.8286, allocations: 47.8 kB / 1.228 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.8288, allocations: 19.98 kB / 1.228 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 9.724e-05/0.8289, allocations: 23.86 kB / 1.228 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.885e-05/0.829, allocations: 23.91 kB / 1.228 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.175e-05/0.829, allocations: 4 kB / 1.228 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 1.487e-05/0.829, allocations: 4 kB / 1.228 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.219e-05/0.829, allocations: 7.938 kB / 1.228 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.549e-05/0.8291, allocations: 23.86 kB / 1.228 GB, free: 11.42 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001151/0.8292, allocations: 43.41 kB / 1.228 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.8292, allocations: 0 / 1.228 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.893e-06/0.8292, allocations: 0 / 1.228 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 9.619e-06/0.8292, allocations: 4 kB / 1.228 GB, free: 11.38 MB / 0.9512 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.00053/0.8298, allocations: 364.2 kB / 1.228 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.8298, allocations: 8.031 kB / 1.228 GB, free: 10.96 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.863e-05/0.8299, allocations: 8.891 kB / 1.228 GB, free: 10.96 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.83, allocations: 184.1 kB / 1.228 GB, free: 10.74 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.83, allocations: 4.359 kB / 1.228 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.641e-05/0.83, allocations: 12.31 kB / 1.228 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001643/0.8302, allocations: 61.98 kB / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.8302, allocations: 0 / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.878e-06/0.8302, allocations: 0 / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.8302, allocations: 3.984 kB / 1.228 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001219/0.8304, allocations: 31.98 kB / 1.228 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000365/0.8307, allocations: 272.9 kB / 1.229 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001152/0.8308, allocations: 46.48 kB / 1.229 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.673e-05/0.8309, allocations: 24.94 kB / 1.229 GB, free: 10.22 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.606e-05/0.831, allocations: 0 / 1.229 GB, free: 10.22 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.994e-05/0.831, allocations: 30.56 kB / 1.229 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 9.22e-07/0.831, allocations: 0 / 1.229 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.000304/0.8313, allocations: 89.61 kB / 1.229 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.481e-05/0.8313, allocations: 59.34 kB / 1.229 GB, free: 10.02 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.936e-05/0.8314, allocations: 121.8 kB / 1.229 GB, free: 9.891 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.306e-05/0.8315, allocations: 25.7 kB / 1.229 GB, free: 9.859 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.261e-05/0.8315, allocations: 88.14 kB / 1.229 GB, free: 9.77 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.23e-05/0.8315, allocations: 7.953 kB / 1.229 GB, free: 9.762 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.311e-05/0.8316, allocations: 17.7 kB / 1.229 GB, free: 9.738 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.555e-05/0.8317, allocations: 318.8 kB / 1.229 GB, free: 9.418 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.679e-05/0.8317, allocations: 23.98 kB / 1.229 GB, free: 9.395 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.31e-05/0.8318, allocations: 11.98 kB / 1.229 GB, free: 9.383 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001234/0.8319, allocations: 44.83 kB / 1.23 GB, free: 9.336 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.8319, allocations: 0 / 1.23 GB, free: 9.336 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001633/0.8321, allocations: 77.56 kB / 1.23 GB, free: 9.254 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.8321, allocations: 5.719 kB / 1.23 GB, free: 9.25 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.8321, allocations: 7.984 kB / 1.23 GB, free: 9.242 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.8322, allocations: 0 / 1.23 GB, free: 9.242 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.773e-05/0.8323, allocations: 8 kB / 1.23 GB, free: 9.234 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.8323, allocations: 3.938 kB / 1.23 GB, free: 9.23 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.357e-05/0.8323, allocations: 7.984 kB / 1.23 GB, free: 9.223 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.8323, allocations: 0 / 1.23 GB, free: 9.223 MB / 0.9512 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.398e-05/0.8324, allocations: 118.3 kB / 1.23 GB, free: 9.098 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.447e-05/0.8325, allocations: 3.953 kB / 1.23 GB, free: 9.094 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.933e-05/0.8325, allocations: 11.91 kB / 1.23 GB, free: 9.074 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.8325, allocations: 4 kB / 1.23 GB, free: 9.07 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.8325, allocations: 3.984 kB / 1.23 GB, free: 9.066 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.8325, allocations: 336 / 1.23 GB, free: 9.066 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001609/0.8327, allocations: 173.5 kB / 1.23 GB, free: 8.848 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.8327, allocations: 0 / 1.23 GB, free: 8.848 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.539e-05/0.8328, allocations: 15.92 kB / 1.23 GB, free: 8.832 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.8328, allocations: 0 / 1.23 GB, free: 8.832 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.8328, allocations: 3.984 kB / 1.23 GB, free: 8.828 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.8328, allocations: 4 kB / 1.23 GB, free: 8.824 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.8328, allocations: 0 / 1.23 GB, free: 8.824 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002037/0.833, allocations: 175.3 kB / 1.23 GB, free: 8.637 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.902e-05/0.8331, allocations: 81.11 kB / 1.23 GB, free: 8.539 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.437e-05/0.8331, allocations: 0 / 1.23 GB, free: 8.539 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.259e-05/0.8332, allocations: 11.98 kB / 1.23 GB, free: 8.527 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.663e-05/0.8332, allocations: 0 / 1.23 GB, free: 8.527 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.078e-06/0.8332, allocations: 0 / 1.23 GB, free: 8.527 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.903e-05/0.8333, allocations: 103.6 kB / 1.23 GB, free: 8.426 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8333, allocations: 0 / 1.23 GB, free: 8.426 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002158/0.8335, allocations: 4 kB / 1.23 GB, free: 8.422 MB / 0.9512 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.000121/0.8336, allocations: 103.2 kB / 1.23 GB, free: 8.312 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001849/0.8338, allocations: 43.91 kB / 1.23 GB, free: 8.27 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.8338, allocations: 0 / 1.23 GB, free: 8.27 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 7.353e-05/0.8339, allocations: 27.97 kB / 1.23 GB, free: 8.242 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002126/0.8341, allocations: 3.938 kB / 1.23 GB, free: 8.238 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003711/0.8345, allocations: 184.5 kB / 1.231 GB, free: 8.031 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000223/0.8347, allocations: 0.6845 MB / 1.231 GB, free: 7.32 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.455e-05/0.8348, allocations: 3.938 kB / 1.231 GB, free: 7.316 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.161e-05/0.8348, allocations: 15.44 kB / 1.231 GB, free: 7.301 MB / 0.9512 GB Notification: Performance of SimCode: time 2.3e-07/0.8348, allocations: 0 / 1.231 GB, free: 7.301 MB / 0.9512 GB Notification: Performance of Templates: time 0.002472/0.8373, allocations: 457.8 kB / 1.232 GB, free: 6.863 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile (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 & ./Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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