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.004915/0.004915, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001147/0.001147, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.236/1.236, allocations: 222.9 MB / 240.4 MB, free: 4.195 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.122/2.122, allocations: 390.2 MB / 0.6648 GB, free: 176 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 59.09 kB / 0.9504 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2273/0.2286, allocations: 140.4 MB / 1.087 GB, free: 2.027 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.00233/0.231, allocations: 1.503 MB / 1.089 GB, free: 0.5117 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0005607/0.2316, allocations: 412.4 kB / 1.089 GB, free: 108 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.216e-05/0.2316, allocations: 4 kB / 1.089 GB, free: 104 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.43e-05/0.2316, allocations: 3.938 kB / 1.089 GB, free: 100 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.027e-05/0.2317, allocations: 15.86 kB / 1.089 GB, free: 84 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001371/0.2318, allocations: 19.97 kB / 1.089 GB, free: 64 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 7.626e-05/0.2319, allocations: 55.72 kB / 1.089 GB, free: 8 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 8.037e-05/0.232, allocations: 7.984 kB / 1.089 GB, free: 0 / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 8.909e-05/0.2321, allocations: 27.92 kB / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.668e-05/0.2322, allocations: 15.92 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.418e-05/0.2322, allocations: 7.984 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.919e-06/0.2322, allocations: 8 kB / 1.089 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.759e-05/0.2322, allocations: 11.92 kB / 1.09 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.901e-05/0.2323, allocations: 19.88 kB / 1.09 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 7.751e-05/0.2324, allocations: 46.69 kB / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.2324, allocations: 0 / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.082e-06/0.2324, allocations: 0 / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.073e-06/0.2324, allocations: 0 / 1.09 GB, free: 15.87 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.0004148/0.2328, allocations: 357.9 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.173e-05/0.2328, allocations: 19.97 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.581e-05/0.2329, allocations: 34.69 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.58e-05/0.2329, allocations: 12.83 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.655e-05/0.233, allocations: 176.2 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.041e-05/0.233, allocations: 4.375 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.25e-05/0.233, allocations: 4.375 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001403/0.2332, allocations: 61.78 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.2332, allocations: 0 / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.795e-06/0.2332, allocations: 0 / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.426e-06/0.2332, allocations: 0 / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001174/0.2333, allocations: 43.91 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000328/0.2337, allocations: 276.8 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001081/0.2338, allocations: 38.56 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.963e-05/0.2339, allocations: 24.94 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.205e-05/0.2339, allocations: 4 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.993e-05/0.2339, allocations: 30.56 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.2339, allocations: 0 / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0002851/0.2342, allocations: 97.48 kB / 1.091 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.663e-05/0.2342, allocations: 51.41 kB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.995e-05/0.2343, allocations: 117.8 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.51e-05/0.2343, allocations: 33.7 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.833e-05/0.2344, allocations: 88.12 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.656e-05/0.2344, allocations: 7.906 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.15e-05/0.2344, allocations: 13.72 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.178e-05/0.2345, allocations: 326.8 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.35e-05/0.2346, allocations: 15.98 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.517e-05/0.2347, allocations: 11.98 kB / 1.091 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001149/0.2348, allocations: 48.83 kB / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.2348, allocations: 0 / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001535/0.235, allocations: 73.52 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.019e-05/0.235, allocations: 7.938 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.235, allocations: 4 kB / 1.091 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.048e-05/0.235, allocations: 0 / 1.091 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.707e-05/0.2351, allocations: 7.984 kB / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.2351, allocations: 4 kB / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.471e-05/0.2352, allocations: 4 kB / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.998e-06/0.2352, allocations: 7.984 kB / 1.091 GB, free: 13.67 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 6.967e-05/0.2352, allocations: 117.7 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.349e-05/0.2353, allocations: 4 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.152e-05/0.2353, allocations: 7.906 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.2353, allocations: 0 / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.594e-06/0.2353, allocations: 0 / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.2353, allocations: 4 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001589/0.2355, allocations: 181.5 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.2355, allocations: 0 / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.969e-05/0.2356, allocations: 11.94 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.2356, allocations: 336 / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.166e-06/0.2356, allocations: 3.984 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.2356, allocations: 0 / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.2356, allocations: 0 / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001903/0.2358, allocations: 171.5 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.177e-05/0.2358, allocations: 85 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.155e-05/0.2358, allocations: 3.938 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.931e-05/0.2359, allocations: 8 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.141e-05/0.236, allocations: 7.984 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.456e-06/0.236, allocations: 0 / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.489e-05/0.236, allocations: 91.27 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.51e-07/0.236, allocations: 0 / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002048/0.2362, allocations: 8 kB / 1.092 GB, free: 12.88 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.0004178/0.2367, allocations: 0.7051 MB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001591/0.2368, allocations: 39.97 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.512e-06/0.2368, allocations: 4 kB / 1.093 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 6.805e-05/0.2369, allocations: 23.92 kB / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001888/0.2371, allocations: 9.625 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004124/0.2375, allocations: 193.9 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002026/0.2377, allocations: 0.6885 MB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.063e-05/0.2378, allocations: 4 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.486e-05/0.2378, allocations: 15.44 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of SimCode: time 2.41e-07/0.2378, allocations: 0 / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.006/2.244, allocations: 1.502 MB / 1.095 GB, free: 9.746 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.44/12.69, allocations: 17.23 kB / 1.095 GB, free: 9.73 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 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.mat","/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