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.01015/0.01015, allocations: 99.64 kB / 15.73 MB, free: 5.547 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.001553/0.001553, allocations: 193.5 kB / 16.67 MB, free: 5.492 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.3 MB, free: 4.188 MB / 190.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.536/2.536, allocations: 390.2 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001219, allocations: 66.2 kB / 0.9508 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.2932, allocations: 140.4 MB / 1.088 GB, free: 1.496 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.003249/0.2965, allocations: 1.507 MB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0007825/0.2973, allocations: 412.5 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.3e-05/0.2974, allocations: 0 / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.503e-05/0.2975, allocations: 11.92 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.299e-05/0.2976, allocations: 11.88 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002073/0.2978, allocations: 15.98 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001362/0.2979, allocations: 55.72 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.298, allocations: 15.95 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001132/0.2982, allocations: 23.92 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.836e-05/0.2983, allocations: 19.92 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.958e-05/0.2983, allocations: 4 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.324e-05/0.2983, allocations: 8 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.256e-05/0.2983, allocations: 11.92 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.417e-05/0.2984, allocations: 27.84 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001101/0.2985, allocations: 43.83 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2985, allocations: 0 / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of FrontEnd: time 4.679e-06/0.2985, allocations: 0 / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.51e-06/0.2985, allocations: 3.938 kB / 1.09 GB, free: 15.32 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.0006349/0.2992, allocations: 355.3 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.2992, allocations: 11.97 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.615e-05/0.2993, allocations: 12.84 kB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001523/0.2994, allocations: 176.2 kB / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.2994, allocations: 384 / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.665e-05/0.2995, allocations: 4.375 kB / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002016/0.2997, allocations: 57.98 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.2997, allocations: 0 / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.2997, allocations: 0 / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.2997, allocations: 0 / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001391/0.2999, allocations: 39.97 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004067/0.3003, allocations: 276.8 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001221/0.3004, allocations: 38.56 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.551e-05/0.3005, allocations: 24.94 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.3005, allocations: 0 / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.402e-05/0.3005, allocations: 34.56 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 8.02e-07/0.3005, allocations: 0 / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0003196/0.3009, allocations: 93.58 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.401e-05/0.3009, allocations: 51.41 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.597e-05/0.301, allocations: 125.7 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.737e-05/0.301, allocations: 25.7 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.258e-05/0.3011, allocations: 100 kB / 1.091 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.753e-05/0.3011, allocations: 7.844 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.503e-05/0.3012, allocations: 17.72 kB / 1.091 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001167/0.3013, allocations: 318.8 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001389/0.3014, allocations: 19.98 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.508e-05/0.3015, allocations: 15.98 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001256/0.3016, allocations: 48.77 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.3016, allocations: 4 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001716/0.3018, allocations: 73.58 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.3018, allocations: 4 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.3018, allocations: 3.938 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.3019, allocations: 0 / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.806e-05/0.302, allocations: 11.98 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.302, allocations: 0 / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.465e-05/0.302, allocations: 4 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.021e-05/0.3021, allocations: 7.984 kB / 1.092 GB, free: 13.17 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 9.253e-05/0.3022, allocations: 117.8 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.546e-05/0.3022, allocations: 0 / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.575e-05/0.3022, allocations: 8.234 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.3022, allocations: 0 / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.3022, allocations: 0 / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.3022, allocations: 3.984 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002509/0.3025, allocations: 177.5 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.3025, allocations: 0 / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.847e-05/0.3026, allocations: 15.94 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.407e-06/0.3026, allocations: 0 / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.3026, allocations: 7.984 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.3026, allocations: 4 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3026, allocations: 0 / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002291/0.3029, allocations: 163.4 kB / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.141e-05/0.3029, allocations: 93 kB / 1.092 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.357e-05/0.3029, allocations: 0 / 1.092 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.033e-05/0.303, allocations: 4 kB / 1.092 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.44e-05/0.3031, allocations: 0 / 1.092 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.347e-06/0.3031, allocations: 3.984 kB / 1.092 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.627e-05/0.3032, allocations: 95.28 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3032, allocations: 0 / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002241/0.3034, allocations: 7.984 kB / 1.093 GB, free: 12.38 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 0.0001127/0.3035, allocations: 107.2 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002562/0.3038, allocations: 39.97 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.3038, allocations: 0 / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.61e-05/0.3039, allocations: 19.98 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003751/0.3043, allocations: 9.906 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004324/0.3047, allocations: 168.3 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003184/0.305, allocations: 0.6885 MB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.957e-05/0.3051, allocations: 0 / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.019e-05/0.3051, allocations: 7.438 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.3051, allocations: 0 / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of Templates: time 0.002696/0.3078, allocations: 473.1 kB / 1.094 GB, free: 10.84 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