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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001143/0.001143, allocations: 104 kB / 16.35 MB, free: 5.824 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.001089/0.001089, allocations: 191.2 kB / 17.29 MB, free: 5.48 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.334/1.334, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.432/2.432, allocations: 442.6 MB / 0.7165 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001282, allocations: 62.78 kB / 0.8773 GB, free: 10.92 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2919/0.2932, allocations: 153 MB / 1.027 GB, free: 1.996 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.003042/0.2963, allocations: 1.513 MB / 1.028 GB, free: 488 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00066/0.297, allocations: 418.9 kB / 1.029 GB, free: 64 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.413e-05/0.297, allocations: 0 / 1.029 GB, free: 64 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.342e-05/0.2971, allocations: 15.86 kB / 1.029 GB, free: 48 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.964e-05/0.2971, allocations: 11.86 kB / 1.029 GB, free: 36 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000163/0.2973, allocations: 15.98 kB / 1.029 GB, free: 20 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.000111/0.2974, allocations: 55.83 kB / 1.029 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.2976, allocations: 12 kB / 1.029 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.462e-05/0.2977, allocations: 23.8 kB / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.447e-05/0.2977, allocations: 19.92 kB / 1.029 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.848e-05/0.2978, allocations: 4 kB / 1.029 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.444e-05/0.2978, allocations: 7.938 kB / 1.029 GB, free: 15.9 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.148e-05/0.2978, allocations: 11.92 kB / 1.029 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.871e-05/0.2979, allocations: 23.86 kB / 1.029 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.979e-05/0.298, allocations: 43.88 kB / 1.029 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.298, allocations: 3.938 kB / 1.029 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.362e-06/0.298, allocations: 0 / 1.029 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.99e-06/0.298, allocations: 4 kB / 1.029 GB, free: 15.81 MB / 0.8106 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.0005331/0.2985, allocations: 363.2 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.2986, allocations: 8.031 kB / 1.029 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.332e-05/0.2986, allocations: 8.844 kB / 1.029 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/0.2988, allocations: 168.4 kB / 1.029 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.909e-06/0.2988, allocations: 384 / 1.029 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.622e-05/0.2988, allocations: 4.375 kB / 1.029 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001631/0.299, allocations: 61.98 kB / 1.029 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.299, allocations: 3.984 kB / 1.029 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.299, allocations: 0 / 1.029 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.299, allocations: 3.938 kB / 1.029 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001205/0.2991, allocations: 35.97 kB / 1.029 GB, free: 15.08 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003792/0.2995, allocations: 284.8 kB / 1.03 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001313/0.2997, allocations: 38.56 kB / 1.03 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.313e-05/0.2997, allocations: 24.94 kB / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.959e-05/0.2998, allocations: 0 / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.066e-05/0.2998, allocations: 34.5 kB / 1.03 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 8.51e-07/0.2998, allocations: 0 / 1.03 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0002941/0.3001, allocations: 93.64 kB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.236e-05/0.3001, allocations: 51.41 kB / 1.03 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.936e-05/0.3003, allocations: 117.8 kB / 1.03 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.425e-05/0.3003, allocations: 25.7 kB / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.789e-05/0.3003, allocations: 96.03 kB / 1.03 GB, free: 14.22 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.956e-05/0.3004, allocations: 7.906 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.253e-05/0.3004, allocations: 13.72 kB / 1.03 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.3005, allocations: 322.8 kB / 1.031 GB, free: 13.87 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.373e-05/0.3006, allocations: 19.98 kB / 1.031 GB, free: 13.85 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.564e-05/0.3006, allocations: 23.86 kB / 1.031 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001208/0.3008, allocations: 44.77 kB / 1.031 GB, free: 13.78 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.3008, allocations: 0 / 1.031 GB, free: 13.78 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001593/0.3009, allocations: 73.58 kB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.301, allocations: 4 kB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.301, allocations: 4 kB / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.301, allocations: 0 / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.925e-05/0.3011, allocations: 11.98 kB / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.3011, allocations: 0 / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.844e-05/0.3012, allocations: 4 kB / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.176e-05/0.3012, allocations: 3.984 kB / 1.031 GB, free: 13.67 MB / 0.8106 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.426e-05/0.3013, allocations: 121.7 kB / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.48e-05/0.3013, allocations: 0 / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.98e-05/0.3013, allocations: 15.91 kB / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-06/0.3013, allocations: 0 / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.3014, allocations: 0 / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.3014, allocations: 0 / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001848/0.3015, allocations: 173.6 kB / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3016, allocations: 0 / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.754e-05/0.3016, allocations: 8 kB / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.3016, allocations: 0 / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.3017, allocations: 4.312 kB / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.3017, allocations: 4 kB / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3017, allocations: 0 / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002035/0.3019, allocations: 171.4 kB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.073e-05/0.302, allocations: 92.94 kB / 1.031 GB, free: 13 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.348e-05/0.302, allocations: 0 / 1.031 GB, free: 13 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.522e-05/0.3021, allocations: 4 kB / 1.031 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.685e-05/0.3021, allocations: 7.938 kB / 1.031 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.624e-06/0.3021, allocations: 7.984 kB / 1.031 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.084e-05/0.3022, allocations: 95.28 kB / 1.031 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3022, allocations: 0 / 1.031 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000227/0.3024, allocations: 4 kB / 1.031 GB, free: 12.88 MB / 0.8106 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.0001149/0.3025, allocations: 103.2 kB / 1.031 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001758/0.3027, allocations: 43.91 kB / 1.032 GB, free: 12.72 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3027, allocations: 0 / 1.032 GB, free: 12.72 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 6.76e-05/0.3028, allocations: 23.98 kB / 1.032 GB, free: 12.7 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002088/0.303, allocations: 8.641 kB / 1.032 GB, free: 12.69 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003679/0.3034, allocations: 155.5 kB / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002775/0.3037, allocations: 0.6807 MB / 1.032 GB, free: 11.81 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.794e-05/0.3037, allocations: 7.984 kB / 1.032 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.85e-05/0.3038, allocations: 15.38 kB / 1.032 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of SimCode: time 2.51e-07/0.3038, allocations: 0 / 1.032 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of Templates: time 0.00243/0.3062, allocations: 462.6 kB / 1.033 GB, free: 11.34 MB / 0.8106 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 -s gbode -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/jenkins1/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