Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch") [: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 7.0.3-maint.7.0.x/package.mo): time 1.387/1.387, allocations: 249.4 MB / 256.7 MB, free: 7.023 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001021/0.001021, allocations: 181.2 kB / 316 MB, free: 3.59 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.527/1.527, allocations: 205.1 MB / 0.5667 GB, free: 15.65 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009821/0.0009821, allocations: 89.36 kB / 0.671 GB, free: 4.773 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.626e-06/8.666e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1989/0.1989, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6515/0.8504, allocations: 131.7 MB / 1.013 GB, free: 7.055 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002068/0.8507, allocations: 64.75 kB / 1.013 GB, free: 7.023 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.003112/0.8538, allocations: 0.8773 MB / 1.014 GB, free: 6.262 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.284e-06/0.8539, allocations: 0 / 1.014 GB, free: 6.262 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005294/0.8544, allocations: 392.8 kB / 1.015 GB, free: 5.84 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.8545, allocations: 8.031 kB / 1.015 GB, free: 5.832 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.433e-05/0.8545, allocations: 11.81 kB / 1.015 GB, free: 5.82 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001648/0.8547, allocations: 171 kB / 1.015 GB, free: 5.613 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.439e-05/0.8547, allocations: 7.812 kB / 1.015 GB, free: 5.609 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.697e-05/0.8547, allocations: 4 kB / 1.015 GB, free: 5.605 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.783e-05/0.8548, allocations: 30.45 kB / 1.015 GB, free: 5.582 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001106/0.855, allocations: 53.06 kB / 1.015 GB, free: 5.531 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.855, allocations: 7.984 kB / 1.015 GB, free: 5.523 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.855, allocations: 0.75 kB / 1.015 GB, free: 5.523 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.855, allocations: 0 / 1.015 GB, free: 5.523 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003984/0.8554, allocations: 275.8 kB / 1.015 GB, free: 5.238 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.259e-05/0.8555, allocations: 49.66 kB / 1.015 GB, free: 5.188 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.299e-05/0.8556, allocations: 19.73 kB / 1.015 GB, free: 5.172 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.501e-05/0.8556, allocations: 0 / 1.015 GB, free: 5.172 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.569e-05/0.8557, allocations: 75.94 kB / 1.015 GB, free: 5.098 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 1.133e-06/0.8557, allocations: 0 / 1.015 GB, free: 5.098 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0002046/0.8559, allocations: 86.47 kB / 1.015 GB, free: 5.02 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.29e-05/0.856, allocations: 55.41 kB / 1.015 GB, free: 4.953 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.8561, allocations: 115.4 kB / 1.015 GB, free: 4.844 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.865e-05/0.8561, allocations: 25.7 kB / 1.015 GB, free: 4.812 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.754e-05/0.8561, allocations: 84.14 kB / 1.016 GB, free: 4.727 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.362e-05/0.8562, allocations: 23.45 kB / 1.016 GB, free: 4.707 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.581e-06/0.8562, allocations: 0 / 1.016 GB, free: 4.707 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001623/0.8563, allocations: 317.7 kB / 1.016 GB, free: 4.391 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.231e-05/0.8564, allocations: 19.12 kB / 1.016 GB, free: 4.379 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.156e-05/0.8565, allocations: 49.73 kB / 1.016 GB, free: 4.328 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.557e-05/0.8565, allocations: 15.25 kB / 1.016 GB, free: 4.316 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.8565, allocations: 0 / 1.016 GB, free: 4.316 MB / 0.6355 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001356/0.8566, allocations: 90.39 kB / 1.016 GB, free: 4.234 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.8567, allocations: 14.91 kB / 1.016 GB, free: 4.223 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.8567, allocations: 4 kB / 1.016 GB, free: 4.219 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.8567, allocations: 0 / 1.016 GB, free: 4.219 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.188e-05/0.8568, allocations: 11.94 kB / 1.016 GB, free: 4.207 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.8568, allocations: 0 / 1.016 GB, free: 4.207 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001299/0.8569, allocations: 31.88 kB / 1.016 GB, free: 4.176 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.246e-05/0.8569, allocations: 7.438 kB / 1.016 GB, free: 4.172 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,booPul2.y,$PRE.booPul2.pulseStart,booPul2.pulseStart,booPul3.y,$PRE.booPul3.pulseStart,booPul3.pulseStart,logicalSwitch.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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.149e-05/0.857, allocations: 113 kB / 1.016 GB, free: 4.055 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.594e-05/0.8571, allocations: 7.906 kB / 1.016 GB, free: 4.047 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.201e-05/0.8571, allocations: 16.19 kB / 1.016 GB, free: 4.031 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.8571, allocations: 0 / 1.016 GB, free: 4.031 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.8571, allocations: 0 / 1.016 GB, free: 4.031 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.8571, allocations: 0 / 1.016 GB, free: 4.031 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001646/0.8573, allocations: 171.4 kB / 1.016 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.8573, allocations: 0 / 1.016 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.181e-05/0.8573, allocations: 11.81 kB / 1.016 GB, free: 3.828 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.8573, allocations: 0 / 1.016 GB, free: 3.828 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/0.8574, allocations: 0 / 1.016 GB, free: 3.828 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.8574, allocations: 4 kB / 1.016 GB, free: 3.824 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.8574, allocations: 0 / 1.016 GB, free: 3.824 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001438/0.8575, allocations: 110.7 kB / 1.017 GB, free: 3.711 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.156e-05/0.8576, allocations: 81.02 kB / 1.017 GB, free: 3.613 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.359e-05/0.8576, allocations: 8 kB / 1.017 GB, free: 3.605 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001215/0.8577, allocations: 23.97 kB / 1.017 GB, free: 3.582 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.885e-05/0.8578, allocations: 11.97 kB / 1.017 GB, free: 3.57 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.031e-05/0.8578, allocations: 11.88 kB / 1.017 GB, free: 3.562 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.815e-05/0.8579, allocations: 87.16 kB / 1.017 GB, free: 3.48 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000191/0.8581, allocations: 16 kB / 1.017 GB, free: 3.465 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,booPul1.y,booPul1.pulseStart,booPul2.y,booPul2.pulseStart,booPul3.y,booPul3.pulseStart,logicalSwitch.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.000173/0.8582, allocations: 103.2 kB / 1.017 GB, free: 3.359 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001323/0.8584, allocations: 56.12 kB / 1.017 GB, free: 3.316 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.8584, allocations: 0 / 1.017 GB, free: 3.316 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.532e-05/0.8585, allocations: 33.94 kB / 1.017 GB, free: 3.293 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002313/0.8587, allocations: 18.17 kB / 1.017 GB, free: 3.277 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003164/0.859, allocations: 116.9 kB / 1.017 GB, free: 3.152 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003429/0.8594, allocations: 0.7152 MB / 1.018 GB, free: 2.41 MB / 0.6355 GB Notification: Performance of SimCode: time 2.2e-07/0.8594, allocations: 0 / 1.018 GB, free: 2.41 MB / 0.6355 GB Notification: Performance of Templates: time 0.0034/0.8628, allocations: 1.159 MB / 1.019 GB, free: 1.27 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Logical_Validation_LogicalSwitch.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches