Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.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.Logical.Sources.Validation.Constant,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Constant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Constant",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.001208/0.001208, allocations: 103.4 kB / 15.34 MB, free: 0.5039 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.001466/0.001466, allocations: 192.5 kB / 16.25 MB, free: 6.633 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.417/1.417, allocations: 222.9 MB / 239.9 MB, free: 4.539 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.469/2.469, allocations: 390.2 MB / 0.6644 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001709/0.001709, allocations: 67.83 kB / 0.8122 GB, free: 14.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.704/0.7058, allocations: 140.4 MB / 0.9493 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant): time 0.001792/0.7076, allocations: 0.62 MB / 0.9499 GB, free: 8.707 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 3.109e-05/0.7077, allocations: 0 / 0.9499 GB, free: 8.707 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.084e-05/0.7077, allocations: 1.406 kB / 0.9499 GB, free: 8.707 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.007e-05/0.7077, allocations: 0 / 0.9499 GB, free: 8.707 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.245e-05/0.7078, allocations: 0 / 0.9499 GB, free: 8.707 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 3.283e-05/0.7078, allocations: 0 / 0.9499 GB, free: 8.707 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.224e-05/0.7078, allocations: 5.531 kB / 0.9499 GB, free: 8.703 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.056e-05/0.7079, allocations: 2.688 kB / 0.9499 GB, free: 8.703 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.534e-05/0.7079, allocations: 7.984 kB / 0.9499 GB, free: 8.695 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 1.559e-05/0.7079, allocations: 3.938 kB / 0.9499 GB, free: 8.691 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.113e-05/0.708, allocations: 1.406 kB / 0.9499 GB, free: 8.691 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 3.567e-06/0.708, allocations: 0 / 0.9499 GB, free: 8.691 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.077e-05/0.708, allocations: 0 / 0.9499 GB, free: 8.691 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.029e-05/0.708, allocations: 1.406 kB / 0.9499 GB, free: 8.691 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 4.391e-05/0.7081, allocations: 0 / 0.9499 GB, free: 8.691 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.7081, allocations: 1.688 kB / 0.9499 GB, free: 8.691 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.442e-06/0.7081, allocations: 4 kB / 0.9499 GB, free: 8.688 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.06e-06/0.7081, allocations: 3.984 kB / 0.9499 GB, free: 8.684 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002001/0.7083, allocations: 310 kB / 0.9502 GB, free: 8.332 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.7083, allocations: 10.25 kB / 0.9502 GB, free: 8.332 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.397e-05/0.7084, allocations: 34.69 kB / 0.9502 GB, free: 8.289 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.873e-05/0.7084, allocations: 6.062 kB / 0.9502 GB, free: 8.285 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.486e-05/0.7085, allocations: 164.4 kB / 0.9504 GB, free: 8.086 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.7085, allocations: 5.875 kB / 0.9504 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.342e-06/0.7085, allocations: 384 / 0.9504 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.868e-05/0.7086, allocations: 32.2 kB / 0.9504 GB, free: 8.047 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.7086, allocations: 3.938 kB / 0.9504 GB, free: 8.043 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.242e-06/0.7086, allocations: 3.938 kB / 0.9504 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-06/0.7086, allocations: 1.188 kB / 0.9504 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.361e-05/0.7086, allocations: 1.562 kB / 0.9504 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002031/0.7088, allocations: 382.5 kB / 0.9508 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.243e-05/0.7089, allocations: 174.2 kB / 0.951 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.506e-05/0.7089, allocations: 80.14 kB / 0.9511 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.294e-05/0.7089, allocations: 79.28 kB / 0.9511 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.03e-05/0.7089, allocations: 107.2 kB / 0.9512 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=0): time 8.82e-07/0.7089, allocations: 0 / 0.9512 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of matching and sorting (n=0): time 5.936e-05/0.709, allocations: 30.83 kB / 0.9513 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.98e-05/0.709, allocations: 131.8 kB / 0.9514 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.553e-05/0.7091, allocations: 96.44 kB / 0.9515 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.951e-06/0.7091, allocations: 27.27 kB / 0.9515 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.284e-05/0.7091, allocations: 84.14 kB / 0.9516 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.804e-06/0.7091, allocations: 0 / 0.9516 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.638e-05/0.7091, allocations: 11.19 kB / 0.9516 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.683e-05/0.7092, allocations: 310.8 kB / 0.9519 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.627e-06/0.7092, allocations: 5.469 kB / 0.9519 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.545e-06/0.7092, allocations: 0 / 0.9519 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.113e-05/0.7092, allocations: 75.28 kB / 0.952 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.017e-06/0.7092, allocations: 80.53 kB / 0.952 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of matching and sorting (n=0) (initialization): time 4.579e-05/0.7093, allocations: 31.3 kB / 0.9521 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.7093, allocations: 84.58 kB / 0.9522 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/0.7093, allocations: 77.25 kB / 0.9522 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.598e-05/0.7094, allocations: 150.6 kB / 0.9524 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.007e-05/0.7094, allocations: 88.66 kB / 0.9525 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.734e-05/0.7094, allocations: 150.6 kB / 0.9526 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.581e-05/0.7095, allocations: 89.11 kB / 0.9527 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.758e-06/0.7095, allocations: 75.28 kB / 0.9528 GB, free: 5.555 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 (0): * Single equations (assignments): 0 * 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.302e-05/0.7095, allocations: 262.1 kB / 0.953 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.589e-05/0.7096, allocations: 114.3 kB / 0.9531 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.145e-05/0.7096, allocations: 113.5 kB / 0.9532 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.056e-05/0.7096, allocations: 181.7 kB / 0.9534 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.389e-05/0.7097, allocations: 181.6 kB / 0.9536 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.066e-05/0.7097, allocations: 177.5 kB / 0.9537 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001233/0.7098, allocations: 414.5 kB / 0.9541 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/0.7098, allocations: 102.2 kB / 0.9542 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.559e-05/0.7098, allocations: 102.4 kB / 0.9543 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.211e-05/0.7099, allocations: 184.2 kB / 0.9545 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.423e-05/0.7099, allocations: 181.7 kB / 0.9547 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.346e-05/0.7099, allocations: 181.6 kB / 0.9549 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.313e-05/0.71, allocations: 181.9 kB / 0.955 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.815e-05/0.71, allocations: 318.7 kB / 0.9553 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.994e-05/0.7101, allocations: 179.8 kB / 0.9555 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.087e-05/0.7101, allocations: 181.8 kB / 0.9557 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.851e-05/0.7101, allocations: 109 kB / 0.9558 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.477e-05/0.7102, allocations: 185.9 kB / 0.956 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.299e-05/0.7102, allocations: 104.9 kB / 0.9561 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.961e-05/0.7102, allocations: 77.91 kB / 0.9561 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7102, allocations: 0 / 0.9561 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002387/0.7105, allocations: 1.281 kB / 0.9561 GB, free: 1.898 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 (0): * Single equations (assignments): 0 * 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.0002529/0.7107, allocations: 0.8104 MB / 0.9569 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 4.371e-05/0.7108, allocations: 3.938 kB / 0.9569 GB, free: 1.078 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.7108, allocations: 0 / 0.9569 GB, free: 1.078 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.633e-06/0.7108, allocations: 1.562 kB / 0.9569 GB, free: 1.078 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002543/0.711, allocations: 461 kB / 0.9574 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008078/0.7119, allocations: 1.524 MB / 0.9589 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001906/0.7121, allocations: 0.674 MB / 0.9595 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.003e-06/0.7121, allocations: 0 / 0.9595 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.074e-05/0.7121, allocations: 7.438 kB / 0.9595 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of SimCode: time 2.21e-07/0.7121, allocations: 0 / 0.9595 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.318/2.03, allocations: 0.8189 MB / 0.9603 GB, free: 13.92 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002376/2.03, allocations: 210.9 kB / 0.9605 GB, free: 13.67 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.74/3.771, allocations: 4.281 kB / 0.9605 GB, free: 13.67 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Constant_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Constant.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Constant.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches