Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001461/0.001461, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001756/0.001756, allocations: 200.3 kB / 16.79 MB, free: 6.809 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.486/1.486, allocations: 222.9 MB / 240.5 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.634/2.634, allocations: 437 MB / 0.7106 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001445, allocations: 63.91 kB / 0.8692 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6858/0.6872, allocations: 151.6 MB / 1.017 GB, free: 2.816 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.003208/0.6905, allocations: 1.562 MB / 1.019 GB, free: 1.242 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0007746/0.6913, allocations: 415 kB / 1.019 GB, free: 0.832 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.352e-05/0.6914, allocations: 4 kB / 1.019 GB, free: 0.8281 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.396e-05/0.6914, allocations: 0 / 1.019 GB, free: 0.8281 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.619e-05/0.6915, allocations: 15.86 kB / 1.019 GB, free: 0.8125 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002451/0.6918, allocations: 15.98 kB / 1.019 GB, free: 0.7969 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.863e-05/0.6919, allocations: 51.73 kB / 1.019 GB, free: 0.7461 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001116/0.692, allocations: 11.98 kB / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001136/0.6921, allocations: 19.92 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.658e-05/0.6922, allocations: 23.91 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.181e-05/0.6923, allocations: 4 kB / 1.019 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.273e-05/0.6923, allocations: 0 / 1.019 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.191e-05/0.6923, allocations: 11.94 kB / 1.019 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.378e-05/0.6924, allocations: 19.86 kB / 1.019 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 8.301e-05/0.6924, allocations: 29.92 kB / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.6925, allocations: 0 / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.262e-06/0.6925, allocations: 0 / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.6925, allocations: 0 / 1.019 GB, free: 0.6289 MB / 0.7637 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.0005534/0.693, allocations: 359.3 kB / 1.02 GB, free: 236 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.6931, allocations: 8.031 kB / 1.02 GB, free: 228 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.892e-05/0.6931, allocations: 8.938 kB / 1.02 GB, free: 220 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001543/0.6933, allocations: 184.1 kB / 1.02 GB, free: 16 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.435e-05/0.6933, allocations: 4.375 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.49e-05/0.6933, allocations: 4.312 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001903/0.6935, allocations: 57.98 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.6935, allocations: 0 / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.167e-05/0.6936, allocations: 0 / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.6936, allocations: 0 / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001347/0.6937, allocations: 35.97 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004452/0.6942, allocations: 284.8 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001277/0.6943, allocations: 38.56 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.553e-05/0.6944, allocations: 24.94 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.79e-05/0.6944, allocations: 0 / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.52e-05/0.6944, allocations: 38.56 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.6945, allocations: 0 / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003296/0.6948, allocations: 89.58 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.222e-05/0.6948, allocations: 51.41 kB / 1.021 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.6949, allocations: 121.8 kB / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.695, allocations: 25.7 kB / 1.021 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.416e-05/0.695, allocations: 104 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.189e-05/0.6951, allocations: 11.84 kB / 1.021 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.418e-05/0.6951, allocations: 9.719 kB / 1.021 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001357/0.6952, allocations: 326.8 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.124e-05/0.6953, allocations: 15.98 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.07e-05/0.6954, allocations: 16.17 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001283/0.6955, allocations: 48.91 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.6955, allocations: 0 / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001765/0.6957, allocations: 69.61 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.6957, allocations: 8 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.6957, allocations: 0 / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.6958, allocations: 0 / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000107/0.6959, allocations: 11.98 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.201e-06/0.6959, allocations: 0 / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.591e-05/0.696, allocations: 7.906 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.323e-05/0.696, allocations: 7.984 kB / 1.021 GB, free: 14.47 MB / 0.7794 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.656e-05/0.6961, allocations: 114.3 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.852e-05/0.6961, allocations: 4 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.668e-05/0.6961, allocations: 7.906 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.6961, allocations: 0 / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.6962, allocations: 4 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.6962, allocations: 0 / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001783/0.6963, allocations: 173.6 kB / 1.022 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.6964, allocations: 4 kB / 1.022 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.314e-05/0.6964, allocations: 8 kB / 1.022 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.6964, allocations: 0 / 1.022 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.6965, allocations: 7.922 kB / 1.022 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.6965, allocations: 0 / 1.022 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.6965, allocations: 0 / 1.022 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002312/0.6967, allocations: 171.3 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.26e-05/0.6968, allocations: 93 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.669e-05/0.6968, allocations: 4 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.923e-05/0.6969, allocations: 0 / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.764e-05/0.6969, allocations: 7.984 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.109e-06/0.6969, allocations: 0 / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.257e-05/0.697, allocations: 95.2 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.697, allocations: 0 / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002247/0.6972, allocations: 8 kB / 1.022 GB, free: 13.69 MB / 0.7794 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.0001227/0.6974, allocations: 103.2 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001807/0.6975, allocations: 39.91 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.6976, allocations: 0 / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.004e-05/0.6976, allocations: 23.98 kB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002264/0.6979, allocations: 4.688 kB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004337/0.6983, allocations: 203.7 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002663/0.6986, allocations: 0.6848 MB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.677e-05/0.6986, allocations: 11.44 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of SimCode: time 3.31e-07/0.6986, allocations: 0 / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of Templates: time 0.002163/0.7008, allocations: 0.6999 MB / 1.024 GB, free: 11.86 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile (rm -f Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & ./Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches