Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.Logical.Sources.Validation.Constant,fileNamePrefix="Buildings_latest_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_latest_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.0008649/0.0008649, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005186/0.005186, allocations: 168.7 kB / 16.26 MB, free: 6.652 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.421/1.421, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.794/2.794, allocations: 462.6 MB / 0.7364 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000403/0.000403, allocations: 15.44 kB / 0.9029 GB, free: 36.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3722/0.3726, allocations: 159.6 MB / 1.059 GB, free: 4.883 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant): time 0.0007869/0.3734, allocations: 286 kB / 1.059 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 3.942e-05/0.3735, allocations: 0 / 1.059 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.37e-05/0.3735, allocations: 0 / 1.059 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.422e-05/0.3735, allocations: 8 kB / 1.059 GB, free: 4.598 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.431e-05/0.3736, allocations: 3.938 kB / 1.059 GB, free: 4.594 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 3.125e-05/0.3736, allocations: 3.938 kB / 1.059 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.857e-05/0.3737, allocations: 4 kB / 1.059 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.539e-05/0.3737, allocations: 0 / 1.059 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.688e-05/0.3737, allocations: 0 / 1.059 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 1.932e-05/0.3738, allocations: 4 kB / 1.059 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.321e-05/0.3738, allocations: 0 / 1.059 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 4.409e-06/0.3738, allocations: 0 / 1.059 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.267e-05/0.3738, allocations: 0 / 1.059 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.172e-05/0.3739, allocations: 25.7 kB / 1.059 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 5.625e-05/0.3739, allocations: 15.92 kB / 1.059 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.3739, allocations: 0 / 1.059 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.076e-06/0.3739, allocations: 0 / 1.059 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.258e-06/0.3739, allocations: 0 / 1.059 GB, free: 4.535 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000277/0.3742, allocations: 307.6 kB / 1.059 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.3743, allocations: 12.03 kB / 1.059 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.537e-05/0.3743, allocations: 34.75 kB / 1.059 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.155e-05/0.3743, allocations: 4.938 kB / 1.059 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001253/0.3745, allocations: 164.4 kB / 1.06 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.154e-05/0.3745, allocations: 4.375 kB / 1.06 GB, free: 3.922 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.012e-06/0.3745, allocations: 384 / 1.06 GB, free: 3.922 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.608e-05/0.3746, allocations: 30.2 kB / 1.06 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.3746, allocations: 7.938 kB / 1.06 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.612e-06/0.3746, allocations: 0 / 1.06 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.3746, allocations: 0 / 1.06 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.55e-05/0.3747, allocations: 3.984 kB / 1.06 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002975/0.375, allocations: 383.5 kB / 1.06 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.146e-05/0.375, allocations: 173 kB / 1.06 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.919e-05/0.3751, allocations: 80.14 kB / 1.06 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3e-05/0.3751, allocations: 79.28 kB / 1.06 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.737e-05/0.3752, allocations: 113.9 kB / 1.06 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=0): time 9.02e-07/0.3752, allocations: 0 / 1.06 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of matching and sorting (n=0): time 6.672e-05/0.3752, allocations: 33.73 kB / 1.061 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.767e-05/0.3753, allocations: 126.7 kB / 1.061 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.401e-05/0.3754, allocations: 97.84 kB / 1.061 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 9.688e-06/0.3754, allocations: 25.7 kB / 1.061 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.149e-05/0.3754, allocations: 84.14 kB / 1.061 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.044e-06/0.3755, allocations: 3.984 kB / 1.061 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.699e-05/0.3755, allocations: 13.66 kB / 1.061 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.811e-05/0.3756, allocations: 315 kB / 1.061 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.865e-06/0.3756, allocations: 7.938 kB / 1.061 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.115e-06/0.3756, allocations: 0 / 1.061 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.245e-05/0.3756, allocations: 75.28 kB / 1.061 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-05/0.3757, allocations: 83.16 kB / 1.061 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of matching and sorting (n=0) (initialization): time 4.691e-05/0.3757, allocations: 25.7 kB / 1.061 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.048e-05/0.3757, allocations: 83.28 kB / 1.061 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.654e-05/0.3758, allocations: 83.2 kB / 1.061 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.49e-05/0.3758, allocations: 154.6 kB / 1.062 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.344e-05/0.3759, allocations: 75.28 kB / 1.062 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.519e-05/0.3759, allocations: 166.5 kB / 1.062 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.071e-05/0.376, allocations: 75.28 kB / 1.062 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.342e-05/0.376, allocations: 79.22 kB / 1.062 GB, free: 1.348 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 (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 0.0001016/0.3761, allocations: 268.3 kB / 1.062 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.541e-05/0.3762, allocations: 105 kB / 1.062 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.237e-05/0.3762, allocations: 108.1 kB / 1.062 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-05/0.3763, allocations: 180.2 kB / 1.063 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.42e-05/0.3764, allocations: 180.3 kB / 1.063 GB, free: 500 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-05/0.3764, allocations: 180.2 kB / 1.063 GB, free: 312 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002293/0.3766, allocations: 409.2 kB / 1.063 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.973e-05/0.3767, allocations: 105 kB / 1.063 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.489e-05/0.3767, allocations: 108.9 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.024e-05/0.3768, allocations: 180.2 kB / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.266e-05/0.3768, allocations: 180.5 kB / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.086e-05/0.3769, allocations: 184.3 kB / 1.064 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.576e-05/0.377, allocations: 184.2 kB / 1.064 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001196/0.3771, allocations: 307.8 kB / 1.065 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.485e-05/0.3771, allocations: 185.9 kB / 1.065 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.621e-05/0.3772, allocations: 176.3 kB / 1.065 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.825e-05/0.3773, allocations: 116.9 kB / 1.065 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.519e-05/0.3774, allocations: 176.3 kB / 1.065 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.533e-05/0.3774, allocations: 105 kB / 1.065 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.372e-05/0.3774, allocations: 79.28 kB / 1.065 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3774, allocations: 0 / 1.065 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002384/0.3777, allocations: 0 / 1.065 GB, free: 13.68 MB / 0.8262 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.0003789/0.3781, allocations: 0.8127 MB / 1.066 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 3.662e-05/0.3781, allocations: 0 / 1.066 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3781, allocations: 3.938 kB / 1.066 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.062e-06/0.3781, allocations: 0 / 1.066 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003628/0.3785, allocations: 0.5302 MB / 1.067 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008972/0.3794, allocations: 1.518 MB / 1.068 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002163/0.3796, allocations: 0.677 MB / 1.069 GB, free: 10 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.546e-06/0.3796, allocations: 0 / 1.069 GB, free: 10 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.936e-05/0.3797, allocations: 7.438 kB / 1.069 GB, free: 9.992 MB / 0.8262 GB Notification: Performance of SimCode: time 4.31e-07/0.3797, allocations: 4 kB / 1.069 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1022/0.4819, allocations: 0.7269 MB / 1.07 GB, free: 9.426 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002313/0.4822, allocations: 225.5 kB / 1.07 GB, free: 9.168 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.708/2.19, allocations: 0 / 1.07 GB, free: 9.168 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Constant_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Constant.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Constant.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches