Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.Validation.Xor,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Xor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Xor,fileNamePrefix="Buildings_10_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.0009851/0.0009851, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001038/0.001038, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.315/1.315, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.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.457/2.457, allocations: 437 MB / 0.7101 GB, free: 5.27 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 68.09 kB / 0.8689 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6438/0.6452, allocations: 151.6 MB / 1.017 GB, free: 2.812 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.002011/0.6472, allocations: 0.7327 MB / 1.018 GB, free: 2.082 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001487/0.6487, allocations: 1.183 MB / 1.019 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.342e-05/0.6488, allocations: 0 / 1.019 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.341e-05/0.6488, allocations: 0 / 1.019 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.674e-05/0.6489, allocations: 11.92 kB / 1.019 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006121/0.6495, allocations: 201.5 kB / 1.019 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002038/0.6498, allocations: 183.8 kB / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.155e-05/0.6499, allocations: 7.938 kB / 1.019 GB, free: 0.4922 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 9.031e-05/0.6499, allocations: 75.83 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.093e-05/0.6501, allocations: 51.86 kB / 1.019 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.015e-05/0.6501, allocations: 16 kB / 1.019 GB, free: 360 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.07e-05/0.6502, allocations: 27.98 kB / 1.019 GB, free: 332 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.262e-05/0.6502, allocations: 15.92 kB / 1.019 GB, free: 316 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 7.55e-05/0.6503, allocations: 59.83 kB / 1.019 GB, free: 256 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001941/0.6505, allocations: 149.9 kB / 1.02 GB, free: 108 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.6505, allocations: 0 / 1.02 GB, free: 108 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.913e-06/0.6505, allocations: 0 / 1.02 GB, free: 108 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.571e-06/0.6505, allocations: 0 / 1.02 GB, free: 108 kB / 0.7637 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.0005461/0.6511, allocations: 430.7 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.6511, allocations: 16.03 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.424e-05/0.6512, allocations: 34.75 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.33e-05/0.6512, allocations: 12.84 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000125/0.6513, allocations: 176.2 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.875e-05/0.6514, allocations: 8.375 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.936e-05/0.6514, allocations: 8.375 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001194/0.6515, allocations: 46.25 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.355e-06/0.6515, allocations: 3.938 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.6516, allocations: 7.984 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.6516, allocations: 4 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.428e-05/0.6516, allocations: 12 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004959/0.6521, allocations: 360.6 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.103e-05/0.6522, allocations: 34.56 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.458e-05/0.6523, allocations: 20.8 kB / 1.021 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.007e-05/0.6523, allocations: 0 / 1.021 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001739/0.6525, allocations: 87.45 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.6525, allocations: 0 / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0002492/0.6527, allocations: 109.5 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/0.6528, allocations: 51.41 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.549e-05/0.6529, allocations: 125.8 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.493e-05/0.6529, allocations: 33.7 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.22e-05/0.653, allocations: 88.14 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.643e-05/0.653, allocations: 15.81 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.176e-05/0.6531, allocations: 45.69 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.6533, allocations: 326.8 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.6534, allocations: 59.97 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001337/0.6535, allocations: 92.19 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001844/0.6537, allocations: 159.6 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.6537, allocations: 0 / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003991/0.6541, allocations: 260.8 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.713e-05/0.6542, allocations: 69.42 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.6542, allocations: 4.125 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.6542, allocations: 4 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.281e-05/0.6543, allocations: 8 kB / 1.022 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.6543, allocations: 3.984 kB / 1.022 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003491/0.6546, allocations: 55.94 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.095e-05/0.6547, allocations: 11.98 kB / 1.022 GB, free: 13.06 MB / 0.7794 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.0001026/0.6548, allocations: 130.7 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.509e-05/0.6548, allocations: 11.91 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.442e-05/0.6548, allocations: 12.36 kB / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.6548, allocations: 0 / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.6549, allocations: 0 / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.6549, allocations: 7.922 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001397/0.655, allocations: 181.6 kB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.655, allocations: 0 / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.316e-06/0.655, allocations: 0 / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.96e-06/0.655, allocations: 4 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.769e-06/0.6551, allocations: 7.922 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.6551, allocations: 4 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.6551, allocations: 0 / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000143/0.6552, allocations: 116.9 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.06e-05/0.6553, allocations: 77.11 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.617e-05/0.6553, allocations: 4 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.935e-05/0.6553, allocations: 0 / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.593e-05/0.6554, allocations: 11.98 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.885e-06/0.6554, allocations: 8 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.834e-05/0.6554, allocations: 91.27 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of sort global known variables: time 9e-08/0.6554, allocations: 0 / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000228/0.6557, allocations: 35.91 kB / 1.023 GB, free: 12.28 MB / 0.7794 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.0004211/0.6561, allocations: 0.6475 MB / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003223/0.6564, allocations: 251.2 kB / 1.024 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.6564, allocations: 0 / 1.024 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.897e-05/0.6565, allocations: 31.98 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002227/0.6567, allocations: 20.06 kB / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001752/0.6585, allocations: 1.721 MB / 1.026 GB, free: 9.441 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002388/0.6587, allocations: 0.6924 MB / 1.026 GB, free: 8.723 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.67e-05/0.6588, allocations: 4 kB / 1.026 GB, free: 8.719 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.018e-05/0.6588, allocations: 19.44 kB / 1.026 GB, free: 8.699 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.6588, allocations: 0 / 1.026 GB, free: 8.699 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02401/0.6828, allocations: 2.787 MB / 1.029 GB, free: 6.039 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001973/0.6831, allocations: 207.8 kB / 1.029 GB, free: 5.781 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.653/2.337, allocations: 0 / 1.029 GB, free: 5.781 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Xor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Xor.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Xor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches