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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 97.31 kB / 19.73 MB, free: 2.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001726/0.001726, allocations: 214.6 kB / 23.03 MB, free: 4.926 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.468/1.468, allocations: 230.6 MB / 256.8 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.18/3.18, allocations: 0.5003 GB / 0.8062 GB, free: 28.3 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001961/0.001961, allocations: 67.19 kB / 1.171 GB, free: 19.59 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3395/0.3415, allocations: 179 MB / 1.345 GB, free: 15.96 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant): time 0.001907/0.3434, allocations: 0.5477 MB / 1.346 GB, free: 15.41 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 4.069e-05/0.3434, allocations: 7.938 kB / 1.346 GB, free: 15.41 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.331e-05/0.3435, allocations: 0 / 1.346 GB, free: 15.41 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.609e-05/0.3435, allocations: 3.984 kB / 1.346 GB, free: 15.4 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 2.944e-05/0.3435, allocations: 0 / 1.346 GB, free: 15.4 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 3.308e-05/0.3435, allocations: 0 / 1.346 GB, free: 15.4 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 7.062e-05/0.3436, allocations: 11.94 kB / 1.346 GB, free: 15.39 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 5.799e-05/0.3437, allocations: 4 kB / 1.346 GB, free: 15.39 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 1.616e-05/0.3437, allocations: 3.984 kB / 1.346 GB, free: 15.38 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 1.848e-05/0.3437, allocations: 0 / 1.346 GB, free: 15.38 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.159e-05/0.3437, allocations: 0 / 1.346 GB, free: 15.38 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 3.246e-06/0.3437, allocations: 0 / 1.346 GB, free: 15.38 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.293e-05/0.3437, allocations: 0 / 1.346 GB, free: 15.38 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 2.41e-05/0.3438, allocations: 0 / 1.346 GB, free: 15.38 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 6.895e-05/0.3438, allocations: 7.938 kB / 1.346 GB, free: 15.38 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3438, allocations: 0 / 1.346 GB, free: 15.38 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3438, allocations: 0 / 1.346 GB, free: 15.38 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.462e-06/0.3438, allocations: 4 kB / 1.346 GB, free: 15.37 MB / 1.045 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.0003352/0.3442, allocations: 246.6 kB / 1.346 GB, free: 15.1 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.3442, allocations: 8.031 kB / 1.346 GB, free: 15.09 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.956e-05/0.3442, allocations: 4.188 kB / 1.346 GB, free: 15.09 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.178e-05/0.3443, allocations: 30.75 kB / 1.346 GB, free: 15.05 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.93e-05/0.3443, allocations: 0.9375 kB / 1.346 GB, free: 15.05 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001008/0.3444, allocations: 102.5 kB / 1.346 GB, free: 14.92 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.798e-06/0.3444, allocations: 384 / 1.346 GB, free: 14.92 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.107e-06/0.3444, allocations: 4.375 kB / 1.346 GB, free: 14.92 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.785e-05/0.3445, allocations: 41.94 kB / 1.346 GB, free: 14.87 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.024e-06/0.3445, allocations: 4 kB / 1.346 GB, free: 14.87 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.733e-06/0.3445, allocations: 0 / 1.346 GB, free: 14.87 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.3445, allocations: 0 / 1.346 GB, free: 14.87 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.934e-05/0.3445, allocations: 8 kB / 1.346 GB, free: 14.86 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003654/0.3449, allocations: 350.6 kB / 1.347 GB, free: 14.47 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001133/0.345, allocations: 173.5 kB / 1.347 GB, free: 14.29 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.095e-05/0.3451, allocations: 80.14 kB / 1.347 GB, free: 14.21 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 4.831e-05/0.3451, allocations: 79.28 kB / 1.347 GB, free: 14.13 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.861e-05/0.3452, allocations: 105.8 kB / 1.347 GB, free: 14.02 MB / 1.045 GB Notification: Performance of pre-optimization done (n=0): time 9.42e-07/0.3452, allocations: 0 / 1.347 GB, free: 14.02 MB / 1.045 GB Notification: Performance of matching and sorting (n=0): time 7.624e-05/0.3453, allocations: 33.73 kB / 1.347 GB, free: 13.98 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.724e-05/0.3453, allocations: 130.7 kB / 1.347 GB, free: 13.84 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.771e-05/0.3454, allocations: 97.8 kB / 1.347 GB, free: 13.73 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.406e-05/0.3454, allocations: 29.7 kB / 1.347 GB, free: 13.7 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 3.728e-05/0.3455, allocations: 80.14 kB / 1.347 GB, free: 13.62 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.893e-06/0.3455, allocations: 0 / 1.347 GB, free: 13.62 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.3e-05/0.3455, allocations: 13.7 kB / 1.347 GB, free: 13.6 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001399/0.3456, allocations: 314.8 kB / 1.348 GB, free: 13.28 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.769e-06/0.3456, allocations: 0 / 1.348 GB, free: 13.28 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.577e-06/0.3457, allocations: 7.938 kB / 1.348 GB, free: 13.27 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.355e-05/0.3457, allocations: 79.34 kB / 1.348 GB, free: 13.2 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.3e-05/0.3457, allocations: 83.28 kB / 1.348 GB, free: 13.11 MB / 1.045 GB Notification: Performance of matching and sorting (n=0) (initialization): time 6.059e-05/0.3458, allocations: 29.7 kB / 1.348 GB, free: 13.08 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 5.093e-05/0.3458, allocations: 79.28 kB / 1.348 GB, free: 13 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.491e-05/0.3459, allocations: 79.22 kB / 1.348 GB, free: 12.92 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.038e-05/0.346, allocations: 154.6 kB / 1.348 GB, free: 12.77 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.569e-05/0.346, allocations: 79.27 kB / 1.348 GB, free: 12.69 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.218e-05/0.3461, allocations: 154.5 kB / 1.348 GB, free: 12.54 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.914e-05/0.3462, allocations: 75.28 kB / 1.349 GB, free: 12.46 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.63e-05/0.3462, allocations: 83.22 kB / 1.349 GB, free: 12.38 MB / 1.045 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.000151/0.3463, allocations: 268.3 kB / 1.349 GB, free: 12.11 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.559e-05/0.3464, allocations: 105 kB / 1.349 GB, free: 12 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.381e-05/0.3465, allocations: 111.9 kB / 1.349 GB, free: 11.88 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000105/0.3466, allocations: 180.2 kB / 1.349 GB, free: 11.7 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.943e-05/0.3467, allocations: 180.3 kB / 1.349 GB, free: 11.51 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.823e-05/0.3468, allocations: 184.2 kB / 1.35 GB, free: 11.32 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002778/0.347, allocations: 376.2 kB / 1.35 GB, free: 10.91 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.888e-05/0.3471, allocations: 105 kB / 1.35 GB, free: 10.8 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.292e-05/0.3471, allocations: 105.2 kB / 1.35 GB, free: 10.69 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.536e-05/0.3472, allocations: 184.3 kB / 1.35 GB, free: 10.5 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.851e-05/0.3473, allocations: 180.2 kB / 1.35 GB, free: 10.32 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.93e-05/0.3474, allocations: 192.2 kB / 1.351 GB, free: 10.12 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.906e-05/0.3475, allocations: 184.2 kB / 1.351 GB, free: 9.934 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001664/0.3477, allocations: 303.8 kB / 1.351 GB, free: 9.613 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 5.956e-05/0.3477, allocations: 104.9 kB / 1.351 GB, free: 9.504 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.198e-05/0.3478, allocations: 184.2 kB / 1.351 GB, free: 9.316 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.396e-05/0.3479, allocations: 101 kB / 1.351 GB, free: 9.211 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.468e-05/0.348, allocations: 180.2 kB / 1.352 GB, free: 9.027 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.934e-05/0.348, allocations: 113 kB / 1.352 GB, free: 8.91 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.256e-05/0.3481, allocations: 79.28 kB / 1.352 GB, free: 8.832 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3481, allocations: 0 / 1.352 GB, free: 8.832 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.000271/0.3484, allocations: 8.094 kB / 1.352 GB, free: 8.824 MB / 1.045 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.0005112/0.3489, allocations: 0.8125 MB / 1.353 GB, free: 7.98 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 3.65e-05/0.3489, allocations: 4 kB / 1.353 GB, free: 7.977 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.3489, allocations: 0 / 1.353 GB, free: 7.977 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 1.553e-06/0.3489, allocations: 3.938 kB / 1.353 GB, free: 7.973 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004027/0.3493, allocations: 466.9 kB / 1.353 GB, free: 7.516 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001233/0.3505, allocations: 1.52 MB / 1.355 GB, free: 5.918 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.366e-05/0.3506, allocations: 59.44 kB / 1.355 GB, free: 5.84 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 6.412e-06/0.3506, allocations: 4 kB / 1.355 GB, free: 5.836 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.249e-05/0.3506, allocations: 7.438 kB / 1.355 GB, free: 5.828 MB / 1.045 GB Notification: Performance of SimCode: time 4.61e-07/0.3506, allocations: 0 / 1.355 GB, free: 5.828 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02311/0.3737, allocations: 1.057 MB / 1.356 GB, free: 4.914 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.9, allocations: 15.95 kB / 1.356 GB, free: 4.902 MB / 1.045 GB " [Timeout remaining time 288] (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 --stepSize=0.0004 --timeout=800 --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) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.587462778086774]