Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.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.Cos,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Cos",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Cos,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Cos",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.001204/0.001204, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001225/0.001225, allocations: 194.7 kB / 16.25 MB, free: 6.629 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.256/1.256, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.485/2.485, allocations: 461.9 MB / 0.7343 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 67.39 kB / 0.8987 GB, free: 37.15 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.2382, allocations: 157.4 MB / 1.052 GB, free: 8.629 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Cos): time 0.001715/0.24, allocations: 0.7339 MB / 1.053 GB, free: 7.895 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007317/0.2407, allocations: 0.8157 MB / 1.054 GB, free: 7.066 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.521e-05/0.2408, allocations: 0 / 1.054 GB, free: 7.066 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.619e-05/0.2408, allocations: 0 / 1.054 GB, free: 7.066 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.601e-05/0.2409, allocations: 8 kB / 1.054 GB, free: 7.059 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001106/0.241, allocations: 7.938 kB / 1.054 GB, free: 7.051 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.302e-05/0.2411, allocations: 23.98 kB / 1.054 GB, free: 7.027 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.357e-05/0.2411, allocations: 0 / 1.054 GB, free: 7.027 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.041e-05/0.2412, allocations: 19.86 kB / 1.054 GB, free: 7.008 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.141e-05/0.2412, allocations: 8 kB / 1.054 GB, free: 7 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.099e-05/0.2412, allocations: 0 / 1.054 GB, free: 7 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.067e-05/0.2413, allocations: 4 kB / 1.054 GB, free: 6.996 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.319e-05/0.2413, allocations: 11.91 kB / 1.054 GB, free: 6.984 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.276e-05/0.2413, allocations: 15.94 kB / 1.054 GB, free: 6.969 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 5.596e-05/0.2414, allocations: 15.97 kB / 1.054 GB, free: 6.953 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.2414, allocations: 0 / 1.054 GB, free: 6.953 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.422e-06/0.2414, allocations: 0 / 1.054 GB, free: 6.953 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.078e-06/0.2414, allocations: 0 / 1.054 GB, free: 6.953 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.00035/0.2417, allocations: 335.8 kB / 1.054 GB, free: 6.574 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.2418, allocations: 12.62 kB / 1.054 GB, free: 6.562 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.004e-05/0.2418, allocations: 30.75 kB / 1.054 GB, free: 6.523 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.061e-05/0.2418, allocations: 4.844 kB / 1.054 GB, free: 6.52 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.575e-05/0.2419, allocations: 168.4 kB / 1.055 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.959e-06/0.2419, allocations: 8.375 kB / 1.055 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.933e-06/0.242, allocations: 384 / 1.055 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001549/0.2421, allocations: 54.17 kB / 1.055 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.2421, allocations: 3.938 kB / 1.055 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.2421, allocations: 3.938 kB / 1.055 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.2422, allocations: 3.938 kB / 1.055 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000145/0.2423, allocations: 31.97 kB / 1.055 GB, free: 6.207 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002529/0.2426, allocations: 249 kB / 1.055 GB, free: 5.914 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001113/0.2427, allocations: 38.5 kB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.794e-05/0.2428, allocations: 16.91 kB / 1.055 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.847e-05/0.2428, allocations: 4 kB / 1.055 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.134e-05/0.2428, allocations: 42.5 kB / 1.055 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.2428, allocations: 0 / 1.055 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0003005/0.2431, allocations: 77.64 kB / 1.055 GB, free: 5.711 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.992e-05/0.2432, allocations: 51.41 kB / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.82e-05/0.2432, allocations: 105.8 kB / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.054e-05/0.2433, allocations: 25.83 kB / 1.055 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.01e-05/0.2433, allocations: 84.14 kB / 1.055 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.747e-05/0.2433, allocations: 11.91 kB / 1.055 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.602e-05/0.2433, allocations: 9.719 kB / 1.055 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.01e-05/0.2434, allocations: 314.8 kB / 1.056 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.427e-05/0.2435, allocations: 19.98 kB / 1.056 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.334e-05/0.2436, allocations: 15.92 kB / 1.056 GB, free: 5.039 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001331/0.2437, allocations: 44.88 kB / 1.056 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2437, allocations: 3.938 kB / 1.056 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001724/0.2439, allocations: 69.58 kB / 1.056 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.2439, allocations: 4 kB / 1.056 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-06/0.2439, allocations: 0 / 1.056 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.658e-06/0.2439, allocations: 0 / 1.056 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.854e-05/0.244, allocations: 16.02 kB / 1.056 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.244, allocations: 3.984 kB / 1.056 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.522e-05/0.2441, allocations: 7.984 kB / 1.056 GB, free: 4.883 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.639e-06/0.2441, allocations: 0 / 1.056 GB, free: 4.883 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 5.71e-05/0.2442, allocations: 109.8 kB / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.135e-05/0.2442, allocations: 7.938 kB / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001966/0.2444, allocations: 72.78 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.2444, allocations: 0 / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.2444, allocations: 0 / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.2444, allocations: 3.984 kB / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001257/0.2445, allocations: 165.6 kB / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.2445, allocations: 0 / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.411e-05/0.2446, allocations: 15.92 kB / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.2446, allocations: 0 / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.631e-06/0.2446, allocations: 0 / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.113e-06/0.2446, allocations: 3.938 kB / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2446, allocations: 4.031 kB / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001988/0.2448, allocations: 167.4 kB / 1.056 GB, free: 4.266 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.178e-05/0.2449, allocations: 88.95 kB / 1.056 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.067e-05/0.2449, allocations: 0 / 1.056 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.163e-05/0.245, allocations: 7.984 kB / 1.056 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.808e-05/0.245, allocations: 4.031 kB / 1.056 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.836e-06/0.245, allocations: 0 / 1.056 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.044e-05/0.245, allocations: 83.28 kB / 1.057 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2451, allocations: 0 / 1.057 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001989/0.2453, allocations: 4 kB / 1.057 GB, free: 4.062 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.0004327/0.2457, allocations: 0.7045 MB / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001748/0.2459, allocations: 31.97 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.2459, allocations: 0 / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 7.399e-05/0.246, allocations: 19.97 kB / 1.057 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002569/0.2462, allocations: 8.156 kB / 1.057 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003363/0.2466, allocations: 131.8 kB / 1.057 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001697/0.2468, allocations: 0.6806 MB / 1.058 GB, free: 2.395 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.094e-05/0.2468, allocations: 4 kB / 1.058 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.917e-05/0.2468, allocations: 11.44 kB / 1.058 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of SimCode: time 2.21e-07/0.2468, allocations: 0 / 1.058 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4216/0.6684, allocations: 1.116 MB / 1.059 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002242/0.6686, allocations: 202.4 kB / 1.059 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.493/2.162, allocations: 0.875 kB / 1.059 GB, free: 1.121 MB / 0.8106 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Cos_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Cos.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Cos.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches