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.001462/0.001462, allocations: 108 kB / 16.36 MB, free: 6.285 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.001609/0.001609, allocations: 192.5 kB / 17.29 MB, free: 5.863 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.346/1.346, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.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.384/2.384, allocations: 437.1 MB / 0.7112 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 63.78 kB / 0.8707 GB, free: 1.449 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/0.3004, allocations: 151.6 MB / 1.019 GB, free: 9.863 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.00263/0.3031, allocations: 1.5 MB / 1.02 GB, free: 8.344 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0007281/0.3038, allocations: 424.4 kB / 1.021 GB, free: 7.926 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.624e-05/0.3039, allocations: 0 / 1.021 GB, free: 7.926 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.026e-05/0.3039, allocations: 3.938 kB / 1.021 GB, free: 7.922 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.006e-05/0.304, allocations: 15.88 kB / 1.021 GB, free: 7.906 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001506/0.3042, allocations: 15.97 kB / 1.021 GB, free: 7.891 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 9.452e-05/0.3043, allocations: 59.72 kB / 1.021 GB, free: 7.832 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.3044, allocations: 15.92 kB / 1.021 GB, free: 7.816 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 8.567e-05/0.3045, allocations: 19.92 kB / 1.021 GB, free: 7.797 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 7.51e-05/0.3045, allocations: 19.92 kB / 1.021 GB, free: 7.777 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.86e-05/0.3046, allocations: 4 kB / 1.021 GB, free: 7.773 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.29e-05/0.3046, allocations: 4 kB / 1.021 GB, free: 7.77 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.246e-05/0.3046, allocations: 15.92 kB / 1.021 GB, free: 7.754 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.469e-05/0.3047, allocations: 23.86 kB / 1.021 GB, free: 7.73 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 8.777e-05/0.3047, allocations: 35.89 kB / 1.021 GB, free: 7.695 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.3048, allocations: 4 kB / 1.021 GB, free: 7.691 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.573e-06/0.3048, allocations: 0 / 1.021 GB, free: 7.691 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.3048, allocations: 0 / 1.021 GB, free: 7.691 MB / 0.795 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.0004772/0.3053, allocations: 363.2 kB / 1.021 GB, free: 7.289 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.3053, allocations: 8.031 kB / 1.021 GB, free: 7.281 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.881e-05/0.3053, allocations: 4.938 kB / 1.021 GB, free: 7.277 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001866/0.3055, allocations: 180.2 kB / 1.021 GB, free: 7.062 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.3055, allocations: 4.359 kB / 1.021 GB, free: 7.059 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.407e-05/0.3056, allocations: 4.375 kB / 1.021 GB, free: 7.055 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001683/0.3057, allocations: 57.98 kB / 1.021 GB, free: 6.992 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.3057, allocations: 0 / 1.021 GB, free: 6.992 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.097e-06/0.3058, allocations: 0 / 1.021 GB, free: 6.992 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.3058, allocations: 0 / 1.021 GB, free: 6.992 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001219/0.3059, allocations: 35.97 kB / 1.022 GB, free: 6.957 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004442/0.3063, allocations: 288.7 kB / 1.022 GB, free: 6.625 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001297/0.3065, allocations: 38.56 kB / 1.022 GB, free: 6.578 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.313e-05/0.3066, allocations: 24.94 kB / 1.022 GB, free: 6.551 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.755e-05/0.3066, allocations: 0 / 1.022 GB, free: 6.551 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/0.3066, allocations: 38.56 kB / 1.022 GB, free: 6.504 MB / 0.795 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.3066, allocations: 0 / 1.022 GB, free: 6.504 MB / 0.795 GB Notification: Performance of matching and sorting (n=3): time 0.0003035/0.3069, allocations: 93.58 kB / 1.022 GB, free: 6.406 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.059e-05/0.307, allocations: 51.41 kB / 1.022 GB, free: 6.344 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.234e-05/0.3071, allocations: 121.8 kB / 1.022 GB, free: 6.215 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.397e-05/0.3071, allocations: 25.7 kB / 1.022 GB, free: 6.184 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.308e-05/0.3071, allocations: 88.05 kB / 1.022 GB, free: 6.094 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.754e-05/0.3072, allocations: 15.91 kB / 1.022 GB, free: 6.078 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.319e-05/0.3072, allocations: 17.7 kB / 1.022 GB, free: 6.055 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.3073, allocations: 318.8 kB / 1.023 GB, free: 5.734 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.294e-05/0.3074, allocations: 11.98 kB / 1.023 GB, free: 5.723 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.199e-05/0.3075, allocations: 19.98 kB / 1.023 GB, free: 5.703 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001108/0.3076, allocations: 40.83 kB / 1.023 GB, free: 5.66 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.3076, allocations: 4 kB / 1.023 GB, free: 5.656 MB / 0.795 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001643/0.3077, allocations: 77.5 kB / 1.023 GB, free: 5.574 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.3078, allocations: 11.94 kB / 1.023 GB, free: 5.562 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.3078, allocations: 0 / 1.023 GB, free: 5.562 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.3078, allocations: 0 / 1.023 GB, free: 5.562 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.723e-05/0.3079, allocations: 8 kB / 1.023 GB, free: 5.555 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.3079, allocations: 7.922 kB / 1.023 GB, free: 5.547 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.865e-05/0.308, allocations: 4 kB / 1.023 GB, free: 5.543 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.308, allocations: 4 kB / 1.023 GB, free: 5.539 MB / 0.795 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 7.895e-05/0.3081, allocations: 113.8 kB / 1.023 GB, free: 5.418 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.46e-05/0.3081, allocations: 4 kB / 1.023 GB, free: 5.414 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.546e-05/0.3081, allocations: 11.89 kB / 1.023 GB, free: 5.398 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.3081, allocations: 4 kB / 1.023 GB, free: 5.395 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.3081, allocations: 0 / 1.023 GB, free: 5.395 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.3081, allocations: 0 / 1.023 GB, free: 5.395 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001696/0.3083, allocations: 169.6 kB / 1.023 GB, free: 5.18 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3083, allocations: 0 / 1.023 GB, free: 5.18 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.107e-05/0.3084, allocations: 15.98 kB / 1.023 GB, free: 5.164 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.3084, allocations: 0 / 1.023 GB, free: 5.164 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.3084, allocations: 0 / 1.023 GB, free: 5.164 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.3084, allocations: 3.938 kB / 1.023 GB, free: 5.16 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3084, allocations: 0 / 1.023 GB, free: 5.16 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002073/0.3087, allocations: 171.4 kB / 1.023 GB, free: 4.977 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.113e-05/0.3087, allocations: 88.95 kB / 1.023 GB, free: 4.871 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.387e-05/0.3087, allocations: 4 kB / 1.023 GB, free: 4.867 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.163e-05/0.3088, allocations: 3.984 kB / 1.023 GB, free: 4.863 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.893e-05/0.3089, allocations: 8 kB / 1.023 GB, free: 4.855 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-06/0.3089, allocations: 0 / 1.023 GB, free: 4.855 MB / 0.795 GB Notification: Performance of sorting global known variables: time 8.629e-05/0.309, allocations: 91.27 kB / 1.023 GB, free: 4.766 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.309, allocations: 4 kB / 1.023 GB, free: 4.762 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002312/0.3092, allocations: 4 kB / 1.023 GB, free: 4.758 MB / 0.795 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.0001073/0.3093, allocations: 99.25 kB / 1.024 GB, free: 4.648 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001762/0.3095, allocations: 56.27 kB / 1.024 GB, free: 4.594 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3095, allocations: 0 / 1.024 GB, free: 4.594 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 6.622e-05/0.3096, allocations: 19.98 kB / 1.024 GB, free: 4.574 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002096/0.3098, allocations: 4.703 kB / 1.024 GB, free: 4.57 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003503/0.3101, allocations: 152.3 kB / 1.024 GB, free: 4.398 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002882/0.3104, allocations: 0.6848 MB / 1.024 GB, free: 3.688 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.508e-05/0.3105, allocations: 11.92 kB / 1.024 GB, free: 3.676 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.946e-05/0.3105, allocations: 7.438 kB / 1.024 GB, free: 3.668 MB / 0.795 GB Notification: Performance of SimCode: time 2.4e-07/0.3105, allocations: 0 / 1.024 GB, free: 3.668 MB / 0.795 GB Notification: Performance of Templates: time 0.002419/0.313, allocations: 474.8 kB / 1.025 GB, free: 3.207 MB / 0.795 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 -s gbode -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