Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.1-maint.9.1.x/package.mo): time 1.79/1.79, allocations: 387.2 MB / 394.5 MB, free: 13.68 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: 181.2 kB / 487 MB, free: 5.359 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.129/1.129, allocations: 221.3 MB / 0.7819 GB, free: 1.324 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008506/0.0008506, allocations: 90.19 kB / 0.9213 GB, free: 2.574 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.934e-06/8.045e-06, allocations: 8 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.198/0.198, allocations: 142.3 MB / 1.205 GB, free: 26.18 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4989/0.697, allocations: 148.8 MB / 1.351 GB, free: 16.04 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000167/0.6972, allocations: 69.78 kB / 1.351 GB, free: 16.04 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.005858/0.7031, allocations: 1.935 MB / 1.352 GB, free: 15.93 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.7031, allocations: 1.312 kB / 1.352 GB, free: 15.93 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004142/0.7035, allocations: 424.3 kB / 1.353 GB, free: 15.53 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.7036, allocations: 10.23 kB / 1.353 GB, free: 15.53 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.491e-05/0.7036, allocations: 15.28 kB / 1.353 GB, free: 15.52 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.825e-05/0.7037, allocations: 176.7 kB / 1.353 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.827e-05/0.7037, allocations: 3.781 kB / 1.353 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.428e-05/0.7038, allocations: 5.531 kB / 1.353 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.736e-05/0.7038, allocations: 24.42 kB / 1.353 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.759e-05/0.7039, allocations: 48.05 kB / 1.353 GB, free: 15.29 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.7039, allocations: 3.984 kB / 1.353 GB, free: 15.28 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.7039, allocations: 2.016 kB / 1.353 GB, free: 15.28 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.547e-06/0.704, allocations: 4 kB / 1.353 GB, free: 15.28 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000353/0.7043, allocations: 302.6 kB / 1.353 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 4.885e-05/0.7044, allocations: 34.56 kB / 1.353 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.478e-05/0.7044, allocations: 20.92 kB / 1.353 GB, free: 15 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 9.769e-06/0.7044, allocations: 0.9062 kB / 1.353 GB, free: 15 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.401e-05/0.7045, allocations: 74.36 kB / 1.354 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=6): time 1.232e-06/0.7045, allocations: 0 / 1.354 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of matching and sorting (n=6): time 0.0001635/0.7047, allocations: 71.95 kB / 1.354 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.668e-05/0.7047, allocations: 52.97 kB / 1.354 GB, free: 14.85 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.077e-05/0.7048, allocations: 110.2 kB / 1.354 GB, free: 14.76 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.7048, allocations: 26.92 kB / 1.354 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.803e-05/0.7048, allocations: 88.91 kB / 1.354 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.538e-05/0.7049, allocations: 16.2 kB / 1.354 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.329e-05/0.7049, allocations: 2.359 kB / 1.354 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.561e-05/0.7049, allocations: 322.3 kB / 1.354 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.329e-05/0.705, allocations: 34.73 kB / 1.354 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.933e-05/0.7051, allocations: 55.38 kB / 1.354 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001854/0.7053, allocations: 42.84 kB / 1.354 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.7053, allocations: 0.8438 kB / 1.354 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003087/0.7056, allocations: 134.2 kB / 1.354 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.839e-06/0.7056, allocations: 5.062 kB / 1.354 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.7056, allocations: 1.188 kB / 1.354 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.7056, allocations: 3.016 kB / 1.354 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001434/0.7058, allocations: 25.88 kB / 1.355 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.7058, allocations: 1.531 kB / 1.355 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002512/0.7061, allocations: 64.2 kB / 1.355 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.233e-05/0.7061, allocations: 6.547 kB / 1.355 GB, free: 14.23 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,$PRE.booPul.y,booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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 5.141e-05/0.7061, allocations: 112.5 kB / 1.355 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.333e-05/0.7062, allocations: 7.25 kB / 1.355 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.642e-05/0.7062, allocations: 11.47 kB / 1.355 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.7062, allocations: 1.031 kB / 1.355 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.7062, allocations: 0.8438 kB / 1.355 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.7062, allocations: 5.188 kB / 1.355 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.125e-05/0.7063, allocations: 159.9 kB / 1.355 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.7063, allocations: 0 / 1.355 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001159/0.7064, allocations: 27.22 kB / 1.355 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.7064, allocations: 0.9375 kB / 1.355 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.7065, allocations: 2.016 kB / 1.355 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.7065, allocations: 3.984 kB / 1.355 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.7065, allocations: 4.984 kB / 1.355 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001068/0.7066, allocations: 97.25 kB / 1.355 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.999e-05/0.7066, allocations: 88.58 kB / 1.355 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.7066, allocations: 1.797 kB / 1.355 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.7067, allocations: 20.88 kB / 1.355 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.773e-05/0.7068, allocations: 5.422 kB / 1.355 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.364e-06/0.7068, allocations: 2.938 kB / 1.355 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.069e-05/0.7068, allocations: 94.89 kB / 1.355 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002057/0.707, allocations: 25.5 kB / 1.355 GB, free: 13.68 MB / 0.8073 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,$whenCondition2,booPul.y) * 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.0001254/0.7072, allocations: 121.9 kB / 1.355 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001748/0.7074, allocations: 96.8 kB / 1.355 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.7074, allocations: 4.125 kB / 1.355 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.049e-05/0.7074, allocations: 26.59 kB / 1.355 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001584/0.7076, allocations: 15.77 kB / 1.355 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002288/0.7078, allocations: 91.56 kB / 1.356 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001263/0.708, allocations: 0.7034 MB / 1.356 GB, free: 12.77 MB / 0.8073 GB Notification: Performance of SimCode: time 2.1e-07/0.708, allocations: 4 kB / 1.356 GB, free: 12.76 MB / 0.8073 GB Notification: Performance of Templates: time 0.003346/0.7113, allocations: 1.357 MB / 1.358 GB, free: 12.66 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches