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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.269/2.269, allocations: 390.5 MB / 398 MB, free: 10.95 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 183.5 kB / 491.2 MB, free: 1.582 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.76/1.76, allocations: 221.5 MB / 0.7868 GB, free: 13.26 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 91.52 kB / 0.9269 GB, free: 13.76 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.835e-05/1.821e-05, allocations: 7.984 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.328/0.328, allocations: 143 MB / 1.212 GB, free: 39.51 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.073/1.402, allocations: 149.4 MB / 1.358 GB, free: 17.59 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002125/1.402, allocations: 68.56 kB / 1.358 GB, free: 17.59 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.008478/1.41, allocations: 2.926 MB / 1.361 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.192e-06/1.41, allocations: 4 kB / 1.361 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.404e-06/1.41, allocations: 3.812 kB / 1.361 GB, free: 33.13 MB / 0.8386 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.0003497/1.411, allocations: 404.8 kB / 1.362 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/1.411, allocations: 7.031 kB / 1.362 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.678e-05/1.411, allocations: 13.19 kB / 1.362 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001031/1.411, allocations: 170.7 kB / 1.362 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.743e-05/1.411, allocations: 1.875 kB / 1.362 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.312e-05/1.411, allocations: 11.53 kB / 1.362 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.233e-05/1.411, allocations: 13.69 kB / 1.362 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.487e-05/1.411, allocations: 50.36 kB / 1.362 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/1.411, allocations: 0 / 1.362 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.028e-05/1.411, allocations: 3.688 kB / 1.362 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/1.411, allocations: 0 / 1.362 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000431/1.412, allocations: 331.1 kB / 1.362 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.563e-05/1.412, allocations: 34.38 kB / 1.362 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.365e-05/1.412, allocations: 15.89 kB / 1.362 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.071e-05/1.412, allocations: 1.641 kB / 1.362 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001143/1.412, allocations: 82.23 kB / 1.362 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.213e-06/1.412, allocations: 0 / 1.362 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0001715/1.412, allocations: 85.67 kB / 1.362 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.391e-05/1.412, allocations: 51.41 kB / 1.362 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.725e-05/1.412, allocations: 111.5 kB / 1.363 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.634e-05/1.412, allocations: 33.55 kB / 1.363 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.839e-05/1.412, allocations: 89.17 kB / 1.363 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.262e-05/1.412, allocations: 12.97 kB / 1.363 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.841e-05/1.412, allocations: 7.469 kB / 1.363 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.593e-05/1.412, allocations: 318.2 kB / 1.363 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.065e-05/1.412, allocations: 54.28 kB / 1.363 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.736e-05/1.413, allocations: 90.06 kB / 1.363 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000263/1.413, allocations: 67.25 kB / 1.363 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/1.413, allocations: 0 / 1.363 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004405/1.413, allocations: 204 kB / 1.363 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.261e-05/1.413, allocations: 72.48 kB / 1.363 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/1.413, allocations: 4.641 kB / 1.363 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/1.413, allocations: 3.312 kB / 1.363 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.162e-05/1.413, allocations: 6.812 kB / 1.363 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/1.413, allocations: 0 / 1.363 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003066/1.414, allocations: 73.12 kB / 1.363 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.85e-05/1.414, allocations: 9.516 kB / 1.364 GB, free: 31.34 MB / 0.8386 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,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,xor1.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.627e-05/1.414, allocations: 118.4 kB / 1.364 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.115e-05/1.414, allocations: 7.094 kB / 1.364 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.579e-05/1.414, allocations: 18.16 kB / 1.364 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/1.414, allocations: 0 / 1.364 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/1.414, allocations: 0 / 1.364 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/1.414, allocations: 0 / 1.364 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.511e-05/1.414, allocations: 155.3 kB / 1.364 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/1.414, allocations: 0 / 1.364 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.005e-05/1.414, allocations: 3.375 kB / 1.364 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/1.414, allocations: 2.906 kB / 1.364 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.183e-06/1.414, allocations: 0 / 1.364 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/1.414, allocations: 0.875 kB / 1.364 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/1.414, allocations: 3.344 kB / 1.364 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001057/1.414, allocations: 108.6 kB / 1.364 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.681e-05/1.414, allocations: 83.53 kB / 1.364 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.619e-05/1.414, allocations: 3.938 kB / 1.364 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.314e-05/1.414, allocations: 3.625 kB / 1.364 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.616e-05/1.414, allocations: 10.58 kB / 1.364 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-06/1.414, allocations: 10.67 kB / 1.364 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.953e-05/1.414, allocations: 89.72 kB / 1.364 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.41e-07/1.414, allocations: 4 kB / 1.364 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002256/1.415, allocations: 36.72 kB / 1.364 GB, free: 30.79 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001642/1.415, allocations: 107.4 kB / 1.364 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002469/1.415, allocations: 231.7 kB / 1.364 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/1.415, allocations: 0 / 1.364 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.644e-05/1.415, allocations: 30.34 kB / 1.364 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001754/1.415, allocations: 22 kB / 1.365 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002427/1.416, allocations: 92.44 kB / 1.365 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002564/1.416, allocations: 0.6918 MB / 1.365 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.791e-05/1.416, allocations: 7.438 kB / 1.365 GB, free: 29.78 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.874e-05/1.416, allocations: 12.92 kB / 1.365 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.416, allocations: 0 / 1.365 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of Templates: time 0.003761/1.42, allocations: 1.55 MB / 1.367 GB, free: 29.64 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe 2>&1) 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","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches