Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.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.Reals.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Reals.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.Reals.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 112.2 kB / 16.37 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 190.2 kB / 17.3 MB, free: 5.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.51/2.51, allocations: 442.6 MB / 0.7165 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 60.03 kB / 0.8774 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3314/0.3327, allocations: 153 MB / 1.027 GB, free: 2.016 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.00206/0.3348, allocations: 0.7995 MB / 1.028 GB, free: 1.219 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001601/0.3365, allocations: 1.155 MB / 1.029 GB, free: 48 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.359e-05/0.3366, allocations: 0 / 1.029 GB, free: 48 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.716e-05/0.3366, allocations: 3.938 kB / 1.029 GB, free: 44 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 8.852e-05/0.3367, allocations: 15.84 kB / 1.029 GB, free: 28 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.00059/0.3373, allocations: 130.8 kB / 1.029 GB, free: 15.9 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002121/0.3376, allocations: 139.6 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.3377, allocations: 15.98 kB / 1.029 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.842e-05/0.3378, allocations: 47.91 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001234/0.3379, allocations: 51.81 kB / 1.029 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.926e-05/0.3379, allocations: 16 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.277e-05/0.338, allocations: 27.97 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.688e-05/0.3381, allocations: 11.98 kB / 1.029 GB, free: 15.6 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.586e-05/0.3381, allocations: 47.78 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002336/0.3384, allocations: 115.7 kB / 1.029 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.3384, allocations: 0 / 1.029 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of FrontEnd: time 4.218e-06/0.3384, allocations: 3.938 kB / 1.029 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.3384, allocations: 3.938 kB / 1.029 GB, free: 15.43 MB / 0.8106 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.0007923/0.3392, allocations: 428.9 kB / 1.03 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.326e-05/0.3393, allocations: 8.75 kB / 1.03 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.223e-05/0.3394, allocations: 8.844 kB / 1.03 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001695/0.3395, allocations: 172.3 kB / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/0.3396, allocations: 4.375 kB / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.061e-05/0.3396, allocations: 12.38 kB / 1.03 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002665/0.3399, allocations: 74.2 kB / 1.03 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.3399, allocations: 192 / 1.03 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.3399, allocations: 3.938 kB / 1.03 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.3399, allocations: 4 kB / 1.03 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003001/0.3402, allocations: 79.84 kB / 1.03 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005636/0.3408, allocations: 324.7 kB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001919/0.341, allocations: 58.53 kB / 1.03 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.3412, allocations: 44.86 kB / 1.03 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.198e-05/0.3412, allocations: 0 / 1.03 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002836/0.3415, allocations: 95.28 kB / 1.031 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.332e-06/0.3415, allocations: 4 kB / 1.031 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0005796/0.3421, allocations: 161.5 kB / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.654e-05/0.3421, allocations: 55.39 kB / 1.031 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.3422, allocations: 122.1 kB / 1.031 GB, free: 13.6 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.897e-05/0.3423, allocations: 33.7 kB / 1.031 GB, free: 13.56 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.76e-05/0.3424, allocations: 100.1 kB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.094e-05/0.3424, allocations: 15.75 kB / 1.031 GB, free: 13.44 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.641e-05/0.3425, allocations: 37.7 kB / 1.031 GB, free: 13.4 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001297/0.3426, allocations: 322.8 kB / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000211/0.3428, allocations: 59.89 kB / 1.031 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002147/0.343, allocations: 86.52 kB / 1.031 GB, free: 12.92 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003826/0.3434, allocations: 140.2 kB / 1.032 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3434, allocations: 4 kB / 1.032 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005295/0.344, allocations: 203.2 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.759e-05/0.344, allocations: 37.69 kB / 1.032 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.3441, allocations: 11.92 kB / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.172e-05/0.3441, allocations: 0 / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001493/0.3442, allocations: 20.23 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.3443, allocations: 4.062 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002316/0.3445, allocations: 47.84 kB / 1.032 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.729e-05/0.3445, allocations: 8 kB / 1.032 GB, free: 12.42 MB / 0.8106 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,booPul.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000128/0.3447, allocations: 121.7 kB / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.675e-05/0.3447, allocations: 7.906 kB / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.002e-05/0.3447, allocations: 16.36 kB / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.3447, allocations: 4 kB / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.3448, allocations: 0 / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3448, allocations: 0 / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000206/0.345, allocations: 181.6 kB / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.345, allocations: 0 / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001068/0.3451, allocations: 27.91 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.3451, allocations: 0 / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.3451, allocations: 0 / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.3451, allocations: 4 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.3451, allocations: 0 / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003898/0.3455, allocations: 152.9 kB / 1.032 GB, free: 11.84 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.17e-05/0.3456, allocations: 77.2 kB / 1.032 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.822e-05/0.3456, allocations: 3.938 kB / 1.033 GB, free: 11.74 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.352e-05/0.3457, allocations: 15.98 kB / 1.033 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.952e-05/0.3458, allocations: 11.98 kB / 1.033 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-06/0.3458, allocations: 0 / 1.033 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.161e-05/0.3459, allocations: 106 kB / 1.033 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.1e-07/0.3459, allocations: 0 / 1.033 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002269/0.3461, allocations: 20 kB / 1.033 GB, free: 11.59 MB / 0.8106 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000216/0.3463, allocations: 107.2 kB / 1.033 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005072/0.3468, allocations: 187.3 kB / 1.033 GB, free: 11.29 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3469, allocations: 0 / 1.033 GB, free: 11.29 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001818/0.347, allocations: 51.89 kB / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002501/0.3473, allocations: 16.23 kB / 1.033 GB, free: 11.22 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004021/0.3477, allocations: 178.1 kB / 1.033 GB, free: 11.02 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002697/0.348, allocations: 0.6885 MB / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.535e-05/0.348, allocations: 4 kB / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.043e-05/0.3481, allocations: 11.44 kB / 1.034 GB, free: 10.29 MB / 0.8106 GB Notification: Performance of SimCode: time 4e-07/0.3481, allocations: 3.938 kB / 1.034 GB, free: 10.28 MB / 0.8106 GB Notification: Performance of Templates: time 0.004461/0.3525, allocations: 1.561 MB / 1.035 GB, free: 8.734 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches