Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.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.Continuous.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.432/2.432, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.00181/0.00181, allocations: 190.9 kB / 0.4902 GB, free: 2.258 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.747/1.747, allocations: 223.1 MB / 0.7992 GB, free: 14.73 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.000877/0.0008771, allocations: 96.02 kB / 0.9396 GB, free: 1.922 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004584/0.0004585, allocations: 15.22 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3211/0.3216, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1968/0.5184, allocations: 150.4 MB / 1.376 GB, free: 3.199 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003297/0.5188, allocations: 71.95 kB / 1.376 GB, free: 3.129 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.00709/0.5259, allocations: 2.232 MB / 1.378 GB, free: 0.8945 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.023e-06/0.5259, allocations: 0 / 1.378 GB, free: 0.8945 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.025e-05/0.5259, allocations: 4 kB / 1.378 GB, free: 0.8906 MB / 0.8698 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.0005949/0.5265, allocations: 428.7 kB / 1.379 GB, free: 428 kB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.5266, allocations: 8.562 kB / 1.379 GB, free: 420 kB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.224e-05/0.5267, allocations: 8 kB / 1.379 GB, free: 412 kB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001325/0.5268, allocations: 182.8 kB / 1.379 GB, free: 188 kB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.706e-05/0.5268, allocations: 4 kB / 1.379 GB, free: 184 kB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.211e-05/0.5269, allocations: 8 kB / 1.379 GB, free: 176 kB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002778/0.5271, allocations: 89.64 kB / 1.379 GB, free: 80 kB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.5272, allocations: 0 / 1.379 GB, free: 80 kB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.5272, allocations: 0 / 1.379 GB, free: 80 kB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.5272, allocations: 0 / 1.379 GB, free: 80 kB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003508/0.5275, allocations: 95.86 kB / 1.379 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004836/0.528, allocations: 332.8 kB / 1.379 GB, free: 15.61 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002089/0.5283, allocations: 58.55 kB / 1.379 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.391e-05/0.5283, allocations: 0 / 1.379 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003149/0.5286, allocations: 111.4 kB / 1.38 GB, free: 15.42 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=6): time 4.358e-06/0.5286, allocations: 3.984 kB / 1.38 GB, free: 15.42 MB / 0.8855 GB Notification: Performance of matching and sorting (n=6): time 0.0006426/0.5293, allocations: 201.4 kB / 1.38 GB, free: 15.21 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.809e-05/0.5293, allocations: 55.36 kB / 1.38 GB, free: 15.15 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/0.5294, allocations: 121 kB / 1.38 GB, free: 15.02 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.69e-05/0.5295, allocations: 29.7 kB / 1.38 GB, free: 14.99 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.917e-05/0.5295, allocations: 92.12 kB / 1.38 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.245e-05/0.5296, allocations: 19.8 kB / 1.38 GB, free: 14.88 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.203e-05/0.5296, allocations: 4 kB / 1.38 GB, free: 14.87 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.5297, allocations: 322.8 kB / 1.38 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002207/0.53, allocations: 71.88 kB / 1.38 GB, free: 14.48 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002206/0.5302, allocations: 90.53 kB / 1.381 GB, free: 14.38 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002296/0.5304, allocations: 101.7 kB / 1.381 GB, free: 14.27 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.5305, allocations: 0 / 1.381 GB, free: 14.27 MB / 0.8855 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005451/0.531, allocations: 231.3 kB / 1.381 GB, free: 14.04 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 3.853e-05/0.531, allocations: 33.7 kB / 1.381 GB, free: 14 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.5311, allocations: 3.984 kB / 1.381 GB, free: 13.99 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.5311, allocations: 4 kB / 1.381 GB, free: 13.99 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.5312, allocations: 27.97 kB / 1.381 GB, free: 13.96 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.5313, allocations: 0 / 1.381 GB, free: 13.96 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002765/0.5315, allocations: 55.91 kB / 1.381 GB, free: 13.91 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.613e-05/0.5316, allocations: 15.98 kB / 1.381 GB, free: 13.89 MB / 0.8855 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 () * Number of clocked 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 0.0001033/0.5317, allocations: 117.8 kB / 1.381 GB, free: 13.77 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.566e-05/0.5317, allocations: 7.906 kB / 1.381 GB, free: 13.76 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.007e-05/0.5318, allocations: 8.375 kB / 1.381 GB, free: 13.74 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.5318, allocations: 0 / 1.381 GB, free: 13.74 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.5318, allocations: 4 kB / 1.381 GB, free: 13.74 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.5318, allocations: 96 / 1.381 GB, free: 13.74 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001715/0.532, allocations: 193.5 kB / 1.381 GB, free: 13.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.532, allocations: 320 / 1.381 GB, free: 13.5 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001154/0.5321, allocations: 27.98 kB / 1.381 GB, free: 13.47 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.5321, allocations: 0 / 1.381 GB, free: 13.47 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.759e-06/0.5321, allocations: 0 / 1.381 GB, free: 13.47 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.5321, allocations: 0 / 1.381 GB, free: 13.47 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.5321, allocations: 0 / 1.381 GB, free: 13.47 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000416/0.5325, allocations: 180.8 kB / 1.382 GB, free: 13.28 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.225e-05/0.5326, allocations: 85.05 kB / 1.382 GB, free: 13.18 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.988e-05/0.5326, allocations: 7.984 kB / 1.382 GB, free: 13.17 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.411e-05/0.5327, allocations: 19.92 kB / 1.382 GB, free: 13.15 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.227e-05/0.5328, allocations: 7.984 kB / 1.382 GB, free: 13.14 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.592e-06/0.5328, allocations: 0 / 1.382 GB, free: 13.14 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.956e-05/0.5329, allocations: 95.27 kB / 1.382 GB, free: 13.05 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5329, allocations: 0 / 1.382 GB, free: 13.05 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.000216/0.5331, allocations: 28 kB / 1.382 GB, free: 13.02 MB / 0.8855 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 () * Number of clocked 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.0002322/0.5333, allocations: 112 kB / 1.382 GB, free: 12.9 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0005244/0.5339, allocations: 215.2 kB / 1.382 GB, free: 12.68 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.5339, allocations: 0 / 1.382 GB, free: 12.68 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001962/0.5341, allocations: 55.95 kB / 1.382 GB, free: 12.62 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000181/0.5343, allocations: 20.92 kB / 1.382 GB, free: 12.61 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004184/0.5347, allocations: 177.5 kB / 1.382 GB, free: 12.41 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003386/0.5351, allocations: 0.7004 MB / 1.383 GB, free: 11.68 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.188e-05/0.5351, allocations: 192 / 1.383 GB, free: 11.68 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.788e-05/0.5351, allocations: 15.38 kB / 1.383 GB, free: 11.66 MB / 0.8855 GB Notification: Performance of SimCode: time 4.01e-07/0.5352, allocations: 0 / 1.383 GB, free: 11.66 MB / 0.8855 GB Notification: Performance of Templates: time 0.003935/0.5391, allocations: 1.33 MB / 1.384 GB, free: 10.34 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches