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.007484/0.007484, allocations: 98.45 kB / 15.73 MB, free: 6.066 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.00168/0.00168, allocations: 195.9 kB / 16.68 MB, free: 5.973 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.429/1.429, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.548/2.548, allocations: 437.1 MB / 0.7105 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 67.89 kB / 1.018 GB, free: 9.871 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.825/0.8265, allocations: 151.6 MB / 1.166 GB, free: 3.781 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant): time 0.001714/0.8283, allocations: 0.5585 MB / 1.167 GB, free: 3.227 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 4.016e-05/0.8284, allocations: 7.938 kB / 1.167 GB, free: 3.219 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.014e-05/0.8284, allocations: 0 / 1.167 GB, free: 3.219 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.331e-05/0.8284, allocations: 0 / 1.167 GB, free: 3.219 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 2.831e-05/0.8285, allocations: 0 / 1.167 GB, free: 3.219 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 3.389e-05/0.8285, allocations: 0 / 1.167 GB, free: 3.219 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 4.649e-05/0.8286, allocations: 11.92 kB / 1.167 GB, free: 3.207 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.116e-05/0.8286, allocations: 10.02 kB / 1.167 GB, free: 3.199 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 1.344e-05/0.8286, allocations: 0 / 1.167 GB, free: 3.199 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 1.701e-05/0.8287, allocations: 0 / 1.167 GB, free: 3.199 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.075e-05/0.8287, allocations: 0 / 1.167 GB, free: 3.199 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 3.557e-06/0.8287, allocations: 4 kB / 1.167 GB, free: 3.195 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.069e-05/0.8287, allocations: 0 / 1.167 GB, free: 3.195 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 1.979e-05/0.8287, allocations: 0 / 1.167 GB, free: 3.195 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 6.495e-05/0.8288, allocations: 7.938 kB / 1.167 GB, free: 3.188 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.8288, allocations: 0 / 1.167 GB, free: 3.188 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.684e-06/0.8288, allocations: 0 / 1.167 GB, free: 3.188 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.135e-06/0.8288, allocations: 0 / 1.167 GB, free: 3.188 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.0002944/0.8291, allocations: 321.6 kB / 1.167 GB, free: 2.824 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.8292, allocations: 8.922 kB / 1.167 GB, free: 2.816 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.102e-05/0.8292, allocations: 30.75 kB / 1.167 GB, free: 2.777 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.842e-05/0.8292, allocations: 8.875 kB / 1.167 GB, free: 2.77 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001229/0.8294, allocations: 164.4 kB / 1.167 GB, free: 2.57 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.02e-05/0.8294, allocations: 384 / 1.167 GB, free: 2.57 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.015e-06/0.8294, allocations: 384 / 1.167 GB, free: 2.57 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.251e-05/0.8295, allocations: 26.27 kB / 1.167 GB, free: 2.539 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.605e-06/0.8295, allocations: 3.938 kB / 1.167 GB, free: 2.535 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.824e-06/0.8295, allocations: 3.984 kB / 1.167 GB, free: 2.531 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.515e-06/0.8295, allocations: 4 kB / 1.167 GB, free: 2.527 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.573e-05/0.8295, allocations: 4 kB / 1.167 GB, free: 2.523 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002814/0.8298, allocations: 387.4 kB / 1.168 GB, free: 2.094 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 8.035e-05/0.8299, allocations: 173.1 kB / 1.168 GB, free: 1.914 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.624e-05/0.8299, allocations: 80.14 kB / 1.168 GB, free: 1.832 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.333e-05/0.83, allocations: 75.28 kB / 1.168 GB, free: 1.758 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.424e-05/0.83, allocations: 109.8 kB / 1.168 GB, free: 1.641 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=0): time 1.143e-06/0.83, allocations: 0 / 1.168 GB, free: 1.641 MB / 0.8887 GB Notification: Performance of matching and sorting (n=0): time 6.341e-05/0.8301, allocations: 37.55 kB / 1.168 GB, free: 1.598 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.733e-05/0.8302, allocations: 126.7 kB / 1.168 GB, free: 1.461 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.033e-05/0.8302, allocations: 97.86 kB / 1.168 GB, free: 1.355 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.156e-05/0.8302, allocations: 25.7 kB / 1.168 GB, free: 1.324 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.507e-05/0.8303, allocations: 84.25 kB / 1.168 GB, free: 1.238 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.184e-06/0.8303, allocations: 4 kB / 1.168 GB, free: 1.234 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.088e-05/0.8303, allocations: 9.719 kB / 1.168 GB, free: 1.219 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001008/0.8304, allocations: 314.8 kB / 1.169 GB, free: 0.9023 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.278e-06/0.8304, allocations: 0 / 1.169 GB, free: 0.9023 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.948e-06/0.8304, allocations: 0 / 1.169 GB, free: 0.9023 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.497e-05/0.8305, allocations: 75.28 kB / 1.169 GB, free: 0.8281 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.003e-05/0.8305, allocations: 79.22 kB / 1.169 GB, free: 0.75 MB / 0.8887 GB Notification: Performance of matching and sorting (n=0) (initialization): time 5.287e-05/0.8306, allocations: 36.09 kB / 1.169 GB, free: 0.7109 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 3.423e-05/0.8306, allocations: 91.22 kB / 1.169 GB, free: 0.6211 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.392e-05/0.8306, allocations: 75.31 kB / 1.169 GB, free: 0.5469 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.138e-05/0.8307, allocations: 158.6 kB / 1.169 GB, free: 400 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.51e-05/0.8307, allocations: 87.2 kB / 1.169 GB, free: 312 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.222e-05/0.8308, allocations: 150.6 kB / 1.169 GB, free: 160 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.565e-05/0.8309, allocations: 79.22 kB / 1.17 GB, free: 80 kB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.968e-05/0.8309, allocations: 79.28 kB / 1.17 GB, free: 0 / 0.8887 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.0001217/0.831, allocations: 268.3 kB / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.865e-05/0.8311, allocations: 101 kB / 1.17 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.674e-05/0.8311, allocations: 112 kB / 1.17 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.855e-05/0.8312, allocations: 176.3 kB / 1.17 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.546e-05/0.8313, allocations: 188.2 kB / 1.17 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-05/0.8313, allocations: 176.3 kB / 1.171 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002155/0.8315, allocations: 405.2 kB / 1.171 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.291e-05/0.8316, allocations: 108.9 kB / 1.171 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.92e-05/0.8316, allocations: 101 kB / 1.171 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.047e-05/0.8317, allocations: 180.2 kB / 1.171 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.499e-05/0.8318, allocations: 184.2 kB / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.11e-05/0.8318, allocations: 188.2 kB / 1.172 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.3e-05/0.8319, allocations: 180.3 kB / 1.172 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001252/0.832, allocations: 304.1 kB / 1.172 GB, free: 13.21 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.034e-05/0.8321, allocations: 190.1 kB / 1.172 GB, free: 13 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.741e-05/0.8322, allocations: 180.2 kB / 1.173 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.003e-05/0.8322, allocations: 112.9 kB / 1.173 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.679e-05/0.8323, allocations: 176.3 kB / 1.173 GB, free: 12.52 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.428e-05/0.8324, allocations: 108.9 kB / 1.173 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.468e-05/0.8324, allocations: 87.27 kB / 1.173 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8324, allocations: 4.094 kB / 1.173 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002551/0.8327, allocations: 0 / 1.173 GB, free: 12.32 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.0004361/0.8331, allocations: 0.797 MB / 1.174 GB, free: 11.49 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 4.335e-05/0.8332, allocations: 11.92 kB / 1.174 GB, free: 11.48 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.8332, allocations: 8 kB / 1.174 GB, free: 11.47 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 1.323e-06/0.8332, allocations: 0 / 1.174 GB, free: 11.47 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003544/0.8336, allocations: 451.7 kB / 1.174 GB, free: 11.02 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001013/0.8346, allocations: 1.524 MB / 1.176 GB, free: 9.422 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002293/0.8348, allocations: 0.6691 MB / 1.176 GB, free: 8.727 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 7.334e-06/0.8348, allocations: 7.938 kB / 1.176 GB, free: 8.719 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.001e-05/0.8349, allocations: 7.438 kB / 1.176 GB, free: 8.711 MB / 0.9044 GB Notification: Performance of SimCode: time 2e-07/0.8349, allocations: 0 / 1.176 GB, free: 8.711 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01847/0.8533, allocations: 0.9236 MB / 1.177 GB, free: 7.898 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.601/8.454, allocations: 7.766 kB / 1.177 GB, free: 7.895 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Constant_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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