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: 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.001799/0.001799, allocations: 105.8 kB / 16.41 MB, free: 6.465 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.002226/0.002225, allocations: 187 kB / 17.34 MB, free: 5.719 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.411/1.411, allocations: 222.9 MB / 241 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.563/2.563, allocations: 461.9 MB / 0.7354 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 59.91 kB / 1.055 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8262/0.8276, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.003478/0.8312, allocations: 1.507 MB / 1.21 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0007634/0.832, allocations: 411.1 kB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.415e-05/0.8321, allocations: 0 / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.411e-05/0.8321, allocations: 3.938 kB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.92e-05/0.8322, allocations: 11.88 kB / 1.21 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001969/0.8324, allocations: 19.95 kB / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001073/0.8325, allocations: 47.8 kB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001262/0.8326, allocations: 23.92 kB / 1.21 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001145/0.8328, allocations: 12 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 9.576e-05/0.8329, allocations: 31.83 kB / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.49e-05/0.8329, allocations: 4 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.491e-05/0.8329, allocations: 4 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.153e-05/0.8329, allocations: 4 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.492e-05/0.833, allocations: 19.86 kB / 1.21 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001222/0.8331, allocations: 43.83 kB / 1.211 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.8331, allocations: 15.88 kB / 1.211 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.954e-06/0.8331, allocations: 0 / 1.211 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.883e-06/0.8332, allocations: 0 / 1.211 GB, free: 11.47 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.0006091/0.8338, allocations: 361 kB / 1.211 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.421e-05/0.8338, allocations: 8.031 kB / 1.211 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.435e-05/0.8339, allocations: 8.844 kB / 1.211 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002049/0.8341, allocations: 176.2 kB / 1.211 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.681e-05/0.8341, allocations: 384 / 1.211 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.735e-05/0.8342, allocations: 4.375 kB / 1.211 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002215/0.8344, allocations: 61.98 kB / 1.211 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.8344, allocations: 0 / 1.211 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.8344, allocations: 0 / 1.211 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.8344, allocations: 0 / 1.211 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001428/0.8346, allocations: 39.91 kB / 1.211 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005/0.8351, allocations: 268.9 kB / 1.211 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001275/0.8352, allocations: 54.48 kB / 1.211 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.349e-05/0.8353, allocations: 24.94 kB / 1.211 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.744e-05/0.8353, allocations: 0 / 1.211 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.548e-05/0.8354, allocations: 30.56 kB / 1.212 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 8.22e-07/0.8354, allocations: 0 / 1.212 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0003951/0.8358, allocations: 97.5 kB / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.808e-05/0.8358, allocations: 51.41 kB / 1.212 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.8359, allocations: 125.8 kB / 1.212 GB, free: 10 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/0.836, allocations: 25.7 kB / 1.212 GB, free: 9.969 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.774e-05/0.836, allocations: 84.14 kB / 1.212 GB, free: 9.883 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.279e-05/0.836, allocations: 15.84 kB / 1.212 GB, free: 9.867 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.556e-05/0.8361, allocations: 13.7 kB / 1.212 GB, free: 9.848 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000204/0.8363, allocations: 326.8 kB / 1.212 GB, free: 9.52 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.719e-05/0.8364, allocations: 15.98 kB / 1.212 GB, free: 9.504 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.907e-05/0.8364, allocations: 19.98 kB / 1.212 GB, free: 9.484 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001259/0.8366, allocations: 45.05 kB / 1.212 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.8366, allocations: 0 / 1.212 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001699/0.8367, allocations: 73.56 kB / 1.212 GB, free: 9.359 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.8368, allocations: 12 kB / 1.212 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.8368, allocations: 0 / 1.212 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.8368, allocations: 0 / 1.212 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.662e-05/0.8369, allocations: 7.984 kB / 1.212 GB, free: 9.34 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.8369, allocations: 4 kB / 1.212 GB, free: 9.336 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.256e-05/0.837, allocations: 3.984 kB / 1.212 GB, free: 9.332 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.837, allocations: 4 kB / 1.212 GB, free: 9.328 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 8.787e-05/0.8371, allocations: 113.8 kB / 1.213 GB, free: 9.207 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.021e-05/0.8371, allocations: 11.91 kB / 1.213 GB, free: 9.195 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.175e-05/0.8371, allocations: 11.84 kB / 1.213 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.8372, allocations: 0 / 1.213 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.8372, allocations: 4 kB / 1.213 GB, free: 9.168 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.8372, allocations: 3.984 kB / 1.213 GB, free: 9.164 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001804/0.8374, allocations: 169.6 kB / 1.213 GB, free: 8.949 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.8374, allocations: 3.938 kB / 1.213 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.458e-05/0.8374, allocations: 15.92 kB / 1.213 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.8375, allocations: 0 / 1.213 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.483e-06/0.8375, allocations: 0 / 1.213 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.8375, allocations: 4 kB / 1.213 GB, free: 8.926 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.8375, allocations: 0 / 1.213 GB, free: 8.926 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002395/0.8377, allocations: 167.5 kB / 1.213 GB, free: 8.746 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.546e-05/0.8378, allocations: 81.02 kB / 1.213 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.589e-05/0.8378, allocations: 0 / 1.213 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.999e-05/0.8379, allocations: 8 kB / 1.213 GB, free: 8.641 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.723e-05/0.8379, allocations: 11.98 kB / 1.213 GB, free: 8.629 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.01e-06/0.838, allocations: 0 / 1.213 GB, free: 8.629 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001451/0.8381, allocations: 91.27 kB / 1.213 GB, free: 8.539 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2e-07/0.8381, allocations: 0 / 1.213 GB, free: 8.539 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002179/0.8383, allocations: 8 kB / 1.213 GB, free: 8.531 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.0001163/0.8385, allocations: 99.19 kB / 1.213 GB, free: 8.426 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001775/0.8386, allocations: 39.97 kB / 1.213 GB, free: 8.387 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.8387, allocations: 4 kB / 1.213 GB, free: 8.383 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 6.754e-05/0.8387, allocations: 19.98 kB / 1.213 GB, free: 8.363 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002105/0.8389, allocations: 11.92 kB / 1.213 GB, free: 8.352 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00043/0.8394, allocations: 193.8 kB / 1.213 GB, free: 8.129 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/0.8397, allocations: 0.6846 MB / 1.214 GB, free: 7.418 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.387e-05/0.8397, allocations: 7.438 kB / 1.214 GB, free: 7.41 MB / 0.9356 GB Notification: Performance of SimCode: time 3.61e-07/0.8397, allocations: 4 kB / 1.214 GB, free: 7.406 MB / 0.9356 GB Notification: Performance of Templates: time 0.002262/0.842, allocations: 0.7016 MB / 1.215 GB, free: 6.707 MB / 0.9356 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/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