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.00132/0.00132, allocations: 108.6 kB / 15.99 MB, free: 6.348 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.001225/0.001225, allocations: 189.2 kB / 16.91 MB, free: 6.184 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.376/1.376, allocations: 222.9 MB / 240.6 MB, free: 13.67 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.719/2.719, allocations: 482.4 MB / 0.755 GB, free: 7.125 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 69.47 kB / 0.924 GB, free: 268 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7513/0.7533, allocations: 162.2 MB / 1.082 GB, free: 1.598 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.00335/0.7566, allocations: 1.563 MB / 1.084 GB, free: 0.5039 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007625/0.7574, allocations: 404.6 kB / 1.084 GB, free: 232 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.776e-05/0.7575, allocations: 4.781 kB / 1.084 GB, free: 228 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.199e-05/0.7576, allocations: 5.016 kB / 1.084 GB, free: 224 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.27e-05/0.7576, allocations: 10.67 kB / 1.084 GB, free: 216 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001735/0.7578, allocations: 19.61 kB / 1.084 GB, free: 204 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.94e-05/0.7579, allocations: 57.47 kB / 1.084 GB, free: 172 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001162/0.7581, allocations: 15.84 kB / 1.084 GB, free: 164 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001077/0.7582, allocations: 23.61 kB / 1.084 GB, free: 152 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.305e-05/0.7583, allocations: 21.59 kB / 1.084 GB, free: 144 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.072e-05/0.7583, allocations: 3.812 kB / 1.084 GB, free: 144 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.614e-05/0.7583, allocations: 2.719 kB / 1.084 GB, free: 144 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.159e-05/0.7584, allocations: 15.38 kB / 1.085 GB, free: 132 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.094e-05/0.7584, allocations: 20.73 kB / 1.085 GB, free: 120 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 8.722e-05/0.7585, allocations: 37.22 kB / 1.085 GB, free: 104 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.7585, allocations: 0.6094 kB / 1.085 GB, free: 104 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.172e-06/0.7585, allocations: 0 / 1.085 GB, free: 104 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.019e-06/0.7585, allocations: 1.156 kB / 1.085 GB, free: 104 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.0006053/0.7592, allocations: 362.3 kB / 1.085 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.7592, allocations: 8.625 kB / 1.085 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.271e-05/0.7593, allocations: 8.375 kB / 1.085 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001739/0.7594, allocations: 173 kB / 1.085 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.7595, allocations: 2.125 kB / 1.085 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.581e-05/0.7595, allocations: 9.375 kB / 1.085 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00022/0.7597, allocations: 55.92 kB / 1.085 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.7597, allocations: 0.8906 kB / 1.085 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.7598, allocations: 1.219 kB / 1.085 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.7598, allocations: 0 / 1.085 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001956/0.76, allocations: 43.83 kB / 1.085 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004963/0.7605, allocations: 274.3 kB / 1.085 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001653/0.7607, allocations: 41.95 kB / 1.086 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.7608, allocations: 23.53 kB / 1.086 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.958e-05/0.7608, allocations: 1.031 kB / 1.086 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.086e-05/0.7609, allocations: 36.39 kB / 1.086 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=3): time 1.453e-06/0.7609, allocations: 11.88 kB / 1.086 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3): time 0.0004374/0.7613, allocations: 84.83 kB / 1.086 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/0.7614, allocations: 52.73 kB / 1.086 GB, free: 14.97 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.7615, allocations: 118.6 kB / 1.086 GB, free: 14.87 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.016e-05/0.7615, allocations: 25.7 kB / 1.086 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.656e-05/0.7616, allocations: 88.33 kB / 1.086 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.703e-05/0.7617, allocations: 14.02 kB / 1.086 GB, free: 14.74 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.042e-05/0.7617, allocations: 17.88 kB / 1.086 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001765/0.7619, allocations: 322.9 kB / 1.086 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001027/0.762, allocations: 16.88 kB / 1.086 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.722e-05/0.7621, allocations: 17.52 kB / 1.086 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001962/0.7623, allocations: 45.42 kB / 1.086 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.7623, allocations: 0 / 1.086 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002643/0.7626, allocations: 77.27 kB / 1.086 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.7626, allocations: 5.641 kB / 1.086 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.7627, allocations: 0 / 1.086 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.7627, allocations: 1.141 kB / 1.086 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.7628, allocations: 13.52 kB / 1.086 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.7628, allocations: 0.6094 kB / 1.086 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.206e-05/0.7629, allocations: 4.859 kB / 1.086 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.181e-05/0.7629, allocations: 1.672 kB / 1.086 GB, free: 14.32 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 0.0001096/0.7631, allocations: 123.7 kB / 1.087 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.857e-05/0.7631, allocations: 6.938 kB / 1.087 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.463e-05/0.7632, allocations: 10.64 kB / 1.087 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.7632, allocations: 0 / 1.087 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.7632, allocations: 5.562 kB / 1.087 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.7632, allocations: 0 / 1.087 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002811/0.7635, allocations: 175.7 kB / 1.087 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.7635, allocations: 2 kB / 1.087 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001092/0.7636, allocations: 9.219 kB / 1.087 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.7636, allocations: 4 kB / 1.087 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.7637, allocations: 1.875 kB / 1.087 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.7637, allocations: 0 / 1.087 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.7637, allocations: 5.859 kB / 1.087 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003137/0.764, allocations: 163.8 kB / 1.087 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.497e-05/0.7641, allocations: 83.84 kB / 1.087 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.381e-05/0.7641, allocations: 4.703 kB / 1.087 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001362/0.7643, allocations: 9.469 kB / 1.087 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.024e-05/0.7643, allocations: 3.469 kB / 1.087 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/0.7643, allocations: 5.031 kB / 1.087 GB, free: 13.71 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 8.523e-05/0.7644, allocations: 91.98 kB / 1.087 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.3e-07/0.7644, allocations: 5.031 kB / 1.087 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003796/0.7648, allocations: 6.25 kB / 1.087 GB, free: 13.63 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.0001325/0.765, allocations: 97.77 kB / 1.087 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002796/0.7653, allocations: 44.97 kB / 1.087 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.7653, allocations: 0 / 1.087 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001169/0.7654, allocations: 21.8 kB / 1.087 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003501/0.7658, allocations: 5.125 kB / 1.087 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005584/0.7663, allocations: 211.8 kB / 1.087 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004073/0.7668, allocations: 0.6835 MB / 1.088 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.082e-05/0.7668, allocations: 10.92 kB / 1.088 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of SimCode: time 3.9e-07/0.7668, allocations: 3.938 kB / 1.088 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of Templates: time 0.002911/0.7697, allocations: 0.7003 MB / 1.089 GB, free: 12.59 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