Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.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.001668/0.001668, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001514/0.001514, allocations: 214.4 kB / 22.25 MB, free: 5.125 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.475/1.475, allocations: 230.6 MB / 256 MB, free: 7.969 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.3/3.3, allocations: 0.505 GB / 0.8101 GB, free: 22.04 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.Validation.Xor,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Xor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Xor,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Xor",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.002035/0.002035, allocations: 68.22 kB / 1.177 GB, free: 17.03 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3525/0.3546, allocations: 180.2 MB / 1.353 GB, free: 8.449 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.002095/0.3567, allocations: 0.6528 MB / 1.354 GB, free: 7.797 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001762/0.3584, allocations: 1.222 MB / 1.355 GB, free: 6.562 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.894e-05/0.3585, allocations: 8 kB / 1.355 GB, free: 6.555 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.371e-05/0.3585, allocations: 3.938 kB / 1.355 GB, free: 6.551 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.296e-05/0.3586, allocations: 11.92 kB / 1.355 GB, free: 6.539 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007418/0.3593, allocations: 214.7 kB / 1.355 GB, free: 6.336 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002919/0.3596, allocations: 179.7 kB / 1.355 GB, free: 6.16 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.3597, allocations: 12 kB / 1.355 GB, free: 6.148 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001511/0.3599, allocations: 71.88 kB / 1.355 GB, free: 6.078 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001675/0.36, allocations: 71.78 kB / 1.355 GB, free: 6.008 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.141e-05/0.3601, allocations: 16 kB / 1.355 GB, free: 5.992 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 9.732e-05/0.3602, allocations: 31.98 kB / 1.355 GB, free: 5.961 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.66e-05/0.3602, allocations: 11.94 kB / 1.355 GB, free: 5.949 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.3603, allocations: 55.88 kB / 1.355 GB, free: 5.895 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002428/0.3606, allocations: 151.8 kB / 1.356 GB, free: 5.746 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3606, allocations: 0 / 1.356 GB, free: 5.746 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.422e-06/0.3606, allocations: 0 / 1.356 GB, free: 5.746 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.472e-06/0.3606, allocations: 0 / 1.356 GB, free: 5.746 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0006377/0.3612, allocations: 369.5 kB / 1.356 GB, free: 5.34 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.3613, allocations: 8.031 kB / 1.356 GB, free: 5.332 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.375e-05/0.3613, allocations: 34.69 kB / 1.356 GB, free: 5.289 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.257e-05/0.3614, allocations: 12.89 kB / 1.356 GB, free: 5.277 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.3615, allocations: 114.5 kB / 1.356 GB, free: 5.141 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.304e-05/0.3615, allocations: 8.375 kB / 1.356 GB, free: 5.133 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.825e-05/0.3616, allocations: 16.36 kB / 1.356 GB, free: 5.117 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001264/0.3617, allocations: 46.25 kB / 1.356 GB, free: 5.066 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.3617, allocations: 3.938 kB / 1.356 GB, free: 5.062 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.3617, allocations: 3.984 kB / 1.356 GB, free: 5.059 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.3617, allocations: 4 kB / 1.356 GB, free: 5.055 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.161e-05/0.3618, allocations: 23.94 kB / 1.356 GB, free: 5.031 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005598/0.3623, allocations: 327.7 kB / 1.356 GB, free: 4.668 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 8.391e-05/0.3624, allocations: 34.56 kB / 1.356 GB, free: 4.625 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.207e-05/0.3624, allocations: 12.86 kB / 1.356 GB, free: 4.609 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.227e-05/0.3625, allocations: 0 / 1.356 GB, free: 4.609 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002169/0.3627, allocations: 91.39 kB / 1.357 GB, free: 4.508 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.3627, allocations: 0 / 1.357 GB, free: 4.508 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.000274/0.363, allocations: 101.6 kB / 1.357 GB, free: 4.402 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.452e-05/0.363, allocations: 59.41 kB / 1.357 GB, free: 4.332 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001148/0.3631, allocations: 117.8 kB / 1.357 GB, free: 4.207 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.614e-05/0.3632, allocations: 29.7 kB / 1.357 GB, free: 4.172 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.845e-05/0.3632, allocations: 100 kB / 1.357 GB, free: 4.07 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.945e-05/0.3633, allocations: 11.95 kB / 1.357 GB, free: 4.059 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/0.3634, allocations: 53.62 kB / 1.357 GB, free: 4 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001559/0.3635, allocations: 322.8 kB / 1.357 GB, free: 3.676 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001351/0.3637, allocations: 59.97 kB / 1.357 GB, free: 3.617 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000163/0.3638, allocations: 92.25 kB / 1.357 GB, free: 3.512 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002032/0.364, allocations: 159.6 kB / 1.358 GB, free: 3.328 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.364, allocations: 0 / 1.358 GB, free: 3.328 MB / 1.045 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004467/0.3645, allocations: 264.8 kB / 1.358 GB, free: 3.051 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 6.096e-05/0.3645, allocations: 67.39 kB / 1.358 GB, free: 2.973 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.3645, allocations: 4 kB / 1.358 GB, free: 2.969 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.3646, allocations: 4.125 kB / 1.358 GB, free: 2.965 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.138e-05/0.3646, allocations: 4 kB / 1.358 GB, free: 2.961 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.129e-06/0.3646, allocations: 3.938 kB / 1.358 GB, free: 2.957 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003323/0.3649, allocations: 55.89 kB / 1.358 GB, free: 2.902 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.547e-05/0.3649, allocations: 11.98 kB / 1.358 GB, free: 2.891 MB / 1.045 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,xor1.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.0001882/0.3651, allocations: 129.7 kB / 1.358 GB, free: 2.754 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.74e-05/0.3652, allocations: 15.94 kB / 1.358 GB, free: 2.738 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.573e-05/0.3652, allocations: 8.375 kB / 1.358 GB, free: 2.73 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.3652, allocations: 4 kB / 1.358 GB, free: 2.727 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.3652, allocations: 0 / 1.358 GB, free: 2.727 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.3652, allocations: 480 / 1.358 GB, free: 2.727 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001786/0.3654, allocations: 152.6 kB / 1.358 GB, free: 2.535 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.3654, allocations: 0 / 1.358 GB, free: 2.535 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.947e-06/0.3654, allocations: 0 / 1.358 GB, free: 2.535 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.86e-06/0.3654, allocations: 4 kB / 1.358 GB, free: 2.531 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.3654, allocations: 12 kB / 1.358 GB, free: 2.52 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.3654, allocations: 4.312 kB / 1.358 GB, free: 2.516 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.155e-06/0.3654, allocations: 3.938 kB / 1.358 GB, free: 2.512 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001707/0.3656, allocations: 113 kB / 1.358 GB, free: 2.383 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.418e-05/0.3656, allocations: 7.953 kB / 1.358 GB, free: 2.375 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.528e-05/0.3656, allocations: 0 / 1.358 GB, free: 2.375 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.322e-05/0.3656, allocations: 3.984 kB / 1.358 GB, free: 2.371 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.371e-05/0.3657, allocations: 8 kB / 1.358 GB, free: 2.363 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.3657, allocations: 7.984 kB / 1.358 GB, free: 2.355 MB / 1.045 GB Notification: Performance of sorting global known variables: time 6.032e-05/0.3657, allocations: 95.22 kB / 1.359 GB, free: 2.262 MB / 1.045 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3657, allocations: 0 / 1.359 GB, free: 2.262 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002421/0.366, allocations: 24 kB / 1.359 GB, free: 2.238 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: 7 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,xor1.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.0005763/0.3666, allocations: 0.6553 MB / 1.359 GB, free: 1.555 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003853/0.3669, allocations: 222.7 kB / 1.359 GB, free: 1.312 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3669, allocations: 0 / 1.359 GB, free: 1.312 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 5.665e-05/0.367, allocations: 23.98 kB / 1.359 GB, free: 1.289 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002414/0.3672, allocations: 15.98 kB / 1.359 GB, free: 1.273 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002254/0.3695, allocations: 1.729 MB / 1.361 GB, free: 15.42 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003524/0.3698, allocations: 0.6846 MB / 1.362 GB, free: 14.71 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.183e-05/0.3699, allocations: 4 kB / 1.362 GB, free: 14.71 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.202e-05/0.3699, allocations: 15.53 kB / 1.362 GB, free: 14.69 MB / 1.061 GB Notification: Performance of SimCode: time 7.41e-07/0.3699, allocations: 7.938 kB / 1.362 GB, free: 14.68 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03421/0.4041, allocations: 3.052 MB / 1.365 GB, free: 11.79 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.83, allocations: 2.891 kB / 1.365 GB, free: 11.79 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Xor_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Xor.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Xor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.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.626627227058634]