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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.00706/0.00706, allocations: 104 kB / 15.73 MB, free: 6.043 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.001806/0.001806, allocations: 189.6 kB / 16.67 MB, free: 5.973 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.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.869/2.869, allocations: 461.9 MB / 0.7348 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 67.88 kB / 1.054 GB, free: 7.105 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3245/0.3259, allocations: 157.4 MB / 1.208 GB, free: 9.605 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.003122/0.329, allocations: 1.499 MB / 1.209 GB, free: 8.094 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0008002/0.3299, allocations: 422.8 kB / 1.21 GB, free: 7.676 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.784e-05/0.3299, allocations: 0 / 1.21 GB, free: 7.676 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.256e-05/0.33, allocations: 3.938 kB / 1.21 GB, free: 7.672 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.191e-05/0.33, allocations: 11.86 kB / 1.21 GB, free: 7.66 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001579/0.3302, allocations: 15.98 kB / 1.21 GB, free: 7.645 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.357e-05/0.3303, allocations: 55.72 kB / 1.21 GB, free: 7.59 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.3304, allocations: 23.98 kB / 1.21 GB, free: 7.566 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001067/0.3305, allocations: 23.86 kB / 1.21 GB, free: 7.543 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.907e-05/0.3306, allocations: 19.92 kB / 1.21 GB, free: 7.523 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.635e-05/0.3306, allocations: 4 kB / 1.21 GB, free: 7.52 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 9.788e-06/0.3307, allocations: 0 / 1.21 GB, free: 7.52 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.111e-05/0.3307, allocations: 15.92 kB / 1.21 GB, free: 7.504 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.792e-05/0.3307, allocations: 19.86 kB / 1.21 GB, free: 7.484 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 9.362e-05/0.3308, allocations: 35.89 kB / 1.21 GB, free: 7.449 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.3308, allocations: 3.984 kB / 1.21 GB, free: 7.445 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.734e-06/0.3308, allocations: 4 kB / 1.21 GB, free: 7.441 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5e-06/0.3308, allocations: 0 / 1.21 GB, free: 7.441 MB / 0.9669 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.0006517/0.3315, allocations: 367.2 kB / 1.21 GB, free: 7.035 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.3316, allocations: 8.625 kB / 1.21 GB, free: 7.027 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.683e-05/0.3316, allocations: 8.844 kB / 1.21 GB, free: 7.02 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001463/0.3318, allocations: 172.2 kB / 1.21 GB, free: 6.812 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.806e-06/0.3318, allocations: 4.375 kB / 1.21 GB, free: 6.809 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.417e-05/0.3318, allocations: 384 / 1.21 GB, free: 6.809 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001933/0.332, allocations: 65.98 kB / 1.21 GB, free: 6.738 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.332, allocations: 3.938 kB / 1.21 GB, free: 6.734 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.332, allocations: 0 / 1.21 GB, free: 6.734 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.332, allocations: 0 / 1.21 GB, free: 6.734 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001299/0.3322, allocations: 35.97 kB / 1.21 GB, free: 6.699 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004199/0.3326, allocations: 276.8 kB / 1.211 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001235/0.3327, allocations: 42.56 kB / 1.211 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.623e-05/0.3328, allocations: 28.88 kB / 1.211 GB, free: 6.297 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.569e-05/0.3328, allocations: 0 / 1.211 GB, free: 6.297 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.06e-05/0.3329, allocations: 30.56 kB / 1.211 GB, free: 6.258 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.3329, allocations: 0 / 1.211 GB, free: 6.258 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.000322/0.3332, allocations: 97.69 kB / 1.211 GB, free: 6.156 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.9e-05/0.3332, allocations: 55.39 kB / 1.211 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.352e-05/0.3333, allocations: 113.8 kB / 1.211 GB, free: 5.969 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.325e-05/0.3333, allocations: 29.7 kB / 1.211 GB, free: 5.934 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.379e-05/0.3334, allocations: 84.14 kB / 1.211 GB, free: 5.848 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.321e-05/0.3334, allocations: 16.39 kB / 1.211 GB, free: 5.832 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.482e-05/0.3335, allocations: 9.719 kB / 1.211 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001035/0.3336, allocations: 326.7 kB / 1.212 GB, free: 5.488 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.592e-05/0.3337, allocations: 19.92 kB / 1.212 GB, free: 5.469 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.619e-05/0.3337, allocations: 19.98 kB / 1.212 GB, free: 5.449 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001309/0.3339, allocations: 40.83 kB / 1.212 GB, free: 5.406 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.3339, allocations: 0 / 1.212 GB, free: 5.406 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001637/0.334, allocations: 73.56 kB / 1.212 GB, free: 5.328 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.3341, allocations: 4 kB / 1.212 GB, free: 5.324 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.3341, allocations: 8 kB / 1.212 GB, free: 5.316 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.3341, allocations: 0 / 1.212 GB, free: 5.316 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.728e-05/0.3342, allocations: 7.984 kB / 1.212 GB, free: 5.309 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.3342, allocations: 4 kB / 1.212 GB, free: 5.305 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.214e-05/0.3343, allocations: 4 kB / 1.212 GB, free: 5.301 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.769e-06/0.3343, allocations: 11.88 kB / 1.212 GB, free: 5.289 MB / 0.9669 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.0001292/0.3344, allocations: 113.8 kB / 1.212 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.77e-05/0.3344, allocations: 7.906 kB / 1.212 GB, free: 5.16 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.737e-05/0.3345, allocations: 15.89 kB / 1.212 GB, free: 5.137 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.3345, allocations: 0 / 1.212 GB, free: 5.137 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3345, allocations: 0 / 1.212 GB, free: 5.137 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.3345, allocations: 4 kB / 1.212 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00017/0.3347, allocations: 169.6 kB / 1.212 GB, free: 4.918 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3347, allocations: 0 / 1.212 GB, free: 4.918 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.203e-05/0.3348, allocations: 11.98 kB / 1.212 GB, free: 4.906 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.3348, allocations: 0 / 1.212 GB, free: 4.906 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.3348, allocations: 0 / 1.212 GB, free: 4.906 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.3348, allocations: 3.984 kB / 1.212 GB, free: 4.902 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3348, allocations: 4 kB / 1.212 GB, free: 4.898 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002259/0.335, allocations: 167.5 kB / 1.212 GB, free: 4.719 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.569e-05/0.3351, allocations: 88.89 kB / 1.212 GB, free: 4.613 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.344e-05/0.3351, allocations: 0 / 1.212 GB, free: 4.613 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.268e-05/0.3352, allocations: 7.984 kB / 1.212 GB, free: 4.605 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.937e-05/0.3352, allocations: 8 kB / 1.212 GB, free: 4.598 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.03e-06/0.3352, allocations: 0 / 1.212 GB, free: 4.598 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.89e-05/0.3353, allocations: 95.27 kB / 1.212 GB, free: 4.504 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3353, allocations: 0 / 1.212 GB, free: 4.504 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002292/0.3355, allocations: 8 kB / 1.212 GB, free: 4.496 MB / 0.9669 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.0001061/0.3356, allocations: 95.25 kB / 1.212 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001797/0.3358, allocations: 43.95 kB / 1.213 GB, free: 4.352 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3358, allocations: 0 / 1.213 GB, free: 4.352 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 6.84e-05/0.3359, allocations: 27.92 kB / 1.213 GB, free: 4.324 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000211/0.3361, allocations: 11.41 kB / 1.213 GB, free: 4.316 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003604/0.3365, allocations: 152.7 kB / 1.213 GB, free: 4.141 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002493/0.3368, allocations: 0.6922 MB / 1.213 GB, free: 3.422 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.533e-05/0.3368, allocations: 7.938 kB / 1.213 GB, free: 3.414 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.13e-05/0.3368, allocations: 15.42 kB / 1.213 GB, free: 3.398 MB / 0.9669 GB Notification: Performance of SimCode: time 3.21e-07/0.3368, allocations: 3.938 kB / 1.213 GB, free: 3.395 MB / 0.9669 GB Notification: Performance of Templates: time 0.002514/0.3394, allocations: 463.1 kB / 1.214 GB, free: 2.953 MB / 0.9669 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","/var/lib/jenkins/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