Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 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.Cos,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Cos",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Cos,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_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.001627/0.001627, allocations: 108 kB / 15.6 MB, free: 132 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.0019/0.0019, allocations: 195 kB / 16.53 MB, free: 6.391 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.333/1.333, allocations: 222.9 MB / 240.2 MB, free: 4.41 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 2.308/2.308, allocations: 390.2 MB / 0.6647 GB, free: 268 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 67.91 kB / 0.8127 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5197/0.5211, allocations: 140.4 MB / 0.9497 GB, free: 9.207 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Cos): time 0.001629/0.5227, allocations: 0.6581 MB / 0.9504 GB, free: 8.703 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006218/0.5234, allocations: 0.8122 MB / 0.9512 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.835e-05/0.5234, allocations: 5.344 kB / 0.9512 GB, free: 8.035 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.597e-05/0.5235, allocations: 3.938 kB / 0.9512 GB, free: 8.031 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.752e-05/0.5235, allocations: 0 / 0.9512 GB, free: 8.031 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001179/0.5236, allocations: 14.55 kB / 0.9512 GB, free: 8.02 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.958e-05/0.5237, allocations: 16.77 kB / 0.9512 GB, free: 8.012 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.052e-05/0.5238, allocations: 7.312 kB / 0.9512 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.007e-05/0.5238, allocations: 7.234 kB / 0.9512 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.59e-05/0.5239, allocations: 14.95 kB / 0.9512 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.528e-05/0.5239, allocations: 2.531 kB / 0.9512 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.467e-06/0.5239, allocations: 5.219 kB / 0.9512 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.337e-05/0.5239, allocations: 5.5 kB / 0.9513 GB, free: 7.984 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.293e-05/0.5239, allocations: 13.08 kB / 0.9513 GB, free: 7.973 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.664e-05/0.524, allocations: 24.81 kB / 0.9513 GB, free: 7.953 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.524, allocations: 0 / 0.9513 GB, free: 7.953 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.232e-06/0.524, allocations: 0 / 0.9513 GB, free: 7.953 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.329e-06/0.524, allocations: 1 kB / 0.9513 GB, free: 7.953 MB / 0.7169 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.0003119/0.5243, allocations: 339.3 kB / 0.9516 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.5244, allocations: 12.22 kB / 0.9516 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.296e-05/0.5244, allocations: 35.81 kB / 0.9517 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.133e-05/0.5244, allocations: 2.062 kB / 0.9517 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.416e-05/0.5245, allocations: 170.6 kB / 0.9518 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.877e-06/0.5245, allocations: 384 / 0.9518 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.304e-06/0.5245, allocations: 1.438 kB / 0.9518 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001504/0.5247, allocations: 46.31 kB / 0.9519 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.5247, allocations: 7.922 kB / 0.9519 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.883e-06/0.5247, allocations: 0 / 0.9519 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.5247, allocations: 1.531 kB / 0.9519 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001617/0.5249, allocations: 41.3 kB / 0.9519 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00022/0.5251, allocations: 241.6 kB / 0.9521 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001125/0.5252, allocations: 43.25 kB / 0.9522 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.225e-05/0.5253, allocations: 26.5 kB / 0.9522 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.386e-05/0.5254, allocations: 0 / 0.9522 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.011e-05/0.5254, allocations: 31.81 kB / 0.9522 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.222e-06/0.5254, allocations: 0 / 0.9522 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003198/0.5257, allocations: 85.39 kB / 0.9523 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.673e-05/0.5257, allocations: 51.41 kB / 0.9524 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.306e-05/0.5258, allocations: 102.7 kB / 0.9525 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.572e-06/0.5258, allocations: 30.64 kB / 0.9525 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.028e-05/0.5258, allocations: 81.48 kB / 0.9526 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.402e-05/0.5258, allocations: 9.141 kB / 0.9526 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.477e-05/0.5259, allocations: 11 kB / 0.9526 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.536e-05/0.5259, allocations: 323.9 kB / 0.9529 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.4e-05/0.526, allocations: 17.55 kB / 0.9529 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.47e-05/0.5261, allocations: 21.77 kB / 0.9529 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001484/0.5262, allocations: 39.86 kB / 0.953 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.5262, allocations: 3.938 kB / 0.953 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001793/0.5264, allocations: 64.06 kB / 0.953 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/0.5264, allocations: 5.406 kB / 0.9531 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.5265, allocations: 4 kB / 0.9531 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.016e-05/0.5265, allocations: 0 / 0.9531 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.163e-05/0.5266, allocations: 11.42 kB / 0.9531 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/0.5266, allocations: 0 / 0.9531 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.818e-05/0.5266, allocations: 6.984 kB / 0.9531 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.949e-06/0.5266, allocations: 1.531 kB / 0.9531 GB, free: 6.098 MB / 0.7169 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 4.036e-05/0.5267, allocations: 115.1 kB / 0.9532 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.446e-05/0.5267, allocations: 5.438 kB / 0.9532 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002106/0.5269, allocations: 74.16 kB / 0.9533 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.5269, allocations: 0 / 0.9533 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.5269, allocations: 1.375 kB / 0.9533 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.5269, allocations: 3.938 kB / 0.9533 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001068/0.5271, allocations: 165.7 kB / 0.9534 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.5271, allocations: 0 / 0.9534 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.004e-05/0.5271, allocations: 14.67 kB / 0.9534 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.5271, allocations: 32 / 0.9534 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.302e-06/0.5271, allocations: 5.5 kB / 0.9534 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.5271, allocations: 0 / 0.9534 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.5272, allocations: 0 / 0.9534 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002001/0.5274, allocations: 167.9 kB / 0.9536 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.565e-05/0.5274, allocations: 77.11 kB / 0.9537 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.154e-05/0.5274, allocations: 1.219 kB / 0.9537 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.877e-05/0.5275, allocations: 11.7 kB / 0.9537 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.442e-05/0.5275, allocations: 5.125 kB / 0.9537 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-06/0.5275, allocations: 1.312 kB / 0.9537 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.102e-05/0.5276, allocations: 78.34 kB / 0.9538 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5276, allocations: 0 / 0.9538 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000219/0.5278, allocations: 3.812 kB / 0.9538 GB, free: 5.355 MB / 0.7169 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.000379/0.5282, allocations: 0.6988 MB / 0.9545 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000205/0.5284, allocations: 37.03 kB / 0.9545 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.5284, allocations: 5.438 kB / 0.9545 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.353e-05/0.5285, allocations: 22.86 kB / 0.9545 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002589/0.5287, allocations: 7.453 kB / 0.9545 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003544/0.5291, allocations: 135.9 kB / 0.9547 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.015e-05/0.5292, allocations: 0.6769 MB / 0.9553 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.922e-05/0.5292, allocations: 1.375 kB / 0.9553 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.296e-05/0.5293, allocations: 20.42 kB / 0.9553 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of SimCode: time 3.5e-07/0.5293, allocations: 0 / 0.9553 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01507/0.5444, allocations: 1.236 MB / 0.9565 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.115/7.659, allocations: 10.7 kB / 0.9566 GB, free: 3.043 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Cos.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Cos.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Cos.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Cos.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Cos_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_Cos.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Cos.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Cos_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Cos.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Cos.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches