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.001349/0.001349, allocations: 108.9 kB / 16.41 MB, free: 6.449 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.00127/0.00127, allocations: 189.2 kB / 17.34 MB, free: 5.703 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 / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.78/2.78, allocations: 474.5 MB / 0.7477 GB, free: 14.07 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002666/0.002666, allocations: 67.89 kB / 1.073 GB, free: 7.215 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7996/0.8022, allocations: 160.3 MB / 1.229 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002574/0.8049, allocations: 1.498 MB / 1.231 GB, free: 9.461 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0006757/0.8055, allocations: 423 kB / 1.231 GB, free: 9.043 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.649e-05/0.8056, allocations: 0 / 1.231 GB, free: 9.043 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 2.59e-05/0.8056, allocations: 3.938 kB / 1.231 GB, free: 9.039 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 5.561e-05/0.8057, allocations: 11.86 kB / 1.231 GB, free: 9.027 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001568/0.8059, allocations: 19.92 kB / 1.231 GB, free: 9.008 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 8.935e-05/0.806, allocations: 51.78 kB / 1.231 GB, free: 8.957 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 9.925e-05/0.8061, allocations: 11.98 kB / 1.231 GB, free: 8.945 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 8.692e-05/0.8061, allocations: 31.86 kB / 1.231 GB, free: 8.914 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.442e-05/0.8062, allocations: 19.92 kB / 1.231 GB, free: 8.895 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.662e-05/0.8063, allocations: 4 kB / 1.231 GB, free: 8.891 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 9.247e-06/0.8063, allocations: 0 / 1.231 GB, free: 8.891 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.856e-05/0.8063, allocations: 15.92 kB / 1.231 GB, free: 8.875 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.341e-05/0.8064, allocations: 15.88 kB / 1.231 GB, free: 8.859 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 9.604e-05/0.8065, allocations: 47.38 kB / 1.231 GB, free: 8.816 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.8065, allocations: 0 / 1.231 GB, free: 8.816 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.243e-06/0.8065, allocations: 0 / 1.231 GB, free: 8.816 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.518e-06/0.8065, allocations: 0 / 1.231 GB, free: 8.816 MB / 0.9512 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.0005085/0.807, allocations: 372.2 kB / 1.232 GB, free: 8.406 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.807, allocations: 8.031 kB / 1.232 GB, free: 8.398 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.561e-05/0.8071, allocations: 16.83 kB / 1.232 GB, free: 8.383 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001479/0.8072, allocations: 180.2 kB / 1.232 GB, free: 8.168 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.135e-05/0.8073, allocations: 4.359 kB / 1.232 GB, free: 8.164 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.058e-05/0.8073, allocations: 384 / 1.232 GB, free: 8.164 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001668/0.8074, allocations: 69.92 kB / 1.232 GB, free: 8.09 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.8075, allocations: 0 / 1.232 GB, free: 8.09 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.217e-06/0.8075, allocations: 4 kB / 1.232 GB, free: 8.086 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.8075, allocations: 0 / 1.232 GB, free: 8.086 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001306/0.8076, allocations: 35.97 kB / 1.232 GB, free: 8.051 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003785/0.808, allocations: 268.9 kB / 1.232 GB, free: 7.738 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001261/0.8081, allocations: 42.5 kB / 1.232 GB, free: 7.688 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.54e-05/0.8082, allocations: 30.45 kB / 1.232 GB, free: 7.656 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.742e-05/0.8082, allocations: 3.984 kB / 1.232 GB, free: 7.652 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.604e-05/0.8083, allocations: 30.56 kB / 1.232 GB, free: 7.613 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.8083, allocations: 0 / 1.232 GB, free: 7.613 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0003131/0.8086, allocations: 93.59 kB / 1.232 GB, free: 7.516 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.789e-05/0.8087, allocations: 55.34 kB / 1.232 GB, free: 7.449 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.753e-05/0.8088, allocations: 121.8 kB / 1.233 GB, free: 7.32 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.8088, allocations: 25.7 kB / 1.233 GB, free: 7.289 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.639e-05/0.8088, allocations: 84.14 kB / 1.233 GB, free: 7.203 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.025e-05/0.8089, allocations: 15.94 kB / 1.233 GB, free: 7.188 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.29e-05/0.8089, allocations: 9.719 kB / 1.233 GB, free: 7.172 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.8091, allocations: 326.8 kB / 1.233 GB, free: 6.844 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.339e-05/0.8091, allocations: 8 kB / 1.233 GB, free: 6.836 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.103e-05/0.8092, allocations: 23.98 kB / 1.233 GB, free: 6.812 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001241/0.8093, allocations: 40.83 kB / 1.233 GB, free: 6.77 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.8093, allocations: 0 / 1.233 GB, free: 6.77 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001798/0.8095, allocations: 73.61 kB / 1.233 GB, free: 6.691 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.8095, allocations: 8 kB / 1.233 GB, free: 6.684 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.487e-06/0.8095, allocations: 3.938 kB / 1.233 GB, free: 6.68 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.8096, allocations: 0 / 1.233 GB, free: 6.68 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.294e-05/0.8097, allocations: 15.98 kB / 1.233 GB, free: 6.664 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.8097, allocations: 3.938 kB / 1.233 GB, free: 6.66 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.627e-05/0.8097, allocations: 0 / 1.233 GB, free: 6.66 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.468e-06/0.8097, allocations: 7.984 kB / 1.233 GB, free: 6.652 MB / 0.9512 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 8.161e-05/0.8098, allocations: 117.7 kB / 1.233 GB, free: 6.527 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.963e-05/0.8099, allocations: 11.94 kB / 1.233 GB, free: 6.516 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.189e-05/0.8099, allocations: 7.906 kB / 1.233 GB, free: 6.5 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.8099, allocations: 4 kB / 1.233 GB, free: 6.496 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.8099, allocations: 4 kB / 1.233 GB, free: 6.492 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.8099, allocations: 336 / 1.233 GB, free: 6.492 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002688/0.8102, allocations: 173.5 kB / 1.233 GB, free: 6.273 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.8102, allocations: 3.938 kB / 1.233 GB, free: 6.27 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.947e-05/0.8103, allocations: 11.98 kB / 1.233 GB, free: 6.258 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.8103, allocations: 3.984 kB / 1.233 GB, free: 6.254 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/0.8104, allocations: 4 kB / 1.233 GB, free: 6.25 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.8104, allocations: 0 / 1.233 GB, free: 6.25 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.8104, allocations: 0 / 1.233 GB, free: 6.25 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002897/0.8107, allocations: 179.3 kB / 1.234 GB, free: 6.059 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.008e-05/0.8107, allocations: 77.11 kB / 1.234 GB, free: 5.965 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.937e-05/0.8108, allocations: 4 kB / 1.234 GB, free: 5.961 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001195/0.8109, allocations: 3.984 kB / 1.234 GB, free: 5.957 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.885e-05/0.8109, allocations: 8 kB / 1.234 GB, free: 5.949 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-06/0.811, allocations: 0 / 1.234 GB, free: 5.949 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 7.141e-05/0.811, allocations: 91.27 kB / 1.234 GB, free: 5.859 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.61e-07/0.811, allocations: 0 / 1.234 GB, free: 5.859 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003662/0.8114, allocations: 12 kB / 1.234 GB, free: 5.848 MB / 0.9512 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.0001285/0.8115, allocations: 103.2 kB / 1.234 GB, free: 5.738 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002209/0.8118, allocations: 35.97 kB / 1.234 GB, free: 5.703 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.8118, allocations: 0 / 1.234 GB, free: 5.703 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 9.697e-05/0.8119, allocations: 27.92 kB / 1.234 GB, free: 5.676 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003428/0.8122, allocations: 3.938 kB / 1.234 GB, free: 5.672 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00047/0.8127, allocations: 176.7 kB / 1.234 GB, free: 5.473 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004516/0.8132, allocations: 0.6807 MB / 1.235 GB, free: 4.766 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.549e-05/0.8132, allocations: 7.922 kB / 1.235 GB, free: 4.758 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.515e-05/0.8133, allocations: 15.38 kB / 1.235 GB, free: 4.742 MB / 0.9512 GB Notification: Performance of SimCode: time 3e-07/0.8133, allocations: 0 / 1.235 GB, free: 4.742 MB / 0.9512 GB Notification: Performance of Templates: time 0.002933/0.8162, allocations: 470.1 kB / 1.235 GB, free: 4.289 MB / 0.9512 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 -s gbode -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