Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: 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_10_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_10_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.001516/0.001521, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002049/0.00205, allocations: 193.7 kB / 16.14 MB, free: 6.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.434/1.434, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.798/2.798, allocations: 437 MB / 0.7099 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 59.91 kB / 0.8685 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7317/0.733, allocations: 151.6 MB / 1.017 GB, free: 2.781 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.003747/0.7368, allocations: 1.57 MB / 1.018 GB, free: 1.199 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008095/0.7377, allocations: 411 kB / 1.019 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.648e-05/0.7378, allocations: 4 kB / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 5.661e-05/0.7379, allocations: 3.984 kB / 1.019 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.854e-05/0.738, allocations: 15.86 kB / 1.019 GB, free: 0.7695 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001982/0.7382, allocations: 7.984 kB / 1.019 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001088/0.7383, allocations: 51.8 kB / 1.019 GB, free: 0.7109 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.7384, allocations: 15.94 kB / 1.019 GB, free: 0.6953 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001258/0.7386, allocations: 15.92 kB / 1.019 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.7387, allocations: 31.89 kB / 1.019 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.16e-05/0.7387, allocations: 0 / 1.019 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.716e-05/0.7388, allocations: 4 kB / 1.019 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.418e-05/0.7388, allocations: 7.938 kB / 1.019 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.034e-05/0.7388, allocations: 23.86 kB / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.000108/0.739, allocations: 37.84 kB / 1.019 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.739, allocations: 0 / 1.019 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.122e-06/0.739, allocations: 0 / 1.019 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.739, allocations: 4 kB / 1.019 GB, free: 0.5742 MB / 0.7637 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.0006095/0.7396, allocations: 363.3 kB / 1.019 GB, free: 176 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.7397, allocations: 8.031 kB / 1.019 GB, free: 168 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.444e-05/0.7397, allocations: 8.938 kB / 1.019 GB, free: 160 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001693/0.7399, allocations: 176.2 kB / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.377e-05/0.7399, allocations: 4.375 kB / 1.019 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.648e-05/0.7399, allocations: 384 / 1.019 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001995/0.7401, allocations: 61.92 kB / 1.019 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.7401, allocations: 0 / 1.019 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.7402, allocations: 4 kB / 1.019 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.7402, allocations: 4 kB / 1.019 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001378/0.7403, allocations: 31.97 kB / 1.019 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004659/0.7408, allocations: 272.8 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001267/0.7409, allocations: 46.5 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.086e-05/0.741, allocations: 28.94 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.093e-05/0.7411, allocations: 0 / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/0.7411, allocations: 38.48 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.7411, allocations: 0 / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003414/0.7414, allocations: 81.66 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.062e-05/0.7415, allocations: 55.41 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.7416, allocations: 121.8 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.446e-05/0.7416, allocations: 29.64 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.546e-05/0.7417, allocations: 96.03 kB / 1.02 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.257e-05/0.7417, allocations: 11.84 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.742e-05/0.7418, allocations: 9.719 kB / 1.02 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001213/0.7419, allocations: 326.8 kB / 1.02 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.102e-05/0.742, allocations: 15.98 kB / 1.02 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.4e-05/0.7421, allocations: 23.98 kB / 1.02 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001231/0.7422, allocations: 37.11 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.7422, allocations: 0 / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001694/0.7424, allocations: 69.66 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.7424, allocations: 8 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.7424, allocations: 0 / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.7424, allocations: 0 / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.7426, allocations: 19.92 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.7426, allocations: 3.938 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.866e-05/0.7426, allocations: 11.89 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.7427, allocations: 4 kB / 1.021 GB, free: 14.42 MB / 0.7794 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 0.0001152/0.7428, allocations: 110.3 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.895e-05/0.7428, allocations: 4 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.85e-05/0.7429, allocations: 7.906 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.7429, allocations: 4 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.7429, allocations: 4 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.7429, allocations: 0 / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001875/0.7431, allocations: 173.6 kB / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.7431, allocations: 0 / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.57e-05/0.7432, allocations: 11.98 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.7432, allocations: 0 / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.7432, allocations: 4 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.7432, allocations: 0 / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.7432, allocations: 0 / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002337/0.7434, allocations: 183.3 kB / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.161e-05/0.7435, allocations: 81.02 kB / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.818e-05/0.7435, allocations: 4 kB / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.015e-05/0.7436, allocations: 0 / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.267e-05/0.7436, allocations: 7.984 kB / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.469e-06/0.7437, allocations: 0 / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.611e-05/0.7437, allocations: 91.27 kB / 1.021 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7437, allocations: 7.938 kB / 1.021 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002219/0.744, allocations: 8 kB / 1.021 GB, free: 13.63 MB / 0.7794 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.0001227/0.7441, allocations: 103.2 kB / 1.021 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001839/0.7443, allocations: 31.97 kB / 1.021 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.7443, allocations: 4 kB / 1.021 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 7.205e-05/0.7444, allocations: 23.92 kB / 1.021 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000223/0.7446, allocations: 11.94 kB / 1.021 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004236/0.745, allocations: 170 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002462/0.7453, allocations: 0.6887 MB / 1.022 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.016e-05/0.7453, allocations: 4 kB / 1.022 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.987e-05/0.7454, allocations: 7.438 kB / 1.022 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of SimCode: time 4.61e-07/0.7454, allocations: 0 / 1.022 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of Templates: time 0.002584/0.748, allocations: 411.8 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile (rm -f Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & ./Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches