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.Switch.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.Switch,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.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,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.Switch") [: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.38/1.38, allocations: 249.4 MB / 256.7 MB, free: 6.855 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.001093/0.001093, allocations: 188.8 kB / 316 MB, free: 3.551 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.488/1.488, allocations: 205.2 MB / 0.5667 GB, free: 15.75 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.0009948/0.0009949, allocations: 94.09 kB / 0.671 GB, free: 4.895 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.128e-05/1.131e-05, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.195/0.1951, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5927/0.7878, allocations: 132 MB / 1.013 GB, free: 6.777 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001721/0.788, allocations: 73.62 kB / 1.014 GB, free: 6.734 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.002853/0.7909, allocations: 0.8278 MB / 1.014 GB, free: 6.02 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5e-06/0.7909, allocations: 0 / 1.014 GB, free: 6.02 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005074/0.7914, allocations: 386 kB / 1.015 GB, free: 5.602 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 2.729e-05/0.7915, allocations: 8.031 kB / 1.015 GB, free: 5.594 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.994e-05/0.7915, allocations: 11.89 kB / 1.015 GB, free: 5.582 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.7916, allocations: 178.8 kB / 1.015 GB, free: 5.371 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.7917, allocations: 0 / 1.015 GB, free: 5.371 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.281e-05/0.7917, allocations: 4 kB / 1.015 GB, free: 5.367 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.833e-05/0.7918, allocations: 22.62 kB / 1.015 GB, free: 5.352 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.092e-05/0.7919, allocations: 56.55 kB / 1.015 GB, free: 5.297 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.11e-06/0.7919, allocations: 4 kB / 1.015 GB, free: 5.293 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.322e-05/0.7919, allocations: 3.906 kB / 1.015 GB, free: 5.289 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.397e-06/0.7919, allocations: 0 / 1.015 GB, free: 5.289 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000276/0.7922, allocations: 263.6 kB / 1.015 GB, free: 5.012 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 5.878e-05/0.7923, allocations: 36.52 kB / 1.015 GB, free: 4.977 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.978e-05/0.7923, allocations: 20.8 kB / 1.015 GB, free: 4.957 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.025e-05/0.7923, allocations: 2.625 kB / 1.015 GB, free: 4.957 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.117e-05/0.7924, allocations: 65.41 kB / 1.015 GB, free: 4.891 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 1.062e-06/0.7924, allocations: 0 / 1.015 GB, free: 4.891 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0001404/0.7925, allocations: 63.59 kB / 1.015 GB, free: 4.832 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.516e-05/0.7926, allocations: 55.41 kB / 1.015 GB, free: 4.766 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.396e-05/0.7927, allocations: 110.8 kB / 1.016 GB, free: 4.66 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.616e-05/0.7927, allocations: 25.7 kB / 1.016 GB, free: 4.629 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.193e-05/0.7928, allocations: 84.14 kB / 1.016 GB, free: 4.543 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.533e-05/0.7928, allocations: 23.45 kB / 1.016 GB, free: 4.523 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.391e-06/0.7928, allocations: 0 / 1.016 GB, free: 4.523 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001159/0.7929, allocations: 318.7 kB / 1.016 GB, free: 4.207 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.345e-05/0.793, allocations: 11.88 kB / 1.016 GB, free: 4.199 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.218e-05/0.793, allocations: 29.47 kB / 1.016 GB, free: 4.172 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.482e-05/0.793, allocations: 19.56 kB / 1.016 GB, free: 4.156 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.7931, allocations: 4 kB / 1.016 GB, free: 4.152 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001202/0.7932, allocations: 66.66 kB / 1.016 GB, free: 4.09 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.118e-05/0.7932, allocations: 4 kB / 1.016 GB, free: 4.086 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.7932, allocations: 0 / 1.016 GB, free: 4.086 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.7932, allocations: 4 kB / 1.016 GB, free: 4.082 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.7934, allocations: 27.7 kB / 1.016 GB, free: 4.059 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.457e-06/0.7934, allocations: 0 / 1.016 GB, free: 4.059 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001358/0.7935, allocations: 43.78 kB / 1.016 GB, free: 4.016 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.194e-06/0.7936, allocations: 3.938 kB / 1.016 GB, free: 4.012 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 6.806e-05/0.7936, allocations: 112 kB / 1.016 GB, free: 3.898 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.489e-05/0.7937, allocations: 7.906 kB / 1.016 GB, free: 3.891 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.201e-05/0.7937, allocations: 11.55 kB / 1.016 GB, free: 3.879 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.7937, allocations: 0 / 1.016 GB, free: 3.879 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.7937, allocations: 0 / 1.016 GB, free: 3.879 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.7937, allocations: 4 kB / 1.016 GB, free: 3.875 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001757/0.7939, allocations: 156.6 kB / 1.016 GB, free: 3.695 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.7939, allocations: 0 / 1.016 GB, free: 3.695 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001178/0.794, allocations: 27.98 kB / 1.017 GB, free: 3.668 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.794, allocations: 0 / 1.017 GB, free: 3.668 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.7941, allocations: 3.906 kB / 1.017 GB, free: 3.664 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.7941, allocations: 0 / 1.017 GB, free: 3.664 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.7941, allocations: 3.984 kB / 1.017 GB, free: 3.66 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001327/0.7942, allocations: 99.03 kB / 1.017 GB, free: 3.559 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.907e-05/0.7943, allocations: 85.02 kB / 1.017 GB, free: 3.457 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.7943, allocations: 0 / 1.017 GB, free: 3.457 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001357/0.7944, allocations: 27.97 kB / 1.017 GB, free: 3.43 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.824e-05/0.7945, allocations: 12.09 kB / 1.017 GB, free: 3.418 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.594e-06/0.7945, allocations: 4 kB / 1.017 GB, free: 3.414 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5.964e-05/0.7946, allocations: 94.78 kB / 1.017 GB, free: 3.328 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001807/0.7947, allocations: 8 kB / 1.017 GB, free: 3.32 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: 3 ($whenCondition1,booPul.y,booPul.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001269/0.7949, allocations: 99.25 kB / 1.017 GB, free: 3.215 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001155/0.795, allocations: 42.36 kB / 1.017 GB, free: 3.184 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.795, allocations: 3.938 kB / 1.017 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 5.587e-05/0.7951, allocations: 21.12 kB / 1.017 GB, free: 3.168 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001997/0.7953, allocations: 11.91 kB / 1.017 GB, free: 3.156 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002922/0.7956, allocations: 95.05 kB / 1.017 GB, free: 3.047 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003062/0.7959, allocations: 0.7114 MB / 1.018 GB, free: 2.309 MB / 0.6355 GB Notification: Performance of SimCode: time 2.71e-07/0.7959, allocations: 0 / 1.018 GB, free: 2.309 MB / 0.6355 GB Notification: Performance of Templates: time 0.00282/0.7987, allocations: 0.9301 MB / 1.019 GB, free: 1.398 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches