Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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 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.Controls.OBC.CDL.Reals.Validation.Sqrt,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Sqrt",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Sqrt,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_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.001871/0.001871, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002177/0.002177, allocations: 196.9 kB / 16.53 MB, free: 6.664 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.349/1.349, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.653/2.653, allocations: 461.9 MB / 0.7346 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 67.89 kB / 0.8992 GB, free: 36.9 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.319, allocations: 157.4 MB / 1.053 GB, free: 8.23 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sqrt): time 0.001808/0.3209, allocations: 0.6575 MB / 1.054 GB, free: 7.574 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007863/0.3217, allocations: 0.8079 MB / 1.054 GB, free: 6.754 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.836e-05/0.3217, allocations: 0 / 1.054 GB, free: 6.754 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.62e-05/0.3217, allocations: 3.984 kB / 1.054 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.849e-05/0.3218, allocations: 3.938 kB / 1.054 GB, free: 6.746 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000122/0.3219, allocations: 8 kB / 1.054 GB, free: 6.738 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.271e-05/0.322, allocations: 31.86 kB / 1.054 GB, free: 6.707 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.483e-05/0.3221, allocations: 7.984 kB / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.974e-05/0.3221, allocations: 7.984 kB / 1.054 GB, free: 6.691 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.537e-05/0.3222, allocations: 11.94 kB / 1.054 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.44e-05/0.3222, allocations: 4 kB / 1.054 GB, free: 6.676 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.536e-06/0.3222, allocations: 0 / 1.054 GB, free: 6.676 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.459e-05/0.3222, allocations: 3.984 kB / 1.054 GB, free: 6.672 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.531e-05/0.3223, allocations: 11.94 kB / 1.054 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 6.481e-05/0.3223, allocations: 15.97 kB / 1.054 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.3223, allocations: 4 kB / 1.054 GB, free: 6.641 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.262e-06/0.3224, allocations: 0 / 1.054 GB, free: 6.641 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.679e-06/0.3224, allocations: 0 / 1.054 GB, free: 6.641 MB / 0.8106 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.0004036/0.3228, allocations: 335.8 kB / 1.055 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.3228, allocations: 12.62 kB / 1.055 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.082e-05/0.3228, allocations: 38.62 kB / 1.055 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.931e-05/0.3229, allocations: 8.781 kB / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.921e-05/0.323, allocations: 172.4 kB / 1.055 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.323, allocations: 4.375 kB / 1.055 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.322e-06/0.323, allocations: 384 / 1.055 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001601/0.3232, allocations: 50.23 kB / 1.055 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.3232, allocations: 3.938 kB / 1.055 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.304e-06/0.3232, allocations: 0 / 1.055 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.3232, allocations: 0 / 1.055 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001538/0.3234, allocations: 31.97 kB / 1.055 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002842/0.3237, allocations: 260.9 kB / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000111/0.3238, allocations: 34.5 kB / 1.055 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.326e-05/0.3239, allocations: 24.91 kB / 1.055 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.63e-05/0.3239, allocations: 0 / 1.055 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.146e-05/0.3239, allocations: 34.56 kB / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.3239, allocations: 0 / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0003222/0.3242, allocations: 85.58 kB / 1.056 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.017e-05/0.3243, allocations: 51.41 kB / 1.056 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.798e-05/0.3244, allocations: 101.8 kB / 1.056 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.064e-05/0.3244, allocations: 25.7 kB / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.56e-05/0.3244, allocations: 84.27 kB / 1.056 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.477e-05/0.3244, allocations: 7.906 kB / 1.056 GB, free: 5.09 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.81e-05/0.3245, allocations: 13.72 kB / 1.056 GB, free: 5.07 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.011e-05/0.3246, allocations: 318.8 kB / 1.056 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.143e-05/0.3246, allocations: 15.98 kB / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.787e-05/0.3247, allocations: 11.98 kB / 1.056 GB, free: 4.723 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001452/0.3249, allocations: 44.88 kB / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.3249, allocations: 3.938 kB / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001823/0.3251, allocations: 69.52 kB / 1.056 GB, free: 4.598 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.066e-05/0.3251, allocations: 4 kB / 1.056 GB, free: 4.594 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.3251, allocations: 0 / 1.056 GB, free: 4.594 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.3251, allocations: 0 / 1.056 GB, free: 4.594 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.369e-05/0.3252, allocations: 11.98 kB / 1.056 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.3252, allocations: 4.031 kB / 1.056 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.797e-05/0.3253, allocations: 11.98 kB / 1.056 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.151e-06/0.3253, allocations: 0 / 1.056 GB, free: 4.566 MB / 0.8106 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 6.26e-05/0.3253, allocations: 113.7 kB / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.423e-05/0.3254, allocations: 4.188 kB / 1.056 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.196e-05/0.3254, allocations: 7.109 kB / 1.056 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.3254, allocations: 0 / 1.056 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.3254, allocations: 0 / 1.056 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.3254, allocations: 0 / 1.056 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001377/0.3256, allocations: 165.6 kB / 1.057 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3256, allocations: 3.938 kB / 1.057 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.842e-05/0.3256, allocations: 11.98 kB / 1.057 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.3256, allocations: 0 / 1.057 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.197e-06/0.3257, allocations: 4 kB / 1.057 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.3257, allocations: 0 / 1.057 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3257, allocations: 3.938 kB / 1.057 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000232/0.3259, allocations: 163.5 kB / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.393e-05/0.3259, allocations: 81.11 kB / 1.057 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.236e-05/0.326, allocations: 0 / 1.057 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.443e-05/0.326, allocations: 7.984 kB / 1.057 GB, free: 3.922 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.347e-05/0.3261, allocations: 4 kB / 1.057 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-06/0.3261, allocations: 0 / 1.057 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.362e-05/0.3261, allocations: 79.28 kB / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3261, allocations: 0 / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002095/0.3263, allocations: 11.94 kB / 1.057 GB, free: 3.828 MB / 0.8106 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.0005659/0.3269, allocations: 0.7026 MB / 1.058 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002005/0.3271, allocations: 40 kB / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.3271, allocations: 0 / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 7.957e-05/0.3272, allocations: 19.98 kB / 1.058 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002688/0.3275, allocations: 7.984 kB / 1.058 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004294/0.3279, allocations: 139.3 kB / 1.058 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002244/0.3282, allocations: 0.6807 MB / 1.058 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.146e-05/0.3282, allocations: 0 / 1.058 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.233e-05/0.3282, allocations: 7.438 kB / 1.058 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of SimCode: time 6.11e-07/0.3282, allocations: 0 / 1.058 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01727/0.3455, allocations: 1.243 MB / 1.06 GB, free: 0.9688 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.514/7.859, allocations: 8.516 kB / 1.06 GB, free: 0.9609 MB / 0.8106 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sqrt.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sqrt.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sqrt.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sqrt.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sqrt_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Sqrt_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Sqrt.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sqrt.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sqrt_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Sqrt.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sqrt.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches