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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.00709/0.00709, allocations: 100.9 kB / 15.73 MB, free: 6.051 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.001338/0.001338, allocations: 199.8 kB / 16.68 MB, free: 5.965 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.397/1.397, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.335/2.335, allocations: 390.2 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 59.91 kB / 0.9508 GB, free: 7.648 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9048/0.9061, allocations: 140.4 MB / 1.088 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002422/0.9085, allocations: 1.501 MB / 1.089 GB, free: 4.48 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0005924/0.9091, allocations: 420.1 kB / 1.09 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.262e-05/0.9092, allocations: 0 / 1.09 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.938e-05/0.9092, allocations: 5.109 kB / 1.09 GB, free: 4.188 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.853e-05/0.9093, allocations: 15.23 kB / 1.09 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000176/0.9095, allocations: 11.83 kB / 1.09 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.033e-05/0.9096, allocations: 54.02 kB / 1.09 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001106/0.9097, allocations: 11.84 kB / 1.09 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.665e-05/0.9098, allocations: 21 kB / 1.09 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.375e-05/0.9099, allocations: 27.83 kB / 1.09 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.895e-05/0.9099, allocations: 8.281 kB / 1.09 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.228e-05/0.9099, allocations: 2.656 kB / 1.09 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.366e-05/0.91, allocations: 8.141 kB / 1.09 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.578e-05/0.91, allocations: 23.17 kB / 1.09 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001026/0.9101, allocations: 52.7 kB / 1.09 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.9101, allocations: 0 / 1.09 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.423e-06/0.9101, allocations: 0 / 1.09 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.971e-06/0.9101, allocations: 1.797 kB / 1.09 GB, free: 4.066 MB / 0.8575 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.0004426/0.9106, allocations: 358.4 kB / 1.09 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.9106, allocations: 10.52 kB / 1.09 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.19e-05/0.9107, allocations: 7 kB / 1.09 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001011/0.9108, allocations: 178.4 kB / 1.091 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.818e-06/0.9108, allocations: 9.656 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.452e-05/0.9108, allocations: 1.219 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001892/0.911, allocations: 59.84 kB / 1.091 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.911, allocations: 1.094 kB / 1.091 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.911, allocations: 4 kB / 1.091 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.483e-06/0.911, allocations: 1.062 kB / 1.091 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001293/0.9112, allocations: 31.06 kB / 1.091 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003248/0.9115, allocations: 278.1 kB / 1.091 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001137/0.9116, allocations: 42.58 kB / 1.091 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.338e-05/0.9117, allocations: 23.23 kB / 1.091 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.299e-05/0.9117, allocations: 0.75 kB / 1.091 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.338e-05/0.9117, allocations: 36.41 kB / 1.091 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.9118, allocations: 4 kB / 1.091 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0003102/0.9121, allocations: 85.88 kB / 1.091 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.169e-05/0.9121, allocations: 53.09 kB / 1.091 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.374e-05/0.9122, allocations: 121.7 kB / 1.091 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.544e-06/0.9122, allocations: 25.7 kB / 1.091 GB, free: 2.809 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.734e-05/0.9122, allocations: 96.91 kB / 1.091 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.015e-05/0.9123, allocations: 9.938 kB / 1.091 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.327e-05/0.9123, allocations: 17.92 kB / 1.091 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.817e-05/0.9123, allocations: 322.5 kB / 1.092 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.868e-05/0.9124, allocations: 17.11 kB / 1.092 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.784e-05/0.9125, allocations: 16.92 kB / 1.092 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001235/0.9126, allocations: 37.3 kB / 1.092 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.9126, allocations: 1.031 kB / 1.092 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001572/0.9128, allocations: 85.12 kB / 1.092 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.9128, allocations: 5.734 kB / 1.092 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.9128, allocations: 0 / 1.092 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.9128, allocations: 1.312 kB / 1.092 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.96e-05/0.9129, allocations: 12.59 kB / 1.092 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.9129, allocations: 1.125 kB / 1.092 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.042e-05/0.913, allocations: 4.656 kB / 1.092 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.913, allocations: 5.594 kB / 1.092 GB, free: 2.285 MB / 0.8575 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 5.256e-05/0.9131, allocations: 117.2 kB / 1.092 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.462e-05/0.9131, allocations: 2.953 kB / 1.092 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.442e-05/0.9131, allocations: 9.781 kB / 1.092 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.9131, allocations: 1.219 kB / 1.092 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.9131, allocations: 0.7969 kB / 1.092 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.9132, allocations: 1.062 kB / 1.092 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001286/0.9133, allocations: 171.9 kB / 1.092 GB, free: 1.949 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.9133, allocations: 0.7031 kB / 1.092 GB, free: 1.949 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.897e-05/0.9134, allocations: 9.359 kB / 1.092 GB, free: 1.949 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.9134, allocations: 4.781 kB / 1.092 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-06/0.9134, allocations: 0.6094 kB / 1.092 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.9134, allocations: 1.578 kB / 1.092 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.9134, allocations: 4.656 kB / 1.092 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001906/0.9136, allocations: 172.5 kB / 1.092 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.997e-05/0.9136, allocations: 83.53 kB / 1.092 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.477e-05/0.9136, allocations: 0.5938 kB / 1.092 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.862e-05/0.9137, allocations: 13.58 kB / 1.092 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.973e-05/0.9138, allocations: 2.922 kB / 1.092 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.69e-06/0.9138, allocations: 1.391 kB / 1.092 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.854e-05/0.9138, allocations: 91.7 kB / 1.093 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9138, allocations: 0.7188 kB / 1.093 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002138/0.914, allocations: 6.375 kB / 1.093 GB, free: 1.609 MB / 0.8575 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 9.337e-05/0.9141, allocations: 103.2 kB / 1.093 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001857/0.9143, allocations: 43.39 kB / 1.093 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.9143, allocations: 0.75 kB / 1.093 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 7.438e-05/0.9144, allocations: 20.95 kB / 1.093 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002037/0.9146, allocations: 10.44 kB / 1.093 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003602/0.915, allocations: 171.7 kB / 1.093 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001036/0.9151, allocations: 0.6862 MB / 1.094 GB, free: 0.6602 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.268e-05/0.9152, allocations: 2.219 kB / 1.094 GB, free: 0.6602 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.692e-05/0.9152, allocations: 10.09 kB / 1.094 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.9152, allocations: 0 / 1.094 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of Templates: time 0.002455/0.9177, allocations: 467 kB / 1.094 GB, free: 0.5742 MB / 0.8575 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches