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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0009023/0.0009023, allocations: 95 kB / 15.05 MB, free: 1.109 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.0009072/0.0009072, allocations: 181.3 kB / 15.95 MB, free: 216 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.301/1.301, allocations: 223.2 MB / 239.9 MB, free: 5.215 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.493/2.493, allocations: 436.5 MB / 0.7104 GB, free: 7.875 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003144/0.0003144, allocations: 8 kB / 0.8708 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5833/0.5836, allocations: 153.7 MB / 1.021 GB, free: 1.066 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.001422/0.5851, allocations: 1.2 MB / 1.022 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.000514/0.5856, allocations: 383.5 kB / 1.022 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.675e-05/0.5856, allocations: 0 / 1.022 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.182e-05/0.5857, allocations: 0 / 1.022 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.356e-05/0.5857, allocations: 19.97 kB / 1.022 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001148/0.5859, allocations: 15.86 kB / 1.022 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.676e-05/0.5859, allocations: 35.89 kB / 1.022 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.14e-05/0.586, allocations: 11.97 kB / 1.022 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.413e-05/0.5861, allocations: 23.92 kB / 1.022 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.399e-05/0.5862, allocations: 19.92 kB / 1.022 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.081e-05/0.5862, allocations: 0 / 1.022 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.036e-05/0.5862, allocations: 0 / 1.022 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.264e-05/0.5862, allocations: 11.94 kB / 1.022 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.491e-05/0.5863, allocations: 29.7 kB / 1.023 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 5.982e-05/0.5863, allocations: 29.89 kB / 1.023 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.5863, allocations: 8 kB / 1.023 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.372e-06/0.5863, allocations: 0 / 1.023 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.266e-06/0.5864, allocations: 0 / 1.023 GB, free: 15.27 MB / 0.7794 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.0004117/0.5868, allocations: 351.2 kB / 1.023 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.09e-05/0.5868, allocations: 11.98 kB / 1.023 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.727e-05/0.5868, allocations: 11.91 kB / 1.023 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/0.587, allocations: 175 kB / 1.023 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.488e-06/0.587, allocations: 0 / 1.023 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.165e-05/0.587, allocations: 7.984 kB / 1.023 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001579/0.5872, allocations: 57.62 kB / 1.023 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.5872, allocations: 0 / 1.023 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.789e-06/0.5872, allocations: 4 kB / 1.023 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.546e-06/0.5872, allocations: 0 / 1.023 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001292/0.5873, allocations: 43.97 kB / 1.023 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003348/0.5877, allocations: 276.8 kB / 1.023 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001117/0.5878, allocations: 50.5 kB / 1.024 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.276e-05/0.5878, allocations: 0 / 1.024 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.681e-05/0.5879, allocations: 34.56 kB / 1.024 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 8.12e-07/0.5879, allocations: 3.938 kB / 1.024 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0002973/0.5882, allocations: 97.92 kB / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.267e-05/0.5882, allocations: 55.34 kB / 1.024 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.928e-05/0.5883, allocations: 121.8 kB / 1.024 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.309e-05/0.5883, allocations: 25.7 kB / 1.024 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.316e-05/0.5884, allocations: 88.14 kB / 1.024 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.717e-05/0.5884, allocations: 15.75 kB / 1.024 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.446e-06/0.5884, allocations: 4 kB / 1.024 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001071/0.5885, allocations: 318.8 kB / 1.024 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.344e-05/0.5886, allocations: 19.98 kB / 1.024 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.023e-05/0.5887, allocations: 19.98 kB / 1.024 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.961e-05/0.5887, allocations: 23.98 kB / 1.024 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.5887, allocations: 4 kB / 1.024 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001674/0.5889, allocations: 77.62 kB / 1.024 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/0.5889, allocations: 4 kB / 1.024 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.5889, allocations: 3.938 kB / 1.024 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.896e-06/0.589, allocations: 0 / 1.024 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.5891, allocations: 23.92 kB / 1.024 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.5891, allocations: 4 kB / 1.024 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.418e-05/0.5891, allocations: 7.984 kB / 1.024 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-06/0.5892, allocations: 0 / 1.024 GB, free: 13.15 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.449e-05/0.5892, allocations: 113.8 kB / 1.025 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.556e-05/0.5893, allocations: 7.859 kB / 1.025 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.444e-05/0.5893, allocations: 11.91 kB / 1.025 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.5893, allocations: 4 kB / 1.025 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.5893, allocations: 0 / 1.025 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-06/0.5893, allocations: 0 / 1.025 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001617/0.5895, allocations: 173.6 kB / 1.025 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.5895, allocations: 0 / 1.025 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.237e-05/0.5896, allocations: 15.98 kB / 1.025 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.5896, allocations: 3.953 kB / 1.025 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.722e-06/0.5896, allocations: 0 / 1.025 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.5896, allocations: 0 / 1.025 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.5896, allocations: 3.938 kB / 1.025 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002109/0.5898, allocations: 183.4 kB / 1.025 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.271e-05/0.5899, allocations: 77.11 kB / 1.025 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.044e-05/0.5899, allocations: 3.953 kB / 1.025 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.347e-05/0.59, allocations: 8 kB / 1.025 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.101e-05/0.59, allocations: 11.98 kB / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-06/0.59, allocations: 0 / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.406e-05/0.5901, allocations: 91.27 kB / 1.025 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5901, allocations: 0 / 1.025 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002146/0.5903, allocations: 8 kB / 1.025 GB, free: 12.35 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 (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 8.84e-05/0.5904, allocations: 95.25 kB / 1.025 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001764/0.5906, allocations: 51.97 kB / 1.025 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.5906, allocations: 0 / 1.025 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 7.22e-05/0.5907, allocations: 27.92 kB / 1.025 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001256/0.5908, allocations: 5.328 kB / 1.025 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003137/0.5911, allocations: 186.5 kB / 1.025 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002307/0.5914, allocations: 0.6887 MB / 1.026 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.088e-05/0.5914, allocations: 4.375 kB / 1.026 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.455e-05/0.5914, allocations: 11.44 kB / 1.026 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.5914, allocations: 0 / 1.026 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of Templates: time 0.001994/0.5934, allocations: 385.4 kB / 1.027 GB, free: 10.85 MB / 0.7794 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","../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches