Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Validation.Xor,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Xor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Xor,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Xor",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.001483/0.001483, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001699/0.001699, allocations: 191.4 kB / 16.53 MB, free: 6.391 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.408/1.408, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.591/2.591, allocations: 390.2 MB / 0.6647 GB, free: 240 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 75.83 kB / 0.8127 GB, free: 14.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8086/0.8101, allocations: 140.4 MB / 0.9497 GB, free: 9.23 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.002429/0.8126, allocations: 0.6491 MB / 0.9504 GB, free: 8.73 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001775/0.8144, allocations: 1.185 MB / 0.9515 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.059e-05/0.8145, allocations: 1.031 kB / 0.9515 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.705e-05/0.8145, allocations: 7.938 kB / 0.9515 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.046e-05/0.8146, allocations: 17.09 kB / 0.9516 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007124/0.8153, allocations: 205.3 kB / 0.9518 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002576/0.8156, allocations: 187.1 kB / 0.9519 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.8157, allocations: 16.64 kB / 0.9519 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.366e-05/0.8158, allocations: 69.19 kB / 0.952 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001006/0.8159, allocations: 52.94 kB / 0.9521 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.714e-05/0.816, allocations: 15.44 kB / 0.9521 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.565e-05/0.8161, allocations: 30.67 kB / 0.9521 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.105e-05/0.8161, allocations: 10.92 kB / 0.9521 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.655e-05/0.8162, allocations: 53.42 kB / 0.9522 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002203/0.8164, allocations: 156.5 kB / 0.9523 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.8164, allocations: 1.688 kB / 0.9523 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.573e-06/0.8164, allocations: 0 / 0.9523 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.312e-06/0.8164, allocations: 0 / 0.9523 GB, free: 7.262 MB / 0.7169 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.0004654/0.8169, allocations: 432.8 kB / 0.9527 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.817, allocations: 17.39 kB / 0.9527 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.115e-05/0.817, allocations: 32.28 kB / 0.9528 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.52e-05/0.8171, allocations: 8.281 kB / 0.9528 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001021/0.8172, allocations: 174.8 kB / 0.953 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.152e-05/0.8172, allocations: 8.969 kB / 0.953 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.418e-05/0.8173, allocations: 13.36 kB / 0.953 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001199/0.8174, allocations: 48 kB / 0.953 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.8174, allocations: 3.938 kB / 0.953 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.8174, allocations: 8 kB / 0.953 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.8174, allocations: 5.562 kB / 0.953 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.843e-05/0.8175, allocations: 20.86 kB / 0.9531 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004653/0.818, allocations: 350.6 kB / 0.9534 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.324e-05/0.8181, allocations: 33.97 kB / 0.9534 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.927e-05/0.8181, allocations: 13.95 kB / 0.9534 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.109e-05/0.8181, allocations: 5.031 kB / 0.9534 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00019/0.8183, allocations: 89.11 kB / 0.9535 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.8183, allocations: 0 / 0.9535 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0002735/0.8186, allocations: 104.7 kB / 0.9536 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.236e-05/0.8186, allocations: 52.56 kB / 0.9537 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.8188, allocations: 118.6 kB / 0.9538 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.298e-05/0.8188, allocations: 29.64 kB / 0.9538 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.689e-05/0.8189, allocations: 97.09 kB / 0.9539 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.514e-05/0.8189, allocations: 18.45 kB / 0.9539 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/0.819, allocations: 52.03 kB / 0.954 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.000127/0.8192, allocations: 321.7 kB / 0.9543 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001638/0.8193, allocations: 58.7 kB / 0.9543 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002171/0.8195, allocations: 92.23 kB / 0.9544 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002439/0.8198, allocations: 164.2 kB / 0.9546 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.8198, allocations: 0 / 0.9546 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005532/0.8204, allocations: 262.9 kB / 0.9548 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.229e-05/0.8204, allocations: 75.27 kB / 0.9549 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.8205, allocations: 1.5 kB / 0.9549 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.789e-05/0.8205, allocations: 1.438 kB / 0.9549 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.815e-05/0.8205, allocations: 5.312 kB / 0.9549 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.8206, allocations: 2.781 kB / 0.9549 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004425/0.821, allocations: 59.36 kB / 0.955 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.661e-05/0.8211, allocations: 9.094 kB / 0.955 GB, free: 4.73 MB / 0.7169 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.0001373/0.8212, allocations: 130.4 kB / 0.9551 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.304e-05/0.8212, allocations: 6.688 kB / 0.9551 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.779e-05/0.8213, allocations: 11.25 kB / 0.9551 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.8213, allocations: 0 / 0.9551 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.8213, allocations: 0 / 0.9551 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.8213, allocations: 7.922 kB / 0.9551 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001656/0.8215, allocations: 178.4 kB / 0.9553 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.8215, allocations: 0 / 0.9553 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.092e-05/0.8215, allocations: 3.5 kB / 0.9553 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.8215, allocations: 4 kB / 0.9553 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.8216, allocations: 8.062 kB / 0.9553 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.8216, allocations: 0 / 0.9553 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.8216, allocations: 3.938 kB / 0.9553 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001616/0.8217, allocations: 112.8 kB / 0.9554 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.342e-05/0.8218, allocations: 82.17 kB / 0.9555 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.286e-05/0.8218, allocations: 5.047 kB / 0.9555 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.025e-05/0.8218, allocations: 1 kB / 0.9555 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.113e-05/0.8219, allocations: 8.219 kB / 0.9555 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.498e-05/0.8219, allocations: 11.58 kB / 0.9555 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.545e-05/0.822, allocations: 89.94 kB / 0.9556 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.822, allocations: 1.156 kB / 0.9556 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002751/0.8223, allocations: 31 kB / 0.9556 GB, free: 4.062 MB / 0.7169 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.0004996/0.8228, allocations: 0.6582 MB / 0.9563 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004204/0.8232, allocations: 246.7 kB / 0.9565 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.8232, allocations: 0 / 0.9565 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.882e-05/0.8233, allocations: 32.75 kB / 0.9566 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002961/0.8236, allocations: 23.95 kB / 0.9566 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001804/0.8254, allocations: 1.72 MB / 0.9583 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001323/0.8256, allocations: 0.6871 MB / 0.9589 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.186e-05/0.8256, allocations: 11.36 kB / 0.9589 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.603e-05/0.8256, allocations: 15.03 kB / 0.959 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of SimCode: time 3.21e-07/0.8257, allocations: 3.938 kB / 0.959 GB, free: 0.9609 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02054/0.8462, allocations: 2.862 MB / 0.9618 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.574/8.421, allocations: 11.39 kB / 0.9618 GB, free: 15.43 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Xor.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Xor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches