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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.006345/0.006346, allocations: 100.1 kB / 15.73 MB, free: 6.047 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.001229/0.001229, allocations: 187.6 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.843/2.843, allocations: 461.9 MB / 0.7348 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0015/0.001501, allocations: 63.89 kB / 1.054 GB, free: 7.633 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3667/0.3682, allocations: 157.4 MB / 1.207 GB, free: 10.12 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.00366/0.3719, allocations: 1.498 MB / 1.209 GB, free: 8.613 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0009296/0.3729, allocations: 414.9 kB / 1.209 GB, free: 8.203 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.19e-05/0.373, allocations: 0 / 1.209 GB, free: 8.203 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.584e-05/0.373, allocations: 3.938 kB / 1.209 GB, free: 8.199 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.996e-05/0.3731, allocations: 11.86 kB / 1.209 GB, free: 8.188 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002085/0.3733, allocations: 19.98 kB / 1.209 GB, free: 8.168 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001207/0.3735, allocations: 59.7 kB / 1.209 GB, free: 8.109 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001256/0.3736, allocations: 12 kB / 1.209 GB, free: 8.098 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001219/0.3737, allocations: 23.92 kB / 1.209 GB, free: 8.074 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.618e-05/0.3738, allocations: 19.92 kB / 1.209 GB, free: 8.055 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.766e-05/0.3739, allocations: 4 kB / 1.209 GB, free: 8.051 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.004e-05/0.3739, allocations: 0 / 1.209 GB, free: 8.051 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.592e-05/0.3739, allocations: 23.91 kB / 1.209 GB, free: 8.027 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.33e-05/0.3739, allocations: 15.88 kB / 1.209 GB, free: 8.012 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001244/0.3741, allocations: 52.03 kB / 1.209 GB, free: 7.961 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3741, allocations: 0 / 1.209 GB, free: 7.961 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.164e-06/0.3741, allocations: 3.938 kB / 1.209 GB, free: 7.957 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.843e-06/0.3741, allocations: 0 / 1.209 GB, free: 7.957 MB / 0.9669 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.0006074/0.3747, allocations: 359.3 kB / 1.21 GB, free: 7.559 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.35e-05/0.3748, allocations: 8.625 kB / 1.21 GB, free: 7.551 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.566e-05/0.3748, allocations: 34.69 kB / 1.21 GB, free: 7.508 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.354e-05/0.3749, allocations: 12.84 kB / 1.21 GB, free: 7.496 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000148/0.375, allocations: 180.2 kB / 1.21 GB, free: 7.281 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/0.3751, allocations: 384 / 1.21 GB, free: 7.281 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.546e-05/0.3751, allocations: 384 / 1.21 GB, free: 7.281 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002101/0.3753, allocations: 57.8 kB / 1.21 GB, free: 7.219 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.3753, allocations: 0 / 1.21 GB, free: 7.219 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.3753, allocations: 4 kB / 1.21 GB, free: 7.215 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.3753, allocations: 0 / 1.21 GB, free: 7.215 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001464/0.3755, allocations: 39.91 kB / 1.21 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000491/0.376, allocations: 272.9 kB / 1.21 GB, free: 6.859 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001298/0.3761, allocations: 42.56 kB / 1.21 GB, free: 6.809 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.944e-05/0.3762, allocations: 28.94 kB / 1.21 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.951e-05/0.3762, allocations: 0 / 1.21 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/0.3763, allocations: 38.5 kB / 1.21 GB, free: 6.73 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.3763, allocations: 0 / 1.21 GB, free: 6.73 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0003405/0.3766, allocations: 93.72 kB / 1.211 GB, free: 6.633 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.989e-05/0.3767, allocations: 55.41 kB / 1.211 GB, free: 6.566 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.3768, allocations: 113.8 kB / 1.211 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.45e-05/0.3768, allocations: 25.7 kB / 1.211 GB, free: 6.414 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.697e-05/0.3769, allocations: 96.12 kB / 1.211 GB, free: 6.316 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.372e-05/0.3769, allocations: 8.406 kB / 1.211 GB, free: 6.309 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.564e-05/0.377, allocations: 9.719 kB / 1.211 GB, free: 6.293 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.3771, allocations: 326.8 kB / 1.211 GB, free: 5.965 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.176e-05/0.3772, allocations: 15.98 kB / 1.211 GB, free: 5.949 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.122e-05/0.3773, allocations: 19.98 kB / 1.211 GB, free: 5.93 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001281/0.3774, allocations: 44.78 kB / 1.211 GB, free: 5.883 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3774, allocations: 0 / 1.211 GB, free: 5.883 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001874/0.3776, allocations: 69.56 kB / 1.211 GB, free: 5.809 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.3776, allocations: 8 kB / 1.211 GB, free: 5.801 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.3776, allocations: 3.938 kB / 1.211 GB, free: 5.797 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.3777, allocations: 0 / 1.211 GB, free: 5.797 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.3778, allocations: 11.98 kB / 1.211 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.3778, allocations: 0 / 1.211 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.321e-05/0.3778, allocations: 8 kB / 1.211 GB, free: 5.777 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.3779, allocations: 4 kB / 1.211 GB, free: 5.773 MB / 0.9669 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.646e-05/0.378, allocations: 113.8 kB / 1.211 GB, free: 5.652 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.316e-05/0.378, allocations: 7.906 kB / 1.211 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.765e-05/0.378, allocations: 15.78 kB / 1.211 GB, free: 5.621 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.378, allocations: 4 kB / 1.211 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.378, allocations: 0 / 1.211 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.378, allocations: 0 / 1.211 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001828/0.3782, allocations: 173.6 kB / 1.212 GB, free: 5.398 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.3782, allocations: 0 / 1.212 GB, free: 5.398 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.864e-05/0.3783, allocations: 12 kB / 1.212 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.3783, allocations: 0 / 1.212 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-06/0.3783, allocations: 0 / 1.212 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.3784, allocations: 3.984 kB / 1.212 GB, free: 5.383 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3784, allocations: 0 / 1.212 GB, free: 5.383 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000231/0.3786, allocations: 171.4 kB / 1.212 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.183e-05/0.3786, allocations: 81.05 kB / 1.212 GB, free: 5.102 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.3787, allocations: 11.98 kB / 1.212 GB, free: 5.09 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.64e-05/0.3788, allocations: 0 / 1.212 GB, free: 5.09 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.423e-05/0.3788, allocations: 4 kB / 1.212 GB, free: 5.086 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.815e-06/0.3788, allocations: 3.984 kB / 1.212 GB, free: 5.082 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.59e-05/0.3789, allocations: 91.66 kB / 1.212 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of sort global known variables: time 3.31e-07/0.3789, allocations: 0 / 1.212 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002159/0.3791, allocations: 8 kB / 1.212 GB, free: 4.984 MB / 0.9669 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.0005428/0.3797, allocations: 0.7084 MB / 1.213 GB, free: 4.25 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001915/0.3799, allocations: 39.97 kB / 1.213 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3799, allocations: 3.938 kB / 1.213 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 7.775e-05/0.38, allocations: 28.31 kB / 1.213 GB, free: 4.18 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002131/0.3802, allocations: 0 / 1.213 GB, free: 4.18 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006644/0.3808, allocations: 189.9 kB / 1.213 GB, free: 3.953 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004195/0.3813, allocations: 0.6846 MB / 1.214 GB, free: 3.242 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.731e-05/0.3813, allocations: 7.938 kB / 1.214 GB, free: 3.234 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.038e-05/0.3814, allocations: 19.44 kB / 1.214 GB, free: 3.215 MB / 0.9669 GB Notification: Performance of SimCode: time 6.31e-07/0.3814, allocations: 7.938 kB / 1.214 GB, free: 3.207 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02056/0.402, allocations: 1.525 MB / 1.215 GB, free: 1.824 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.556/7.958, allocations: 11.92 kB / 1.215 GB, free: 1.816 MB / 0.9669 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