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.001137/0.001137, 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.001155/0.001155, allocations: 195.9 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.401/1.401, allocations: 222.9 MB / 240.2 MB, free: 4.383 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.569/2.569, allocations: 437 MB / 0.7104 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 59.91 kB / 0.8692 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7259/0.7273, allocations: 151.6 MB / 1.017 GB, free: 2.52 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002909/0.7303, allocations: 1.501 MB / 1.019 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0007621/0.7311, allocations: 419 kB / 1.019 GB, free: 0.5898 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.698e-05/0.7312, allocations: 0 / 1.019 GB, free: 0.5898 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.609e-05/0.7312, allocations: 3.938 kB / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.956e-05/0.7313, allocations: 15.86 kB / 1.019 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001594/0.7314, allocations: 19.98 kB / 1.019 GB, free: 0.5508 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.007e-05/0.7315, allocations: 51.73 kB / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001118/0.7316, allocations: 19.97 kB / 1.019 GB, free: 492 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.897e-05/0.7317, allocations: 19.92 kB / 1.019 GB, free: 472 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.01e-05/0.7318, allocations: 19.92 kB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.839e-05/0.7318, allocations: 4 kB / 1.019 GB, free: 448 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.379e-05/0.7319, allocations: 4 kB / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.066e-05/0.7319, allocations: 15.92 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.499e-05/0.7319, allocations: 15.88 kB / 1.019 GB, free: 412 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 8.425e-05/0.732, allocations: 41.84 kB / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.732, allocations: 0 / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.142e-06/0.732, allocations: 0 / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.732, allocations: 0 / 1.019 GB, free: 372 kB / 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.0004696/0.7325, allocations: 371.2 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.7326, allocations: 8.031 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.476e-05/0.7326, allocations: 4.938 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001141/0.7327, allocations: 176.2 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/0.7327, allocations: 4.375 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.289e-05/0.7328, allocations: 4.359 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001637/0.7329, allocations: 61.98 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.7329, allocations: 0 / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-06/0.733, allocations: 3.938 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.733, allocations: 0 / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001266/0.7331, allocations: 35.97 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003809/0.7335, allocations: 280.8 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001162/0.7336, allocations: 38.56 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.405e-05/0.7337, allocations: 24.94 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.506e-05/0.7337, allocations: 0 / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.188e-05/0.7338, allocations: 34.56 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 9.22e-07/0.7338, allocations: 0 / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003127/0.7341, allocations: 89.59 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.799e-05/0.7341, allocations: 51.41 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.428e-05/0.7342, allocations: 118.2 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.7342, allocations: 29.7 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.114e-05/0.7343, allocations: 88.14 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.096e-05/0.7343, allocations: 19.73 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.596e-05/0.7343, allocations: 21.7 kB / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001012/0.7345, allocations: 322.8 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.992e-05/0.7345, allocations: 15.92 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.854e-05/0.7346, allocations: 19.98 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001267/0.7347, allocations: 49.09 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.7348, allocations: 0 / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.00017/0.7349, allocations: 77.59 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/0.735, allocations: 4 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.239e-06/0.735, allocations: 4 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.019e-05/0.735, allocations: 0 / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.419e-05/0.7351, allocations: 4 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.7351, allocations: 3.984 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.378e-05/0.7352, allocations: 8 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.748e-06/0.7352, allocations: 4 kB / 1.021 GB, free: 14.2 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 7.117e-05/0.7352, allocations: 113.8 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.84e-05/0.7353, allocations: 7.906 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.299e-05/0.7353, allocations: 7.891 kB / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.7353, allocations: 0 / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-06/0.7353, allocations: 3.938 kB / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.7353, allocations: 4 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001664/0.7355, allocations: 173.6 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.7355, allocations: 4 kB / 1.022 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.365e-05/0.7356, allocations: 11.98 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.7356, allocations: 0 / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.7356, allocations: 0 / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.7356, allocations: 0 / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.7356, allocations: 3.938 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002195/0.7358, allocations: 171.4 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.226e-05/0.7359, allocations: 81.11 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.388e-05/0.7359, allocations: 0 / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.688e-05/0.736, allocations: 7.984 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.453e-05/0.7361, allocations: 8 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-06/0.7361, allocations: 0 / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.487e-05/0.7361, allocations: 95.31 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7361, allocations: 0 / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002238/0.7364, allocations: 8 kB / 1.022 GB, free: 13.42 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 9.423e-05/0.7365, allocations: 99.25 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001753/0.7366, allocations: 47.89 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.7366, allocations: 0 / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 7.297e-05/0.7367, allocations: 23.98 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002105/0.7369, allocations: 4.5 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003505/0.7373, allocations: 168.2 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002263/0.7375, allocations: 0.6807 MB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.958e-05/0.7376, allocations: 3.938 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.613e-05/0.7376, allocations: 11.44 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of SimCode: time 2.61e-07/0.7376, allocations: 0 / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of Templates: time 0.002258/0.7399, allocations: 458.3 kB / 1.023 GB, free: 11.88 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