Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.006287/0.006287, allocations: 100.6 kB / 15.73 MB, free: 6.012 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.001278/0.001278, allocations: 189.9 kB / 16.67 MB, free: 5.934 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.355/1.355, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.455/2.455, allocations: 437 MB / 0.7105 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001494, allocations: 71.83 kB / 1.018 GB, free: 9.855 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.915/0.9166, allocations: 151.6 MB / 1.166 GB, free: 3.754 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant): time 0.001792/0.9184, allocations: 0.5588 MB / 1.167 GB, free: 3.199 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 4.139e-05/0.9185, allocations: 0 / 1.167 GB, free: 3.199 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.916e-05/0.9185, allocations: 3.938 kB / 1.167 GB, free: 3.195 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.942e-05/0.9186, allocations: 3.938 kB / 1.167 GB, free: 3.191 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 2.907e-05/0.9186, allocations: 4 kB / 1.167 GB, free: 3.188 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 3.396e-05/0.9186, allocations: 0 / 1.167 GB, free: 3.188 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 5.273e-05/0.9187, allocations: 4 kB / 1.167 GB, free: 3.184 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.54e-05/0.9188, allocations: 10.02 kB / 1.167 GB, free: 3.176 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 1.328e-05/0.9188, allocations: 0 / 1.167 GB, free: 3.176 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 1.692e-05/0.9188, allocations: 0 / 1.167 GB, free: 3.176 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.113e-05/0.9188, allocations: 3.938 kB / 1.167 GB, free: 3.172 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 3.387e-06/0.9188, allocations: 0 / 1.167 GB, free: 3.172 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.695e-05/0.9188, allocations: 3.984 kB / 1.167 GB, free: 3.168 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.686e-05/0.9189, allocations: 4 kB / 1.167 GB, free: 3.164 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 6.783e-05/0.9189, allocations: 3.938 kB / 1.167 GB, free: 3.16 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.919, allocations: 4 kB / 1.167 GB, free: 3.156 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.743e-06/0.919, allocations: 0 / 1.167 GB, free: 3.156 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.54e-06/0.919, allocations: 0 / 1.167 GB, free: 3.156 MB / 0.8887 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.0003299/0.9193, allocations: 319.5 kB / 1.167 GB, free: 2.793 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.9194, allocations: 8.922 kB / 1.167 GB, free: 2.785 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.669e-05/0.9194, allocations: 30.75 kB / 1.167 GB, free: 2.746 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.733e-05/0.9194, allocations: 4.938 kB / 1.167 GB, free: 2.742 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001174/0.9196, allocations: 160.4 kB / 1.167 GB, free: 2.547 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.416e-05/0.9196, allocations: 384 / 1.167 GB, free: 2.547 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.873e-06/0.9196, allocations: 8.312 kB / 1.167 GB, free: 2.539 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.86e-05/0.9197, allocations: 26.27 kB / 1.167 GB, free: 2.508 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.9197, allocations: 3.938 kB / 1.167 GB, free: 2.504 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.083e-06/0.9197, allocations: 4 kB / 1.167 GB, free: 2.5 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.127e-06/0.9197, allocations: 0 / 1.167 GB, free: 2.5 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.597e-05/0.9197, allocations: 0 / 1.167 GB, free: 2.5 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003133/0.92, allocations: 379.5 kB / 1.168 GB, free: 2.078 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 8.236e-05/0.9201, allocations: 181 kB / 1.168 GB, free: 1.891 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.911e-05/0.9202, allocations: 80.14 kB / 1.168 GB, free: 1.809 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.943e-05/0.9202, allocations: 79.27 kB / 1.168 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.384e-05/0.9203, allocations: 109.9 kB / 1.168 GB, free: 1.613 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=0): time 9.61e-07/0.9203, allocations: 0 / 1.168 GB, free: 1.613 MB / 0.8887 GB Notification: Performance of matching and sorting (n=0): time 7.607e-05/0.9204, allocations: 25.7 kB / 1.168 GB, free: 1.582 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.189e-05/0.9204, allocations: 134.6 kB / 1.168 GB, free: 1.438 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.79e-05/0.9205, allocations: 97.86 kB / 1.168 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.9206, allocations: 25.7 kB / 1.168 GB, free: 1.301 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.204e-05/0.9206, allocations: 80.14 kB / 1.168 GB, free: 1.219 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.324e-06/0.9206, allocations: 0 / 1.168 GB, free: 1.219 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.279e-05/0.9206, allocations: 9.719 kB / 1.168 GB, free: 1.203 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001209/0.9208, allocations: 319 kB / 1.169 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.631e-06/0.9208, allocations: 4 kB / 1.169 GB, free: 0.8789 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.467e-06/0.9208, allocations: 3.938 kB / 1.169 GB, free: 0.875 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.448e-05/0.9208, allocations: 75.28 kB / 1.169 GB, free: 0.8008 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.53e-05/0.9208, allocations: 79.22 kB / 1.169 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of matching and sorting (n=0) (initialization): time 5.427e-05/0.9209, allocations: 32.16 kB / 1.169 GB, free: 0.6875 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 3.68e-05/0.9209, allocations: 79.28 kB / 1.169 GB, free: 0.6094 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.781e-05/0.921, allocations: 83.25 kB / 1.169 GB, free: 0.5273 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.735e-05/0.921, allocations: 158.6 kB / 1.169 GB, free: 380 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.154e-05/0.9211, allocations: 87.16 kB / 1.169 GB, free: 292 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.115e-05/0.9211, allocations: 154.5 kB / 1.169 GB, free: 136 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.356e-05/0.9212, allocations: 75.28 kB / 1.17 GB, free: 60 kB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.574e-05/0.9212, allocations: 79.22 kB / 1.17 GB, free: 15.98 MB / 0.9044 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.0001053/0.9213, allocations: 272.3 kB / 1.17 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.505e-05/0.9214, allocations: 101 kB / 1.17 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.643e-05/0.9215, allocations: 108 kB / 1.17 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-05/0.9215, allocations: 184.2 kB / 1.17 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.69e-05/0.9216, allocations: 176.3 kB / 1.17 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.073e-05/0.9217, allocations: 180.2 kB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002169/0.9219, allocations: 413.2 kB / 1.171 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.072e-05/0.9219, allocations: 104.9 kB / 1.171 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.262e-05/0.9219, allocations: 105 kB / 1.171 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.232e-05/0.922, allocations: 176.3 kB / 1.171 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.698e-05/0.9221, allocations: 184.2 kB / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.797e-05/0.9221, allocations: 184.2 kB / 1.172 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.034e-05/0.9222, allocations: 188.2 kB / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001225/0.9223, allocations: 304.1 kB / 1.172 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.81e-05/0.9224, allocations: 186.1 kB / 1.172 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.135e-05/0.9225, allocations: 184.3 kB / 1.173 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.513e-05/0.9225, allocations: 112.9 kB / 1.173 GB, free: 12.67 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.413e-05/0.9226, allocations: 176.3 kB / 1.173 GB, free: 12.49 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.335e-05/0.9226, allocations: 104.9 kB / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.571e-05/0.9227, allocations: 79.28 kB / 1.173 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9227, allocations: 0 / 1.173 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003006/0.923, allocations: 0 / 1.173 GB, free: 12.3 MB / 0.9044 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.0004114/0.9234, allocations: 0.8127 MB / 1.174 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 4.019e-05/0.9235, allocations: 4 kB / 1.174 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/0.9235, allocations: 4 kB / 1.174 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 1.293e-06/0.9235, allocations: 7.875 kB / 1.174 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003372/0.9238, allocations: 459.7 kB / 1.174 GB, free: 10.99 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000983/0.9248, allocations: 1.516 MB / 1.176 GB, free: 9.398 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002384/0.9251, allocations: 0.6768 MB / 1.176 GB, free: 8.695 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 7.865e-06/0.9251, allocations: 0 / 1.176 GB, free: 8.695 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.28e-05/0.9251, allocations: 7.438 kB / 1.176 GB, free: 8.688 MB / 0.9044 GB Notification: Performance of SimCode: time 2.3e-07/0.9251, allocations: 0 / 1.176 GB, free: 8.688 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01644/0.9415, allocations: 0.922 MB / 1.177 GB, free: 7.875 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.678/8.619, allocations: 17.55 kB / 1.177 GB, free: 7.859 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Constant.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Constant.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches