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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.733/1.733, allocations: 390.4 MB / 397.7 MB, free: 1.891 MB / 307 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009087/0.0009087, allocations: 175.1 kB / 490.8 MB, free: 7.5 MB / 403 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.057/1.057, allocations: 221.3 MB / 0.7863 GB, free: 268 kB / 0.5498 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007987/0.0007987, allocations: 80.78 kB / 0.9264 GB, free: 0.6719 MB / 0.6904 GB Notification: Performance of FrontEnd - loaded program: time 6.432e-06/6.442e-06, allocations: 4 kB / 1.072 GB, free: 137.6 MB / 0.7217 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1669/0.1669, allocations: 143 MB / 1.212 GB, free: 10.59 MB / 0.7373 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4481/0.6151, allocations: 149.4 MB / 1.357 GB, free: 12.75 MB / 0.8311 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001666/0.6153, allocations: 67.95 kB / 1.358 GB, free: 12.68 MB / 0.8311 GB Notification: Performance of FrontEnd: time 0.00741/0.6227, allocations: 2.626 MB / 1.36 GB, free: 10.07 MB / 0.8311 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.6227, allocations: 0 / 1.36 GB, free: 10.07 MB / 0.8311 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.0002866/0.623, allocations: 413.7 kB / 1.36 GB, free: 9.605 MB / 0.8311 GB Notification: Performance of prepare preOptimizeDAE: time 2.777e-05/0.623, allocations: 8.031 kB / 1.36 GB, free: 9.598 MB / 0.8311 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.238e-05/0.6231, allocations: 8 kB / 1.36 GB, free: 9.59 MB / 0.8311 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.405e-05/0.6232, allocations: 167.7 kB / 1.361 GB, free: 9.387 MB / 0.8311 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.6232, allocations: 0 / 1.361 GB, free: 9.387 MB / 0.8311 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.031e-05/0.6232, allocations: 11.98 kB / 1.361 GB, free: 9.375 MB / 0.8311 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.403e-05/0.6233, allocations: 19.94 kB / 1.361 GB, free: 9.355 MB / 0.8311 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.413e-05/0.6234, allocations: 41.69 kB / 1.361 GB, free: 9.309 MB / 0.8311 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.641e-06/0.6234, allocations: 0 / 1.361 GB, free: 9.309 MB / 0.8311 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.016e-06/0.6234, allocations: 0 / 1.361 GB, free: 9.309 MB / 0.8311 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.6234, allocations: 7.984 kB / 1.361 GB, free: 9.301 MB / 0.8311 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003638/0.6238, allocations: 337.2 kB / 1.361 GB, free: 8.934 MB / 0.8311 GB Notification: Performance of preOpt comSubExp (simulation): time 5.676e-05/0.6238, allocations: 34.58 kB / 1.361 GB, free: 8.891 MB / 0.8311 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.408e-05/0.6239, allocations: 16.8 kB / 1.361 GB, free: 8.871 MB / 0.8311 GB Notification: Performance of preOpt evalFunc (simulation): time 7.765e-06/0.6239, allocations: 0 / 1.361 GB, free: 8.871 MB / 0.8311 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.11e-05/0.6239, allocations: 75.38 kB / 1.361 GB, free: 8.785 MB / 0.8311 GB Notification: Performance of pre-optimization done (n=7): time 9.32e-07/0.6239, allocations: 0 / 1.361 GB, free: 8.785 MB / 0.8311 GB Notification: Performance of matching and sorting (n=7): time 0.0001498/0.6241, allocations: 73.58 kB / 1.361 GB, free: 8.707 MB / 0.8311 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.208e-05/0.6241, allocations: 55.41 kB / 1.361 GB, free: 8.641 MB / 0.8311 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.167e-05/0.6242, allocations: 113.1 kB / 1.361 GB, free: 8.52 MB / 0.8311 GB Notification: Performance of collectPreVariables (initialization): time 2.794e-05/0.6242, allocations: 29.7 kB / 1.361 GB, free: 8.484 MB / 0.8311 GB Notification: Performance of collectInitialEqns (initialization): time 4.223e-05/0.6243, allocations: 96.22 kB / 1.362 GB, free: 8.387 MB / 0.8311 GB Notification: Performance of collectInitialBindings (initialization): time 1.317e-05/0.6243, allocations: 11.91 kB / 1.362 GB, free: 8.375 MB / 0.8311 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.706e-05/0.6243, allocations: 0 / 1.362 GB, free: 8.375 MB / 0.8311 GB Notification: Performance of setup shared object (initialization): time 7.094e-05/0.6244, allocations: 318.8 kB / 1.362 GB, free: 8.055 MB / 0.8311 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.584e-05/0.6245, allocations: 51.98 kB / 1.362 GB, free: 8.004 MB / 0.8311 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/0.6246, allocations: 88.28 kB / 1.362 GB, free: 7.902 MB / 0.8311 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002778/0.6249, allocations: 67.92 kB / 1.362 GB, free: 7.836 MB / 0.8311 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.6249, allocations: 3.906 kB / 1.362 GB, free: 7.832 MB / 0.8311 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004481/0.6254, allocations: 204.7 kB / 1.362 GB, free: 7.629 MB / 0.8311 GB Notification: Performance of prepare postOptimizeDAE: time 8.356e-06/0.6254, allocations: 6.969 kB / 1.362 GB, free: 7.625 MB / 0.8311 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.6254, allocations: 8.375 kB / 1.362 GB, free: 7.617 MB / 0.8311 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.087e-06/0.6254, allocations: 3.938 kB / 1.362 GB, free: 7.613 MB / 0.8311 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.515e-05/0.6254, allocations: 4 kB / 1.362 GB, free: 7.609 MB / 0.8311 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.065e-06/0.6254, allocations: 0 / 1.362 GB, free: 7.609 MB / 0.8311 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000303/0.6257, allocations: 76.06 kB / 1.362 GB, free: 7.535 MB / 0.8311 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.024e-05/0.6258, allocations: 23.92 kB / 1.362 GB, free: 7.512 MB / 0.8311 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 6.542e-05/0.6258, allocations: 112.9 kB / 1.362 GB, free: 7.395 MB / 0.8311 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.193e-05/0.6259, allocations: 7.906 kB / 1.362 GB, free: 7.387 MB / 0.8311 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.388e-05/0.6259, allocations: 8.375 kB / 1.362 GB, free: 7.383 MB / 0.8311 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.6259, allocations: 0 / 1.362 GB, free: 7.383 MB / 0.8311 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.6259, allocations: 11.89 kB / 1.362 GB, free: 7.371 MB / 0.8311 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.6259, allocations: 0 / 1.362 GB, free: 7.371 MB / 0.8311 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.741e-05/0.626, allocations: 150.2 kB / 1.363 GB, free: 7.188 MB / 0.8311 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.626, allocations: 0 / 1.363 GB, free: 7.188 MB / 0.8311 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.524e-06/0.626, allocations: 0 / 1.363 GB, free: 7.188 MB / 0.8311 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.626, allocations: 8 kB / 1.363 GB, free: 7.18 MB / 0.8311 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.871e-06/0.626, allocations: 0 / 1.363 GB, free: 7.18 MB / 0.8311 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.626, allocations: 0 / 1.363 GB, free: 7.18 MB / 0.8311 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.626, allocations: 3.984 kB / 1.363 GB, free: 7.176 MB / 0.8311 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.376e-05/0.6261, allocations: 96.97 kB / 1.363 GB, free: 7.062 MB / 0.8311 GB Notification: Performance of postOpt removeConstants (simulation): time 2.627e-05/0.6262, allocations: 81.02 kB / 1.363 GB, free: 6.965 MB / 0.8311 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.44e-05/0.6262, allocations: 0 / 1.363 GB, free: 6.965 MB / 0.8311 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.203e-05/0.6262, allocations: 7.984 kB / 1.363 GB, free: 6.957 MB / 0.8311 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.782e-05/0.6263, allocations: 15.89 kB / 1.363 GB, free: 6.941 MB / 0.8311 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.132e-06/0.6263, allocations: 4 kB / 1.363 GB, free: 6.938 MB / 0.8311 GB Notification: Performance of sort global known variables: time 3.071e-05/0.6263, allocations: 87.28 kB / 1.363 GB, free: 6.852 MB / 0.8311 GB Notification: Performance of remove unused functions: time 0.0002064/0.6265, allocations: 28 kB / 1.363 GB, free: 6.824 MB / 0.8311 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.0001111/0.6266, allocations: 111.2 kB / 1.363 GB, free: 6.703 MB / 0.8311 GB Notification: Performance of simCode: created initialization part: time 0.0002054/0.6269, allocations: 155.4 kB / 1.363 GB, free: 6.539 MB / 0.8311 GB Notification: Performance of simCode: created event and clocks part: time 1.102e-06/0.6269, allocations: 0 / 1.363 GB, free: 6.539 MB / 0.8311 GB Notification: Performance of simCode: created simulation system equations: time 3.575e-05/0.6269, allocations: 24.23 kB / 1.363 GB, free: 6.516 MB / 0.8311 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001516/0.6271, allocations: 23.88 kB / 1.363 GB, free: 6.492 MB / 0.8311 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00018/0.6272, allocations: 91.61 kB / 1.363 GB, free: 6.379 MB / 0.8311 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001899/0.6274, allocations: 0.7018 MB / 1.364 GB, free: 5.652 MB / 0.8311 GB Notification: Performance of SimCode: time 2.61e-07/0.6275, allocations: 0 / 1.364 GB, free: 5.652 MB / 0.8311 GB Notification: Performance of Templates: time 0.003003/0.6305, allocations: 1.614 MB / 1.366 GB, free: 4.059 MB / 0.8311 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