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: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005814/0.005814, allocations: 101.1 kB / 15.73 MB, free: 5.996 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.001333/0.001332, allocations: 195.9 kB / 16.68 MB, free: 5.918 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 4.137 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.509/2.509, allocations: 390.3 MB / 0.6648 GB, free: 188 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 62.75 kB / 0.9504 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3044/0.3057, allocations: 140.4 MB / 1.087 GB, free: 1.988 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.00314/0.3089, allocations: 1.501 MB / 1.089 GB, free: 484 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0007605/0.3096, allocations: 412.5 kB / 1.089 GB, free: 68 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.623e-05/0.3097, allocations: 0 / 1.089 GB, free: 68 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.669e-05/0.3098, allocations: 7.938 kB / 1.089 GB, free: 60 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.166e-05/0.3099, allocations: 11.86 kB / 1.089 GB, free: 48 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001949/0.3101, allocations: 23.91 kB / 1.089 GB, free: 24 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001121/0.3102, allocations: 47.8 kB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001106/0.3103, allocations: 19.97 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001085/0.3104, allocations: 23.86 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.739e-05/0.3105, allocations: 23.91 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.253e-05/0.3105, allocations: 4 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.295e-05/0.3106, allocations: 4 kB / 1.089 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.2e-05/0.3106, allocations: 7.938 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.858e-05/0.3106, allocations: 23.86 kB / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001044/0.3107, allocations: 46.69 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/0.3108, allocations: 8 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3108, allocations: 0 / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.3108, allocations: 0 / 1.09 GB, free: 15.82 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.0005468/0.3113, allocations: 356.1 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.3114, allocations: 8.031 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.942e-05/0.3114, allocations: 38.69 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.332e-05/0.3115, allocations: 4.844 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001332/0.3116, allocations: 172.2 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.3116, allocations: 12.38 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.059e-05/0.3116, allocations: 384 / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001745/0.3118, allocations: 57.73 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.3118, allocations: 3.984 kB / 1.09 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.3118, allocations: 8 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.3119, allocations: 3.938 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001319/0.312, allocations: 31.97 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003969/0.3124, allocations: 276.9 kB / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001241/0.3125, allocations: 46.5 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.257e-05/0.3126, allocations: 20.94 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.69e-05/0.3126, allocations: 0 / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.685e-05/0.3127, allocations: 34.56 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.3127, allocations: 4 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0003146/0.313, allocations: 81.56 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.313, allocations: 55.41 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.546e-05/0.3131, allocations: 125.7 kB / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.345e-05/0.3132, allocations: 25.7 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.152e-05/0.3132, allocations: 92.14 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.056e-05/0.3133, allocations: 7.891 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.593e-05/0.3133, allocations: 21.7 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001138/0.3134, allocations: 318.8 kB / 1.091 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.102e-05/0.3135, allocations: 19.98 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.671e-05/0.3136, allocations: 15.98 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001311/0.3137, allocations: 36.83 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3137, allocations: 0 / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001698/0.3139, allocations: 77.58 kB / 1.091 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.3139, allocations: 7.984 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.3139, allocations: 7.938 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.3139, allocations: 3.938 kB / 1.091 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.896e-05/0.314, allocations: 8 kB / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.3141, allocations: 0 / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.222e-05/0.3141, allocations: 7.984 kB / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.3141, allocations: 4 kB / 1.091 GB, free: 13.63 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 8.328e-05/0.3142, allocations: 121.7 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.638e-05/0.3142, allocations: 4 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.832e-05/0.3143, allocations: 7.906 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.3143, allocations: 3.984 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.3143, allocations: 0 / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.594e-06/0.3143, allocations: 0 / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001732/0.3145, allocations: 177.5 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3145, allocations: 0 / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.856e-05/0.3146, allocations: 7.984 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.3146, allocations: 4 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.3146, allocations: 4 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3146, allocations: 0 / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3146, allocations: 0 / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000224/0.3148, allocations: 175.7 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.027e-05/0.3149, allocations: 84.95 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.524e-05/0.3149, allocations: 0 / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.523e-05/0.315, allocations: 11.98 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.87e-05/0.315, allocations: 4.031 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.592e-06/0.315, allocations: 4 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.64e-05/0.3151, allocations: 95.64 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3151, allocations: 0 / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002228/0.3153, allocations: 8 kB / 1.092 GB, free: 12.83 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.0005135/0.3159, allocations: 0.7051 MB / 1.093 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001835/0.3161, allocations: 39.97 kB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3161, allocations: 0 / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 7.083e-05/0.3161, allocations: 19.98 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002203/0.3164, allocations: 4 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005453/0.3169, allocations: 205.8 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002597/0.3172, allocations: 0.6807 MB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.565e-05/0.3172, allocations: 4 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.373e-05/0.3173, allocations: 19.42 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.3173, allocations: 0 / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01874/0.336, allocations: 1.5 MB / 1.095 GB, free: 9.711 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.416/7.752, allocations: 15.53 kB / 1.095 GB, free: 9.695 MB / 0.8575 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 Buildings_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","/var/lib/jenkins1/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