Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.And.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.001341/0.001341, allocations: 103.8 kB / 18.95 MB, free: 2.691 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.001482/0.001482, allocations: 217.6 kB / 22.25 MB, free: 5.238 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.472/1.472, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.177/3.177, allocations: 0.49 GB / 0.7951 GB, free: 35.61 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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.Validation.And,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_And",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.And,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_And",fmuType="me",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.002077/0.002077, allocations: 65.22 kB / 1.154 GB, free: 25.44 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3523/0.3544, allocations: 176.1 MB / 1.326 GB, free: 1.52 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.And): time 0.001891/0.3563, allocations: 0.651 MB / 1.326 GB, free: 0.875 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001738/0.358, allocations: 1.198 MB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.815e-05/0.3581, allocations: 4 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.44e-05/0.3581, allocations: 3.938 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.51e-05/0.3582, allocations: 15.84 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007115/0.3589, allocations: 221.2 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002562/0.3592, allocations: 163.8 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.3593, allocations: 15.98 kB / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000105/0.3594, allocations: 67.89 kB / 1.328 GB, free: 15.19 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001549/0.3595, allocations: 63.84 kB / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.364e-05/0.3596, allocations: 16 kB / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.622e-05/0.3597, allocations: 27.94 kB / 1.328 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.784e-05/0.3597, allocations: 15.92 kB / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 9.144e-05/0.3598, allocations: 51.89 kB / 1.328 GB, free: 15.02 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002401/0.36, allocations: 155.8 kB / 1.328 GB, free: 14.86 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.36, allocations: 0 / 1.328 GB, free: 14.86 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.024e-06/0.36, allocations: 0 / 1.328 GB, free: 14.86 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.076e-05/0.36, allocations: 0 / 1.328 GB, free: 14.86 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000599/0.3606, allocations: 369.5 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.3607, allocations: 8.031 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.576e-05/0.3607, allocations: 34.75 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.263e-05/0.3608, allocations: 4.938 kB / 1.329 GB, free: 14.4 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001133/0.3609, allocations: 114.5 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.3609, allocations: 12.31 kB / 1.329 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.693e-05/0.3609, allocations: 16.38 kB / 1.329 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001293/0.3611, allocations: 46.19 kB / 1.329 GB, free: 14.19 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.3611, allocations: 3.938 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.3611, allocations: 3.984 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.3611, allocations: 4 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.248e-05/0.3611, allocations: 16 kB / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004954/0.3616, allocations: 291.9 kB / 1.329 GB, free: 13.83 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 8.682e-05/0.3617, allocations: 38.5 kB / 1.329 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.69e-05/0.3617, allocations: 12.86 kB / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.246e-05/0.3618, allocations: 3.984 kB / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001888/0.3619, allocations: 91.39 kB / 1.329 GB, free: 13.66 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.563e-06/0.3619, allocations: 0 / 1.329 GB, free: 13.66 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0002654/0.3622, allocations: 113.5 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.779e-05/0.3623, allocations: 51.41 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.3624, allocations: 117.8 kB / 1.33 GB, free: 13.36 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.57e-05/0.3624, allocations: 29.7 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.065e-05/0.3625, allocations: 92.12 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.957e-05/0.3625, allocations: 15.91 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.708e-05/0.3626, allocations: 45.69 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001545/0.3628, allocations: 322.8 kB / 1.33 GB, free: 12.84 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001793/0.3629, allocations: 119.4 kB / 1.33 GB, free: 12.71 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002047/0.3631, allocations: 163.1 kB / 1.33 GB, free: 12.53 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000204/0.3634, allocations: 160 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.093e-06/0.3634, allocations: 0 / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005049/0.3639, allocations: 336.2 kB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.16e-05/0.3639, allocations: 63.52 kB / 1.331 GB, free: 11.91 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.3639, allocations: 8 kB / 1.331 GB, free: 11.9 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.3639, allocations: 0 / 1.331 GB, free: 11.9 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.529e-05/0.364, allocations: 8 kB / 1.331 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.364, allocations: 0 / 1.331 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003655/0.3643, allocations: 51.89 kB / 1.331 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.459e-05/0.3644, allocations: 11.98 kB / 1.331 GB, free: 11.83 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,and1.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 2 * 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.0001314/0.3645, allocations: 137.1 kB / 1.331 GB, free: 11.69 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.07e-05/0.3645, allocations: 3.938 kB / 1.331 GB, free: 11.69 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.204e-05/0.3645, allocations: 12.38 kB / 1.331 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.3646, allocations: 0 / 1.331 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3646, allocations: 0 / 1.331 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.3646, allocations: 3.984 kB / 1.331 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000143/0.3647, allocations: 144.7 kB / 1.331 GB, free: 11.48 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3647, allocations: 0 / 1.331 GB, free: 11.48 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.835e-06/0.3647, allocations: 0 / 1.331 GB, free: 11.48 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.3647, allocations: 4 kB / 1.331 GB, free: 11.48 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/0.3647, allocations: 7.984 kB / 1.331 GB, free: 11.47 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.3647, allocations: 4 kB / 1.331 GB, free: 11.47 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3647, allocations: 0 / 1.331 GB, free: 11.47 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001606/0.3649, allocations: 113 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.338e-05/0.3649, allocations: 7.953 kB / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.747e-05/0.3649, allocations: 4.062 kB / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.898e-05/0.3649, allocations: 0 / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.353e-05/0.365, allocations: 11.92 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.959e-06/0.365, allocations: 8 kB / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.019e-05/0.3651, allocations: 91.27 kB / 1.332 GB, free: 11.22 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3651, allocations: 288 / 1.332 GB, free: 11.22 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002333/0.3653, allocations: 28 kB / 1.332 GB, free: 11.19 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,and1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000546/0.3658, allocations: 0.6553 MB / 1.332 GB, free: 10.51 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004192/0.3663, allocations: 278.1 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3663, allocations: 3.938 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.106e-05/0.3663, allocations: 27.92 kB / 1.333 GB, free: 10.17 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002341/0.3665, allocations: 15.98 kB / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002359/0.3689, allocations: 1.964 MB / 1.335 GB, free: 8.02 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.787e-05/0.369, allocations: 71.25 kB / 1.335 GB, free: 7.93 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.205e-05/0.369, allocations: 7.984 kB / 1.335 GB, free: 7.922 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.538e-05/0.369, allocations: 19.44 kB / 1.335 GB, free: 7.902 MB / 1.029 GB Notification: Performance of SimCode: time 6.21e-07/0.369, allocations: 0 / 1.335 GB, free: 7.902 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03452/0.4036, allocations: 3.66 MB / 1.338 GB, free: 4.402 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.59, allocations: 5.375 kB / 1.338 GB, free: 4.402 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.And.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.And_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_And_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_And.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.And_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Validation_And.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.And.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.338702650013147]