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: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_latest_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.000861/0.000861, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.005249/0.005248, allocations: 171.9 kB / 16.26 MB, free: 6.676 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.216/1.216, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.303/2.303, allocations: 443.4 MB / 0.7176 GB, free: 1.375 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003053/0.0003054, allocations: 9 kB / 0.8797 GB, free: 41.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2256/0.2259, allocations: 155.2 MB / 1.031 GB, free: 4.234 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.001457/0.2274, allocations: 1.23 MB / 1.032 GB, free: 2.992 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.000549/0.228, allocations: 423.4 kB / 1.033 GB, free: 2.574 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.995e-05/0.228, allocations: 0 / 1.033 GB, free: 2.574 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.488e-05/0.2281, allocations: 4 kB / 1.033 GB, free: 2.57 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.236e-05/0.2281, allocations: 7.875 kB / 1.033 GB, free: 2.562 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001342/0.2283, allocations: 15.98 kB / 1.033 GB, free: 2.547 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.096e-05/0.2283, allocations: 47.78 kB / 1.033 GB, free: 2.5 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.392e-05/0.2284, allocations: 11.98 kB / 1.033 GB, free: 2.488 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.005e-05/0.2285, allocations: 27.86 kB / 1.033 GB, free: 2.461 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.668e-05/0.2286, allocations: 15.92 kB / 1.033 GB, free: 2.445 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.489e-05/0.2286, allocations: 4 kB / 1.033 GB, free: 2.441 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.287e-06/0.2286, allocations: 0 / 1.033 GB, free: 2.441 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.755e-05/0.2287, allocations: 11.94 kB / 1.033 GB, free: 2.43 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.969e-05/0.2287, allocations: 45.56 kB / 1.033 GB, free: 2.379 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 7.279e-05/0.2288, allocations: 44.08 kB / 1.033 GB, free: 2.336 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.2288, allocations: 0 / 1.033 GB, free: 2.336 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2288, allocations: 0 / 1.033 GB, free: 2.336 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.706e-06/0.2288, allocations: 0 / 1.033 GB, free: 2.336 MB / 0.7794 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.0003902/0.2292, allocations: 359.4 kB / 1.033 GB, free: 1.938 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.2292, allocations: 12.03 kB / 1.033 GB, free: 1.926 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.105e-05/0.2293, allocations: 30.75 kB / 1.033 GB, free: 1.887 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.453e-05/0.2293, allocations: 8.844 kB / 1.033 GB, free: 1.879 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/0.2294, allocations: 180.2 kB / 1.034 GB, free: 1.664 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.568e-06/0.2294, allocations: 384 / 1.034 GB, free: 1.664 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.006e-05/0.2294, allocations: 4.375 kB / 1.034 GB, free: 1.66 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001582/0.2296, allocations: 69.73 kB / 1.034 GB, free: 1.586 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.33e-06/0.2296, allocations: 3.938 kB / 1.034 GB, free: 1.582 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-06/0.2296, allocations: 3.984 kB / 1.034 GB, free: 1.578 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.2296, allocations: 0 / 1.034 GB, free: 1.578 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001317/0.2298, allocations: 43.97 kB / 1.034 GB, free: 1.535 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003295/0.2301, allocations: 272.9 kB / 1.034 GB, free: 1.219 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001124/0.2302, allocations: 46.5 kB / 1.034 GB, free: 1.164 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.763e-05/0.2303, allocations: 28.94 kB / 1.034 GB, free: 1.133 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.235e-05/0.2303, allocations: 7.984 kB / 1.034 GB, free: 1.125 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.2304, allocations: 34.56 kB / 1.034 GB, free: 1.082 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.2304, allocations: 0 / 1.034 GB, free: 1.082 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0002931/0.2307, allocations: 101.5 kB / 1.034 GB, free: 0.9766 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.097e-05/0.2307, allocations: 55.41 kB / 1.034 GB, free: 0.9102 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.507e-05/0.2308, allocations: 113.8 kB / 1.034 GB, free: 0.7891 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.185e-05/0.2308, allocations: 25.7 kB / 1.034 GB, free: 0.7578 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.323e-05/0.2309, allocations: 88.14 kB / 1.035 GB, free: 0.668 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.717e-05/0.2309, allocations: 15.83 kB / 1.035 GB, free: 0.6523 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.387e-05/0.2309, allocations: 13.72 kB / 1.035 GB, free: 0.6328 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.481e-05/0.231, allocations: 318.8 kB / 1.035 GB, free: 320 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.803e-05/0.2311, allocations: 19.98 kB / 1.035 GB, free: 300 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.994e-05/0.2311, allocations: 23.98 kB / 1.035 GB, free: 276 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001264/0.2313, allocations: 48.83 kB / 1.035 GB, free: 224 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.2313, allocations: 4 kB / 1.035 GB, free: 220 kB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001711/0.2315, allocations: 81.56 kB / 1.035 GB, free: 132 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.2315, allocations: 4 kB / 1.035 GB, free: 128 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.2315, allocations: 0 / 1.035 GB, free: 128 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.2315, allocations: 4 kB / 1.035 GB, free: 124 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.462e-05/0.2316, allocations: 15.94 kB / 1.035 GB, free: 108 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.2316, allocations: 0 / 1.035 GB, free: 108 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.059e-05/0.2317, allocations: 7.984 kB / 1.035 GB, free: 100 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.406e-06/0.2317, allocations: 4 kB / 1.035 GB, free: 96 kB / 0.7794 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.973e-05/0.2318, allocations: 125.7 kB / 1.035 GB, free: 15.96 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.608e-05/0.2318, allocations: 7.906 kB / 1.035 GB, free: 15.95 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.343e-05/0.2318, allocations: 7.891 kB / 1.035 GB, free: 15.94 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.2318, allocations: 3.938 kB / 1.035 GB, free: 15.94 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.2318, allocations: 7.938 kB / 1.035 GB, free: 15.93 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.983e-06/0.2318, allocations: 0 / 1.035 GB, free: 15.93 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001487/0.232, allocations: 177.6 kB / 1.035 GB, free: 15.71 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.232, allocations: 0 / 1.035 GB, free: 15.71 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.737e-05/0.2321, allocations: 11.98 kB / 1.035 GB, free: 15.7 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.2321, allocations: 0 / 1.035 GB, free: 15.7 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.281e-06/0.2321, allocations: 0 / 1.035 GB, free: 15.7 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.2321, allocations: 0 / 1.035 GB, free: 15.7 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.2321, allocations: 0 / 1.035 GB, free: 15.7 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002093/0.2323, allocations: 183.7 kB / 1.036 GB, free: 15.5 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.145e-05/0.2324, allocations: 85.05 kB / 1.036 GB, free: 15.4 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.345e-05/0.2324, allocations: 4 kB / 1.036 GB, free: 15.39 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.795e-05/0.2325, allocations: 7.984 kB / 1.036 GB, free: 15.39 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.898e-05/0.2325, allocations: 4 kB / 1.036 GB, free: 15.38 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.212e-06/0.2325, allocations: 4 kB / 1.036 GB, free: 15.38 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.244e-05/0.2326, allocations: 95.27 kB / 1.036 GB, free: 15.29 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.71e-07/0.2326, allocations: 0 / 1.036 GB, free: 15.29 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002049/0.2328, allocations: 8 kB / 1.036 GB, free: 15.28 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.0004264/0.2332, allocations: 0.7123 MB / 1.036 GB, free: 14.54 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001586/0.2334, allocations: 43.91 kB / 1.036 GB, free: 14.49 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2334, allocations: 4 kB / 1.036 GB, free: 14.49 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 7.128e-05/0.2335, allocations: 27.98 kB / 1.037 GB, free: 14.46 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001966/0.2337, allocations: 10.23 kB / 1.037 GB, free: 14.45 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004209/0.2341, allocations: 220 kB / 1.037 GB, free: 14.2 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001907/0.2343, allocations: 0.6848 MB / 1.037 GB, free: 13.48 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 2.867e-05/0.2343, allocations: 4 kB / 1.037 GB, free: 13.48 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.513e-05/0.2344, allocations: 11.44 kB / 1.037 GB, free: 13.47 MB / 0.795 GB Notification: Performance of SimCode: time 2.3e-07/0.2344, allocations: 0 / 1.037 GB, free: 13.47 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.286/1.52, allocations: 1.25 MB / 1.039 GB, free: 12.39 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002488/1.52, allocations: 236.6 kB / 1.039 GB, free: 12.13 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.532/3.052, allocations: 2.25 kB / 1.039 GB, free: 12.13 MB / 0.795 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > 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