Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt.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.Controls.OBC.CDL.Continuous.Validation.Sqrt,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Sqrt",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Sqrt",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.01329/0.01329, allocations: 98.22 kB / 15.73 MB, free: 6.008 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.002871/0.002871, allocations: 196.3 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.613/2.613, allocations: 222.9 MB / 240.4 MB, free: 4.332 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 4.441/4.441, allocations: 390.2 MB / 0.6648 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002539/0.002539, allocations: 65.84 kB / 0.9505 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.586/0.5886, allocations: 140.4 MB / 1.088 GB, free: 1.98 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt): time 0.004251/0.5929, allocations: 0.6664 MB / 1.088 GB, free: 1.316 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001959/0.5949, allocations: 0.8004 MB / 1.089 GB, free: 0.5039 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.924e-05/0.595, allocations: 0 / 1.089 GB, free: 0.5039 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.896e-05/0.5951, allocations: 0 / 1.089 GB, free: 0.5039 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001265/0.5953, allocations: 7.938 kB / 1.089 GB, free: 0.4961 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002458/0.5955, allocations: 7.984 kB / 1.089 GB, free: 500 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.000228/0.5958, allocations: 23.92 kB / 1.089 GB, free: 476 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001687/0.596, allocations: 11.98 kB / 1.089 GB, free: 464 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000112/0.5961, allocations: 15.92 kB / 1.089 GB, free: 448 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 7.087e-05/0.5962, allocations: 8 kB / 1.089 GB, free: 440 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.054e-05/0.5962, allocations: 0 / 1.089 GB, free: 440 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.852e-05/0.5963, allocations: 4 kB / 1.089 GB, free: 436 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.99e-05/0.5963, allocations: 7.922 kB / 1.089 GB, free: 428 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 4.767e-05/0.5964, allocations: 7.938 kB / 1.089 GB, free: 420 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001358/0.5965, allocations: 15.97 kB / 1.089 GB, free: 404 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.5966, allocations: 4 kB / 1.089 GB, free: 400 kB / 0.8419 GB Notification: Performance of FrontEnd: time 3.025e-06/0.5966, allocations: 0 / 1.089 GB, free: 400 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.024e-06/0.5966, allocations: 0 / 1.089 GB, free: 400 kB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0007584/0.5974, allocations: 343.7 kB / 1.089 GB, free: 4 kB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001347/0.5975, allocations: 8.078 kB / 1.089 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.481e-05/0.5976, allocations: 34.75 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.482e-05/0.5977, allocations: 0.9375 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002132/0.5979, allocations: 168.3 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.658e-05/0.5979, allocations: 384 / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.31e-05/0.598, allocations: 8.312 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003179/0.5983, allocations: 58.17 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.5983, allocations: 3.938 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.463e-05/0.5984, allocations: 0 / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.5984, allocations: 0 / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003074/0.5987, allocations: 35.91 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005711/0.5993, allocations: 249 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002564/0.5996, allocations: 42.44 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000154/0.5997, allocations: 20.91 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.303e-05/0.5998, allocations: 3.984 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.983e-05/0.5998, allocations: 34.56 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.714e-06/0.5999, allocations: 0 / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0006518/0.6005, allocations: 85.59 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002703/0.6008, allocations: 51.41 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001407/0.601, allocations: 109.8 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.658e-05/0.601, allocations: 25.7 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.797e-05/0.6011, allocations: 80.14 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.964e-05/0.6011, allocations: 3.953 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.258e-05/0.6012, allocations: 17.72 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002193/0.6015, allocations: 319 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001485/0.6016, allocations: 15.98 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000134/0.6018, allocations: 15.98 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002905/0.6021, allocations: 40.81 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.6021, allocations: 3.938 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000511/0.6026, allocations: 61.73 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.389e-05/0.6027, allocations: 8 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.6027, allocations: 3.938 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.543e-05/0.6028, allocations: 0 / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001544/0.6029, allocations: 7.984 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.603, allocations: 0 / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.6031, allocations: 11.98 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.524e-05/0.6031, allocations: 4 kB / 1.091 GB, free: 14.32 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 (2): * Single equations (assignments): 2 * 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 0.0001253/0.6032, allocations: 113.8 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.274e-05/0.6033, allocations: 0 / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.253e-05/0.6033, allocations: 3.125 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.6034, allocations: 4 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-05/0.6034, allocations: 0 / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.6034, allocations: 3.938 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003543/0.6038, allocations: 165.5 kB / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.6038, allocations: 0 / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001128/0.6039, allocations: 19.98 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.6039, allocations: 4 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.428e-06/0.604, allocations: 0 / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.604, allocations: 0 / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.604, allocations: 0 / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004522/0.6045, allocations: 163.4 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.141e-05/0.6045, allocations: 77.11 kB / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.22e-05/0.6046, allocations: 7.969 kB / 1.091 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001521/0.6047, allocations: 7.984 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.28e-05/0.6048, allocations: 8 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.012e-06/0.6049, allocations: 0 / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.79e-05/0.6049, allocations: 79.28 kB / 1.092 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.3e-07/0.605, allocations: 0 / 1.092 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004512/0.6054, allocations: 7.938 kB / 1.092 GB, free: 13.57 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 (2): * Single equations (assignments): 2 * 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.001279/0.6067, allocations: 0.6968 MB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003579/0.6071, allocations: 39.91 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.6071, allocations: 4.094 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000153/0.6073, allocations: 19.98 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005542/0.6079, allocations: 5.703 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007323/0.6086, allocations: 127.2 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000543/0.6092, allocations: 0.6729 MB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.547e-05/0.6092, allocations: 7.984 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.997e-05/0.6093, allocations: 11.5 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of SimCode: time 4.11e-07/0.6093, allocations: 4 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.036/0.6453, allocations: 1.279 MB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.87/13.51, allocations: 3.031 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Sqrt.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Sqrt.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches