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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 205.9 kB / 22.24 MB, free: 5.258 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.327/1.327, allocations: 230.6 MB / 256 MB, free: 7.742 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.963/2.963, allocations: 0.5107 GB / 0.8158 GB, free: 17.81 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 70.86 kB / 1.186 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3063/0.3082, allocations: 181.9 MB / 1.363 GB, free: 14.08 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002575/0.3108, allocations: 1.525 MB / 1.365 GB, free: 12.54 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0007566/0.3116, allocations: 460 kB / 1.365 GB, free: 12.09 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.807e-05/0.3116, allocations: 0 / 1.365 GB, free: 12.09 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.799e-05/0.3116, allocations: 11.86 kB / 1.365 GB, free: 12.07 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 4.866e-05/0.3117, allocations: 11.88 kB / 1.365 GB, free: 12.06 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002159/0.3119, allocations: 31.95 kB / 1.365 GB, free: 12.03 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001106/0.312, allocations: 63.72 kB / 1.365 GB, free: 11.97 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 8.45e-05/0.3121, allocations: 8 kB / 1.365 GB, free: 11.96 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001152/0.3122, allocations: 31.84 kB / 1.365 GB, free: 11.93 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.609e-05/0.3123, allocations: 27.84 kB / 1.366 GB, free: 11.9 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.56e-05/0.3123, allocations: 4 kB / 1.366 GB, free: 11.9 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 3.761e-05/0.3123, allocations: 4 kB / 1.366 GB, free: 11.89 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.27e-05/0.3123, allocations: 4 kB / 1.366 GB, free: 11.89 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.191e-05/0.3124, allocations: 27.86 kB / 1.366 GB, free: 11.86 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001167/0.3125, allocations: 59.97 kB / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.3125, allocations: 0 / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.183e-06/0.3125, allocations: 0 / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of Transformations before backend: time 3.677e-06/0.3125, allocations: 0 / 1.366 GB, free: 11.8 MB / 1.061 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.0004413/0.3129, allocations: 286.2 kB / 1.366 GB, free: 11.5 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.313, allocations: 8.031 kB / 1.366 GB, free: 11.49 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.515e-05/0.313, allocations: 38.75 kB / 1.366 GB, free: 11.44 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001898/0.3132, allocations: 28.86 kB / 1.366 GB, free: 11.41 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001856/0.3134, allocations: 130.4 kB / 1.366 GB, free: 11.26 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.205e-06/0.3134, allocations: 384 / 1.366 GB, free: 11.26 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.503e-05/0.3134, allocations: 8.375 kB / 1.366 GB, free: 11.25 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001462/0.3136, allocations: 53.8 kB / 1.366 GB, free: 11.2 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.3136, allocations: 0 / 1.366 GB, free: 11.2 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.674e-06/0.3136, allocations: 0 / 1.366 GB, free: 11.2 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.3136, allocations: 0 / 1.366 GB, free: 11.2 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001186/0.3137, allocations: 35.97 kB / 1.366 GB, free: 11.16 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003412/0.314, allocations: 255.9 kB / 1.366 GB, free: 10.87 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001212/0.3142, allocations: 34.56 kB / 1.366 GB, free: 10.82 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.863e-05/0.3142, allocations: 24.94 kB / 1.366 GB, free: 10.8 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.365e-05/0.3142, allocations: 0 / 1.366 GB, free: 10.8 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.69e-05/0.3143, allocations: 34.56 kB / 1.366 GB, free: 10.75 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 7.51e-07/0.3143, allocations: 0 / 1.366 GB, free: 10.75 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0002807/0.3145, allocations: 85.59 kB / 1.367 GB, free: 10.66 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.143e-05/0.3146, allocations: 63.39 kB / 1.367 GB, free: 10.59 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.832e-05/0.3147, allocations: 125 kB / 1.367 GB, free: 10.46 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/0.3147, allocations: 25.7 kB / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.678e-05/0.3148, allocations: 96.08 kB / 1.367 GB, free: 10.33 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.966e-05/0.3148, allocations: 15.83 kB / 1.367 GB, free: 10.32 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.272e-05/0.3148, allocations: 13.72 kB / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001333/0.3149, allocations: 326.8 kB / 1.367 GB, free: 9.969 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.481e-05/0.315, allocations: 19.98 kB / 1.367 GB, free: 9.949 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.238e-05/0.3151, allocations: 11.98 kB / 1.367 GB, free: 9.938 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001196/0.3152, allocations: 45.11 kB / 1.367 GB, free: 9.891 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3152, allocations: 0 / 1.367 GB, free: 9.891 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001652/0.3154, allocations: 81.55 kB / 1.367 GB, free: 9.805 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.3154, allocations: 4 kB / 1.367 GB, free: 9.801 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.327e-06/0.3154, allocations: 0 / 1.367 GB, free: 9.801 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.3154, allocations: 0 / 1.367 GB, free: 9.801 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.577e-05/0.3155, allocations: 11.98 kB / 1.367 GB, free: 9.789 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/0.3155, allocations: 0 / 1.367 GB, free: 9.789 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.565e-05/0.3155, allocations: 8 kB / 1.367 GB, free: 9.781 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.001e-05/0.3155, allocations: 3.984 kB / 1.367 GB, free: 9.777 MB / 1.061 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.677e-05/0.3156, allocations: 118.9 kB / 1.368 GB, free: 9.652 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.649e-05/0.3156, allocations: 7.953 kB / 1.368 GB, free: 9.645 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.675e-05/0.3157, allocations: 8 kB / 1.368 GB, free: 9.625 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.3157, allocations: 0 / 1.368 GB, free: 9.625 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.3157, allocations: 0 / 1.368 GB, free: 9.625 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.3157, allocations: 4 kB / 1.368 GB, free: 9.621 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001588/0.3158, allocations: 140.7 kB / 1.368 GB, free: 9.441 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.3158, allocations: 0 / 1.368 GB, free: 9.441 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.699e-05/0.3159, allocations: 16 kB / 1.368 GB, free: 9.426 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.3159, allocations: 0 / 1.368 GB, free: 9.426 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.3159, allocations: 3.984 kB / 1.368 GB, free: 9.422 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.3159, allocations: 0 / 1.368 GB, free: 9.422 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.3159, allocations: 3.938 kB / 1.368 GB, free: 9.418 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002116/0.3161, allocations: 167.4 kB / 1.368 GB, free: 9.238 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.332e-05/0.3161, allocations: 11.98 kB / 1.368 GB, free: 9.227 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.252e-05/0.3161, allocations: 0 / 1.368 GB, free: 9.227 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.81e-05/0.3162, allocations: 8 kB / 1.368 GB, free: 9.219 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.183e-05/0.3163, allocations: 3.984 kB / 1.368 GB, free: 9.215 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.437e-06/0.3163, allocations: 0 / 1.368 GB, free: 9.215 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.457e-05/0.3163, allocations: 95.27 kB / 1.368 GB, free: 9.121 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3163, allocations: 0 / 1.368 GB, free: 9.121 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000204/0.3165, allocations: 11.94 kB / 1.368 GB, free: 9.109 MB / 1.061 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.0004798/0.317, allocations: 0.7084 MB / 1.369 GB, free: 8.375 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001641/0.3172, allocations: 43.97 kB / 1.369 GB, free: 8.332 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.293e-06/0.3172, allocations: 0 / 1.369 GB, free: 8.332 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 6.517e-05/0.3172, allocations: 19.98 kB / 1.369 GB, free: 8.312 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001969/0.3174, allocations: 4 kB / 1.369 GB, free: 8.312 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00141/0.3188, allocations: 1.382 MB / 1.37 GB, free: 6.852 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.213e-05/0.3189, allocations: 75.33 kB / 1.37 GB, free: 6.758 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.15e-05/0.3189, allocations: 4.031 kB / 1.37 GB, free: 6.754 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.65e-05/0.319, allocations: 23.42 kB / 1.37 GB, free: 6.73 MB / 1.061 GB Notification: Performance of SimCode: time 2.91e-07/0.319, allocations: 0 / 1.37 GB, free: 6.73 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02643/0.3454, allocations: 2.074 MB / 1.372 GB, free: 4.805 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.26/10.6, allocations: 0.6094 kB / 1.372 GB, free: 4.805 MB / 1.061 GB " [Timeout remaining time 289] (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 --stepSize=0.04 --timeout=800 --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) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.610112703870982]