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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Xor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|xor1.u1|xor1.u2|xor1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Xor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|xor1.u1|xor1.u2|xor1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000789/0.000789, allocations: 91.92 kB / 16.02 MB, free: 80 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.001127/0.001127, allocations: 179.6 kB / 16.92 MB, free: 6.652 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.436/1.436, allocations: 223.3 MB / 241 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.651/2.651, allocations: 437.8 MB / 0.7128 GB, free: 6.918 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003776/0.0003775, allocations: 16 kB / 0.8735 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7437/0.7441, allocations: 153.8 MB / 1.024 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.0008858/0.7451, allocations: 400.9 kB / 1.024 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00174/0.7468, allocations: 1.191 MB / 1.025 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.715e-05/0.7469, allocations: 4 kB / 1.025 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.901e-05/0.7469, allocations: 0 / 1.025 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.404e-05/0.747, allocations: 15.86 kB / 1.025 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007267/0.7477, allocations: 195.3 kB / 1.025 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001967/0.748, allocations: 163.6 kB / 1.026 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.885e-05/0.7481, allocations: 8 kB / 1.026 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001218/0.7482, allocations: 55.89 kB / 1.026 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000104/0.7483, allocations: 51.86 kB / 1.026 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.28e-05/0.7483, allocations: 8 kB / 1.026 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.222e-05/0.7484, allocations: 23.98 kB / 1.026 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.081e-05/0.7485, allocations: 7.938 kB / 1.026 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.7486, allocations: 73.58 kB / 1.026 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001737/0.7488, allocations: 107.7 kB / 1.026 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.7488, allocations: 0 / 1.026 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.723e-06/0.7488, allocations: 0 / 1.026 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.409e-06/0.7488, allocations: 0 / 1.026 GB, free: 13.54 MB / 0.7794 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.0004629/0.7493, allocations: 408.7 kB / 1.026 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.7493, allocations: 19.97 kB / 1.026 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.137e-05/0.7494, allocations: 8.938 kB / 1.026 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001184/0.7495, allocations: 176.2 kB / 1.027 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.153e-05/0.7495, allocations: 8.375 kB / 1.027 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.952e-05/0.7496, allocations: 12.38 kB / 1.027 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001131/0.7497, allocations: 46.23 kB / 1.027 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.7497, allocations: 192 / 1.027 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/0.7497, allocations: 11.92 kB / 1.027 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.7498, allocations: 4 kB / 1.027 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.106e-05/0.7498, allocations: 12 kB / 1.027 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005029/0.7503, allocations: 352.8 kB / 1.027 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.281e-05/0.7504, allocations: 38.5 kB / 1.027 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.379e-05/0.7505, allocations: 20.94 kB / 1.027 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.528e-06/0.7505, allocations: 0 / 1.027 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001965/0.7507, allocations: 99.2 kB / 1.027 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.7507, allocations: 0 / 1.027 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0002583/0.7509, allocations: 101.7 kB / 1.027 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.831e-05/0.751, allocations: 51.41 kB / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.966e-05/0.7511, allocations: 125.7 kB / 1.027 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.503e-05/0.7512, allocations: 29.7 kB / 1.027 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.019e-05/0.7513, allocations: 88.14 kB / 1.027 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.141e-05/0.7513, allocations: 15.8 kB / 1.027 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.129e-05/0.7513, allocations: 25.7 kB / 1.028 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001089/0.7515, allocations: 327.2 kB / 1.028 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001393/0.7516, allocations: 59.95 kB / 1.028 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001753/0.7518, allocations: 96.14 kB / 1.028 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002092/0.752, allocations: 159.6 kB / 1.028 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.752, allocations: 4 kB / 1.028 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004326/0.7525, allocations: 256.9 kB / 1.028 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.953e-05/0.7525, allocations: 67.39 kB / 1.028 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.7525, allocations: 4 kB / 1.028 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.103e-05/0.7526, allocations: 0 / 1.028 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.23e-05/0.7526, allocations: 4.125 kB / 1.028 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.7526, allocations: 7.938 kB / 1.028 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004403/0.753, allocations: 86.44 kB / 1.029 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.544e-05/0.7531, allocations: 12 kB / 1.029 GB, free: 10.55 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.0001065/0.7532, allocations: 129.7 kB / 1.029 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.544e-05/0.7532, allocations: 7.906 kB / 1.029 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.9e-05/0.7532, allocations: 8.375 kB / 1.029 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.7533, allocations: 4 kB / 1.029 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.7533, allocations: 0 / 1.029 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.7533, allocations: 0 / 1.029 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001343/0.7534, allocations: 181.6 kB / 1.029 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.7534, allocations: 0 / 1.029 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.207e-06/0.7534, allocations: 0 / 1.029 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.7534, allocations: 0 / 1.029 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.7535, allocations: 8 kB / 1.029 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.7535, allocations: 0 / 1.029 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.7535, allocations: 0 / 1.029 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002193/0.7537, allocations: 113.3 kB / 1.029 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.566e-05/0.7537, allocations: 85.02 kB / 1.029 GB, free: 9.934 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.913e-05/0.7538, allocations: 11.98 kB / 1.029 GB, free: 9.922 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.182e-05/0.7538, allocations: 96 / 1.029 GB, free: 9.922 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.757e-05/0.7539, allocations: 7.938 kB / 1.029 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.706e-06/0.7539, allocations: 3.984 kB / 1.029 GB, free: 9.91 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.576e-05/0.7539, allocations: 87.28 kB / 1.029 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.11e-07/0.7539, allocations: 0 / 1.029 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002453/0.7542, allocations: 35.98 kB / 1.029 GB, free: 9.789 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.0001598/0.7543, allocations: 111.2 kB / 1.029 GB, free: 9.672 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000341/0.7547, allocations: 250.6 kB / 1.03 GB, free: 9.402 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.7547, allocations: 0 / 1.03 GB, free: 9.402 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.853e-05/0.7548, allocations: 35.98 kB / 1.03 GB, free: 9.367 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002409/0.755, allocations: 15.98 kB / 1.03 GB, free: 9.352 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003435/0.7554, allocations: 205.1 kB / 1.03 GB, free: 9.121 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000249/0.7556, allocations: 0.6887 MB / 1.03 GB, free: 8.406 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.48e-05/0.7557, allocations: 11.44 kB / 1.03 GB, free: 8.395 MB / 0.7794 GB Notification: Performance of SimCode: time 2.61e-07/0.7557, allocations: 0 / 1.03 GB, free: 8.395 MB / 0.7794 GB Notification: Performance of Templates: time 0.003155/0.7588, allocations: 1.393 MB / 1.032 GB, free: 7.016 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.makefile (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 & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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