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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: 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_9_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_9_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.0009847/0.0009847, allocations: 99.39 kB / 15.05 MB, free: 1.105 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.001046/0.001046, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 223.2 MB / 239.9 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.479/2.479, allocations: 390.3 MB / 0.6653 GB, free: 2.961 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003583/0.0003582, allocations: 12 kB / 0.8145 GB, free: 14.28 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.762/0.7624, allocations: 142.3 MB / 0.9535 GB, free: 8.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.001356/0.7638, allocations: 1.2 MB / 0.9547 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000481/0.7643, allocations: 388.8 kB / 0.9551 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.718e-05/0.7644, allocations: 1.219 kB / 0.9551 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.379e-05/0.7644, allocations: 4 kB / 0.9551 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.316e-05/0.7644, allocations: 6.984 kB / 0.9551 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001241/0.7646, allocations: 18.22 kB / 0.9551 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.576e-05/0.7646, allocations: 31.52 kB / 0.9551 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.778e-05/0.7647, allocations: 12.36 kB / 0.9551 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.28e-05/0.7648, allocations: 16.36 kB / 0.9551 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.695e-05/0.7649, allocations: 24.5 kB / 0.9552 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.252e-05/0.7649, allocations: 4.844 kB / 0.9552 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.282e-05/0.7649, allocations: 2.156 kB / 0.9552 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.291e-05/0.7649, allocations: 8.906 kB / 0.9552 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.022e-05/0.765, allocations: 32.86 kB / 0.9552 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.31e-05/0.765, allocations: 34.19 kB / 0.9552 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.765, allocations: 0 / 0.9552 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.362e-06/0.765, allocations: 0 / 0.9552 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.793e-06/0.7651, allocations: 0 / 0.9552 GB, free: 6.695 MB / 0.7169 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.0003649/0.7654, allocations: 357.8 kB / 0.9556 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.7655, allocations: 8.781 kB / 0.9556 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.452e-05/0.7655, allocations: 11.45 kB / 0.9556 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.733e-05/0.7656, allocations: 166.4 kB / 0.9558 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.7656, allocations: 5 kB / 0.9558 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.367e-05/0.7656, allocations: 9.922 kB / 0.9558 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001581/0.7658, allocations: 62.22 kB / 0.9558 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.423e-06/0.7658, allocations: 4 kB / 0.9558 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.7658, allocations: 1.25 kB / 0.9558 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.7658, allocations: 0 / 0.9558 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001254/0.766, allocations: 43.36 kB / 0.9559 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003084/0.7663, allocations: 274.6 kB / 0.9562 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001078/0.7664, allocations: 49.38 kB / 0.9562 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.359e-05/0.7664, allocations: 0 / 0.9562 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.57e-05/0.7664, allocations: 31.78 kB / 0.9562 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 7.52e-07/0.7665, allocations: 3.938 kB / 0.9562 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0002946/0.7667, allocations: 107.3 kB / 0.9563 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.58e-05/0.7668, allocations: 56.5 kB / 0.9564 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.067e-05/0.7669, allocations: 119 kB / 0.9565 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.787e-06/0.7669, allocations: 26.86 kB / 0.9565 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.897e-05/0.7669, allocations: 89.83 kB / 0.9566 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.553e-05/0.7669, allocations: 13.31 kB / 0.9566 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.197e-06/0.7669, allocations: 1.688 kB / 0.9566 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.05e-05/0.767, allocations: 318.8 kB / 0.9569 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.627e-05/0.767, allocations: 22.33 kB / 0.957 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.729e-05/0.7671, allocations: 28.58 kB / 0.957 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.445e-05/0.7672, allocations: 18.7 kB / 0.957 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.7672, allocations: 0 / 0.957 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001574/0.7674, allocations: 74.95 kB / 0.9571 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.7674, allocations: 9.031 kB / 0.9571 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-06/0.7674, allocations: 0 / 0.9571 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/0.7674, allocations: 0 / 0.9571 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.79e-05/0.7675, allocations: 17.25 kB / 0.9571 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.7675, allocations: 3.938 kB / 0.9571 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.245e-05/0.7676, allocations: 9.547 kB / 0.9571 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.568e-06/0.7676, allocations: 1.344 kB / 0.9571 GB, free: 4.855 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.724e-05/0.7676, allocations: 115.3 kB / 0.9572 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.504e-05/0.7677, allocations: 7.438 kB / 0.9572 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.579e-05/0.7677, allocations: 9.25 kB / 0.9572 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.7677, allocations: 0 / 0.9572 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.7677, allocations: 5.391 kB / 0.9572 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.7677, allocations: 0 / 0.9572 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001231/0.7679, allocations: 170.1 kB / 0.9574 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.7679, allocations: 1.312 kB / 0.9574 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.854e-05/0.7679, allocations: 12.17 kB / 0.9574 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.768, allocations: 0 / 0.9574 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-06/0.768, allocations: 5.25 kB / 0.9574 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.768, allocations: 0 / 0.9574 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.768, allocations: 1.531 kB / 0.9574 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001975/0.7682, allocations: 188.7 kB / 0.9576 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.094e-05/0.7682, allocations: 82.39 kB / 0.9577 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.513e-05/0.7682, allocations: 1.312 kB / 0.9577 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.103e-05/0.7683, allocations: 4.688 kB / 0.9577 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.352e-05/0.7684, allocations: 9.266 kB / 0.9577 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.107e-06/0.7684, allocations: 1.062 kB / 0.9577 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.329e-05/0.7684, allocations: 96.83 kB / 0.9578 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7684, allocations: 0 / 0.9578 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002225/0.7687, allocations: 15.17 kB / 0.9578 GB, free: 4.129 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001017/0.7688, allocations: 105.5 kB / 0.9579 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001822/0.7689, allocations: 46.19 kB / 0.9579 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.769, allocations: 0 / 0.9579 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.413e-05/0.769, allocations: 33.86 kB / 0.958 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001387/0.7692, allocations: 4 kB / 0.958 GB, free: 4 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003188/0.7695, allocations: 179 kB / 0.9582 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001278/0.7696, allocations: 0.6912 MB / 0.9588 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.145e-05/0.7697, allocations: 5.375 kB / 0.9588 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.555e-05/0.7697, allocations: 8.844 kB / 0.9588 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.7697, allocations: 0 / 0.9588 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of Templates: time 0.002272/0.772, allocations: 381.1 kB / 0.9592 GB, free: 2.918 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile (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 & ./Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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","../files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches