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.00111/0.00111, allocations: 98.72 kB / 16.02 MB, free: 76 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.001557/0.001557, allocations: 184.2 kB / 16.93 MB, free: 6.891 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.526/1.526, allocations: 223.3 MB / 241 MB, free: 5.332 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.575/2.575, allocations: 437.8 MB / 0.7128 GB, free: 7.086 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005547/0.0005551, allocations: 15.98 kB / 0.8735 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7475/0.748, allocations: 153.8 MB / 1.024 GB, free: 52 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002123/0.7502, allocations: 1.231 MB / 1.025 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.000788/0.751, allocations: 407.1 kB / 1.025 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.091e-05/0.7511, allocations: 0 / 1.025 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.332e-05/0.7512, allocations: 0 / 1.025 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 9.238e-05/0.7513, allocations: 11.88 kB / 1.025 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001939/0.7515, allocations: 11.97 kB / 1.025 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 9.973e-05/0.7516, allocations: 55.73 kB / 1.025 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.7517, allocations: 15.98 kB / 1.025 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.7518, allocations: 19.92 kB / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.135e-05/0.7519, allocations: 19.92 kB / 1.025 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.16e-05/0.752, allocations: 0 / 1.025 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.353e-05/0.752, allocations: 4 kB / 1.025 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.936e-05/0.752, allocations: 7.938 kB / 1.025 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.928e-05/0.7521, allocations: 49.55 kB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 7.401e-05/0.7521, allocations: 26.06 kB / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.7522, allocations: 0 / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.345e-06/0.7522, allocations: 4 kB / 1.026 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.7522, allocations: 0 / 1.026 GB, free: 14.18 MB / 0.7794 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.0005619/0.7527, allocations: 355.3 kB / 1.026 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.7528, allocations: 8.031 kB / 1.026 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.273e-05/0.7528, allocations: 8.844 kB / 1.026 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/0.753, allocations: 176.2 kB / 1.026 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.753, allocations: 4.375 kB / 1.026 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.946e-05/0.7531, allocations: 12.31 kB / 1.026 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001943/0.7533, allocations: 57.98 kB / 1.026 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.7533, allocations: 0 / 1.026 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.7533, allocations: 0 / 1.026 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.7533, allocations: 0 / 1.026 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000167/0.7535, allocations: 51.95 kB / 1.026 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004749/0.754, allocations: 272.9 kB / 1.026 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001414/0.7541, allocations: 46.5 kB / 1.026 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.008e-05/0.7542, allocations: 28.94 kB / 1.026 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.969e-05/0.7542, allocations: 3.984 kB / 1.026 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.073e-05/0.7543, allocations: 38.5 kB / 1.027 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.473e-06/0.7543, allocations: 0 / 1.027 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003763/0.7547, allocations: 105.5 kB / 1.027 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/0.7547, allocations: 55.34 kB / 1.027 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.7549, allocations: 121.8 kB / 1.027 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.7549, allocations: 25.7 kB / 1.027 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.841e-05/0.755, allocations: 96.12 kB / 1.027 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.645e-05/0.755, allocations: 19.78 kB / 1.027 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.945e-05/0.755, allocations: 9.719 kB / 1.027 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001159/0.7552, allocations: 318.8 kB / 1.027 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.416e-05/0.7552, allocations: 19.98 kB / 1.027 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.416e-05/0.7553, allocations: 19.98 kB / 1.027 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001569/0.7555, allocations: 52.83 kB / 1.027 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.7555, allocations: 0 / 1.027 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002115/0.7557, allocations: 93.5 kB / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.7557, allocations: 8 kB / 1.027 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.7557, allocations: 0 / 1.027 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.7558, allocations: 0 / 1.027 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.7559, allocations: 11.98 kB / 1.027 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.7559, allocations: 0 / 1.027 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.504e-05/0.756, allocations: 8 kB / 1.027 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/0.756, allocations: 0 / 1.027 GB, free: 11.97 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 0.0001013/0.7561, allocations: 118.3 kB / 1.028 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.077e-05/0.7561, allocations: 7.906 kB / 1.028 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.145e-05/0.7561, allocations: 7.891 kB / 1.028 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.7562, allocations: 4 kB / 1.028 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.7562, allocations: 0 / 1.028 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.7562, allocations: 0 / 1.028 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000196/0.7564, allocations: 173.6 kB / 1.028 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.7564, allocations: 0 / 1.028 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.122e-05/0.7565, allocations: 11.98 kB / 1.028 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.7565, allocations: 4 kB / 1.028 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.7565, allocations: 4 kB / 1.028 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.7565, allocations: 0 / 1.028 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.7565, allocations: 0 / 1.028 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002597/0.7568, allocations: 179.7 kB / 1.028 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.294e-05/0.7568, allocations: 85.02 kB / 1.028 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.547e-05/0.7568, allocations: 0 / 1.028 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.21e-05/0.7569, allocations: 7.984 kB / 1.028 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.481e-05/0.757, allocations: 8.031 kB / 1.028 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.011e-06/0.757, allocations: 4 kB / 1.028 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.439e-05/0.7571, allocations: 95.2 kB / 1.028 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7571, allocations: 3.938 kB / 1.028 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002219/0.7573, allocations: 8 kB / 1.028 GB, free: 11.16 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.000132/0.7574, allocations: 103.2 kB / 1.028 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001962/0.7576, allocations: 47.97 kB / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.7576, allocations: 3.938 kB / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.41e-05/0.7577, allocations: 27.98 kB / 1.028 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002293/0.758, allocations: 7.938 kB / 1.028 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000453/0.7584, allocations: 204.2 kB / 1.029 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/0.7587, allocations: 0.6887 MB / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.856e-05/0.7588, allocations: 11.44 kB / 1.029 GB, free: 10 MB / 0.7794 GB Notification: Performance of SimCode: time 2.314e-06/0.7588, allocations: 0 / 1.029 GB, free: 10 MB / 0.7794 GB Notification: Performance of Templates: time 0.002224/0.761, allocations: 0.6879 MB / 1.03 GB, free: 9.32 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