Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Tan.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.Tan,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Tan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Tan,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Tan",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.001707/0.001707, 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.002036/0.002036, allocations: 194.8 kB / 16.53 MB, free: 6.699 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.499/1.499, allocations: 222.9 MB / 240.2 MB, free: 4.375 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.44/2.44, allocations: 390.2 MB / 0.6647 GB, free: 288 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 67.89 kB / 0.8127 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7623/0.7637, allocations: 140.4 MB / 0.9497 GB, free: 9.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Tan): time 0.002134/0.7659, allocations: 0.6559 MB / 0.9504 GB, free: 8.617 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008558/0.7668, allocations: 0.8037 MB / 0.9512 GB, free: 7.961 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.809e-05/0.7668, allocations: 4 kB / 0.9512 GB, free: 7.957 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.969e-05/0.7669, allocations: 0 / 0.9512 GB, free: 7.957 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.797e-05/0.7669, allocations: 9.266 kB / 0.9512 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000153/0.7671, allocations: 10.23 kB / 0.9512 GB, free: 7.941 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.877e-05/0.7672, allocations: 24.83 kB / 0.9512 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001126/0.7673, allocations: 2.844 kB / 0.9512 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.464e-05/0.7674, allocations: 12.27 kB / 0.9512 GB, free: 7.918 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.176e-05/0.7674, allocations: 10.34 kB / 0.9512 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.751e-05/0.7674, allocations: 1.562 kB / 0.9512 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.11e-05/0.7675, allocations: 3 kB / 0.9512 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.591e-05/0.7675, allocations: 4 kB / 0.9512 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.066e-05/0.7675, allocations: 18.66 kB / 0.9513 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.851e-05/0.7676, allocations: 19.56 kB / 0.9513 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.7676, allocations: 0 / 0.9513 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.543e-06/0.7676, allocations: 3.938 kB / 0.9513 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.141e-06/0.7676, allocations: 1.5 kB / 0.9513 GB, free: 7.871 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.0004442/0.7681, allocations: 337.8 kB / 0.9516 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/0.7681, allocations: 9.75 kB / 0.9516 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.595e-05/0.7682, allocations: 35.66 kB / 0.9517 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.053e-05/0.7682, allocations: 6 kB / 0.9517 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.173e-05/0.7683, allocations: 173.6 kB / 0.9518 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.7683, allocations: 1.594 kB / 0.9518 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.277e-06/0.7683, allocations: 1.656 kB / 0.9518 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001868/0.7685, allocations: 45.78 kB / 0.9519 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.7685, allocations: 3.938 kB / 0.9519 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.999e-06/0.7686, allocations: 3.984 kB / 0.9519 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.7686, allocations: 1.281 kB / 0.9519 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001676/0.7687, allocations: 33.97 kB / 0.9519 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002889/0.769, allocations: 245.5 kB / 0.9521 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001247/0.7692, allocations: 42.66 kB / 0.9522 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.767e-05/0.7693, allocations: 23.03 kB / 0.9522 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.359e-05/0.7693, allocations: 0 / 0.9522 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.16e-05/0.7693, allocations: 36.12 kB / 0.9522 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.984e-06/0.7693, allocations: 3.984 kB / 0.9523 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003515/0.7697, allocations: 80.11 kB / 0.9523 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.219e-05/0.7697, allocations: 52.44 kB / 0.9524 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.033e-05/0.7698, allocations: 107.1 kB / 0.9525 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.987e-06/0.7698, allocations: 25.7 kB / 0.9525 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.371e-05/0.7699, allocations: 81.33 kB / 0.9526 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.86e-05/0.7699, allocations: 16.84 kB / 0.9526 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.649e-05/0.7699, allocations: 11.66 kB / 0.9526 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.394e-05/0.77, allocations: 316 kB / 0.9529 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.029e-05/0.7701, allocations: 17.02 kB / 0.9529 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.935e-05/0.7701, allocations: 21.7 kB / 0.9529 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00014/0.7703, allocations: 35.67 kB / 0.953 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.7703, allocations: 3.938 kB / 0.953 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001777/0.7705, allocations: 72.81 kB / 0.9531 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.7705, allocations: 4.562 kB / 0.9531 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.7705, allocations: 5.375 kB / 0.9531 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.7705, allocations: 0 / 0.9531 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001014/0.7706, allocations: 10.36 kB / 0.9531 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.7706, allocations: 0 / 0.9531 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.788e-05/0.7707, allocations: 7.547 kB / 0.9531 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-06/0.7707, allocations: 1.062 kB / 0.9531 GB, free: 6.008 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 6.534e-05/0.7708, allocations: 110.9 kB / 0.9532 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.331e-05/0.7708, allocations: 5.219 kB / 0.9532 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002127/0.771, allocations: 83.25 kB / 0.9533 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.771, allocations: 0 / 0.9533 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.771, allocations: 0 / 0.9533 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.7711, allocations: 1.312 kB / 0.9533 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001197/0.7712, allocations: 161.5 kB / 0.9534 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.7712, allocations: 4 kB / 0.9534 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.46e-05/0.7712, allocations: 5.938 kB / 0.9534 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.7713, allocations: 9.234 kB / 0.9534 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.373e-06/0.7713, allocations: 0 / 0.9534 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.7713, allocations: 1.5 kB / 0.9534 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.7713, allocations: 0 / 0.9534 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000196/0.7715, allocations: 163.1 kB / 0.9536 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.082e-05/0.7715, allocations: 77.11 kB / 0.9537 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.223e-05/0.7715, allocations: 1.406 kB / 0.9537 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.234e-05/0.7716, allocations: 11.7 kB / 0.9537 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.897e-05/0.7716, allocations: 1.375 kB / 0.9537 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-06/0.7717, allocations: 5.125 kB / 0.9537 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.715e-05/0.7717, allocations: 81.53 kB / 0.9538 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.142e-06/0.7717, allocations: 1.25 kB / 0.9538 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002106/0.7719, allocations: 6.375 kB / 0.9538 GB, free: 5.266 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.0004763/0.7724, allocations: 0.6962 MB / 0.9545 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002125/0.7726, allocations: 37.14 kB / 0.9545 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.7726, allocations: 3.938 kB / 0.9545 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.56e-05/0.7727, allocations: 23.64 kB / 0.9545 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003355/0.7731, allocations: 8.203 kB / 0.9545 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004373/0.7735, allocations: 136 kB / 0.9547 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000152/0.7737, allocations: 0.6767 MB / 0.9553 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.52e-05/0.7737, allocations: 1.531 kB / 0.9553 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.092e-05/0.7738, allocations: 21.02 kB / 0.9553 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of SimCode: time 3.21e-07/0.7738, allocations: 0 / 0.9553 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01918/0.7929, allocations: 1.244 MB / 0.9566 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.631/8.424, allocations: 6.109 kB / 0.9566 GB, free: 2.957 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Tan.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Tan.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Tan.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Tan.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Tan_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_Tan.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Tan.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Tan_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Tan.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Tan.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches