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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.00123/0.00123, allocations: 101.6 kB / 16.27 MB, free: 6.414 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.001239/0.001239, allocations: 191.2 kB / 17.2 MB, free: 5.953 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.415/1.415, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.744/2.744, allocations: 482.4 MB / 0.7553 GB, free: 6.98 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001979/0.001979, allocations: 72.31 kB / 0.9245 GB, free: 15.96 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7702/0.7722, allocations: 162.2 MB / 1.083 GB, free: 1.645 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002613/0.7749, allocations: 1.497 MB / 1.084 GB, free: 0.5977 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006213/0.7755, allocations: 420.3 kB / 1.085 GB, free: 312 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.815e-05/0.7756, allocations: 1.031 kB / 1.085 GB, free: 312 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.768e-05/0.7756, allocations: 5.25 kB / 1.085 GB, free: 308 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.859e-05/0.7757, allocations: 10.75 kB / 1.085 GB, free: 300 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001584/0.7759, allocations: 16.14 kB / 1.085 GB, free: 292 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.045e-05/0.776, allocations: 49.45 kB / 1.085 GB, free: 268 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.7761, allocations: 23.16 kB / 1.085 GB, free: 252 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.358e-05/0.7762, allocations: 25.61 kB / 1.085 GB, free: 240 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.448e-05/0.7763, allocations: 20.88 kB / 1.085 GB, free: 232 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.861e-05/0.7763, allocations: 3.719 kB / 1.085 GB, free: 232 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.449e-05/0.7763, allocations: 3.625 kB / 1.085 GB, free: 232 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.763e-05/0.7763, allocations: 11.31 kB / 1.085 GB, free: 224 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.408e-05/0.7764, allocations: 23.27 kB / 1.085 GB, free: 208 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 9.559e-05/0.7765, allocations: 45.69 kB / 1.085 GB, free: 188 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.7765, allocations: 5.859 kB / 1.085 GB, free: 184 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.704e-06/0.7765, allocations: 0 / 1.085 GB, free: 184 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.539e-06/0.7765, allocations: 3.938 kB / 1.085 GB, free: 180 kB / 0.8262 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.000528/0.777, allocations: 358.7 kB / 1.085 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.7771, allocations: 8.688 kB / 1.085 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.494e-05/0.7771, allocations: 8.094 kB / 1.085 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001632/0.7773, allocations: 170.2 kB / 1.086 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.714e-05/0.7773, allocations: 5.438 kB / 1.086 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.869e-06/0.7773, allocations: 1.438 kB / 1.086 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001865/0.7775, allocations: 64.34 kB / 1.086 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.7775, allocations: 0 / 1.086 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.15e-05/0.7775, allocations: 5.219 kB / 1.086 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.7776, allocations: 0 / 1.086 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001355/0.7777, allocations: 36.38 kB / 1.086 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004325/0.7781, allocations: 274.8 kB / 1.086 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001268/0.7783, allocations: 41.56 kB / 1.086 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.713e-05/0.7784, allocations: 23.11 kB / 1.086 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.198e-05/0.7784, allocations: 7.984 kB / 1.086 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.958e-05/0.7784, allocations: 32.42 kB / 1.086 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=3): time 1.393e-06/0.7784, allocations: 0 / 1.086 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3): time 0.0003369/0.7788, allocations: 90.28 kB / 1.086 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.474e-05/0.7788, allocations: 52.44 kB / 1.086 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001063/0.7789, allocations: 117.8 kB / 1.086 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.779, allocations: 25.7 kB / 1.086 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.333e-05/0.779, allocations: 97.03 kB / 1.086 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.293e-05/0.7791, allocations: 13.64 kB / 1.086 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.884e-05/0.7791, allocations: 17.39 kB / 1.086 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001516/0.7793, allocations: 323.5 kB / 1.087 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.423e-05/0.7794, allocations: 16.52 kB / 1.087 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.865e-05/0.7794, allocations: 17.97 kB / 1.087 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001283/0.7796, allocations: 37.88 kB / 1.087 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.7796, allocations: 4 kB / 1.087 GB, free: 14.45 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001841/0.7798, allocations: 80.58 kB / 1.087 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.7798, allocations: 5.797 kB / 1.087 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.7798, allocations: 0 / 1.087 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.7798, allocations: 1 kB / 1.087 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.7799, allocations: 14.36 kB / 1.087 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.78, allocations: 0 / 1.087 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.237e-05/0.78, allocations: 4.781 kB / 1.087 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.456e-06/0.78, allocations: 1.672 kB / 1.087 GB, free: 14.4 MB / 0.8419 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 9.399e-05/0.7801, allocations: 121.4 kB / 1.087 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.964e-05/0.7802, allocations: 6.391 kB / 1.087 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.21e-05/0.7802, allocations: 10.44 kB / 1.087 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.788e-06/0.7802, allocations: 0.5 kB / 1.087 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.7802, allocations: 9.125 kB / 1.087 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.7802, allocations: 0 / 1.087 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002081/0.7804, allocations: 171.9 kB / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.7805, allocations: 1.453 kB / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.14e-05/0.7805, allocations: 10.5 kB / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.7805, allocations: 0 / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-06/0.7806, allocations: 4.609 kB / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.7806, allocations: 1.25 kB / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.7806, allocations: 0.75 kB / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002531/0.7808, allocations: 173.2 kB / 1.087 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.955e-05/0.7809, allocations: 83.08 kB / 1.087 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.568e-05/0.7809, allocations: 0.7812 kB / 1.087 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.218e-05/0.781, allocations: 8.766 kB / 1.087 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.443e-05/0.781, allocations: 4.453 kB / 1.087 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.418e-06/0.781, allocations: 0.9844 kB / 1.087 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 7.662e-05/0.7811, allocations: 91.52 kB / 1.088 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7811, allocations: 0.8438 kB / 1.088 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000222/0.7814, allocations: 7.375 kB / 1.088 GB, free: 13.72 MB / 0.8419 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.0001315/0.7815, allocations: 101.8 kB / 1.088 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002042/0.7817, allocations: 40.69 kB / 1.088 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.7817, allocations: 0 / 1.088 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 7.698e-05/0.7818, allocations: 25.5 kB / 1.088 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002126/0.782, allocations: 10.05 kB / 1.088 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000465/0.7825, allocations: 195.7 kB / 1.088 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003341/0.7828, allocations: 0.6835 MB / 1.089 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.547e-05/0.7829, allocations: 10.19 kB / 1.089 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of SimCode: time 2.61e-07/0.7829, allocations: 0 / 1.089 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of Templates: time 0.002298/0.7852, allocations: 0.7159 MB / 1.089 GB, free: 12.68 MB / 0.8419 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=400 -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