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.001189/0.001189, allocations: 105.2 kB / 16.35 MB, free: 5.824 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.001301/0.001301, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.377/1.377, 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.5/2.5, allocations: 442.6 MB / 0.7165 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 76.06 kB / 0.8774 GB, free: 10.9 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3307/0.3321, allocations: 153 MB / 1.027 GB, free: 1.992 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002821/0.335, allocations: 0.7996 MB / 1.028 GB, free: 1.195 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002104/0.3371, allocations: 1.155 MB / 1.029 GB, free: 24 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.147e-05/0.3373, allocations: 0 / 1.029 GB, free: 24 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 4.831e-05/0.3374, allocations: 7.922 kB / 1.029 GB, free: 16 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001209/0.3375, allocations: 15.86 kB / 1.029 GB, free: 0 / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000692/0.3382, allocations: 130.8 kB / 1.029 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002314/0.3385, allocations: 131.8 kB / 1.029 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000119/0.3386, allocations: 16 kB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.3387, allocations: 59.77 kB / 1.029 GB, free: 15.67 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001154/0.3388, allocations: 51.86 kB / 1.029 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.185e-05/0.3389, allocations: 12 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.421e-05/0.339, allocations: 23.98 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.92e-05/0.339, allocations: 11.94 kB / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.341e-05/0.3391, allocations: 43.84 kB / 1.029 GB, free: 15.53 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.00022/0.3393, allocations: 123.6 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.3393, allocations: 4 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.823e-06/0.3393, allocations: 0 / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.688e-06/0.3394, allocations: 4 kB / 1.029 GB, free: 15.4 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.0008207/0.3402, allocations: 418.1 kB / 1.03 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.3402, allocations: 12.03 kB / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.168e-05/0.3403, allocations: 12.78 kB / 1.03 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001982/0.3405, allocations: 175.5 kB / 1.03 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.73e-05/0.3405, allocations: 12.38 kB / 1.03 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.801e-05/0.3406, allocations: 4.375 kB / 1.03 GB, free: 14.69 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002844/0.3409, allocations: 78.2 kB / 1.03 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.3409, allocations: 4.172 kB / 1.03 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/0.3409, allocations: 3.938 kB / 1.03 GB, free: 14.6 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.3409, allocations: 0 / 1.03 GB, free: 14.6 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000298/0.3412, allocations: 75.92 kB / 1.03 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005241/0.3417, allocations: 332.5 kB / 1.03 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001881/0.3419, allocations: 50.53 kB / 1.03 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002187/0.3422, allocations: 48.92 kB / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.92e-05/0.3422, allocations: 4.062 kB / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002928/0.3425, allocations: 95.34 kB / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.894e-06/0.3425, allocations: 0 / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.000674/0.3432, allocations: 173.4 kB / 1.031 GB, free: 13.76 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.435e-05/0.3433, allocations: 55.41 kB / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.3434, allocations: 118.1 kB / 1.031 GB, free: 13.56 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.606e-05/0.3434, allocations: 25.7 kB / 1.031 GB, free: 13.53 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.452e-05/0.3435, allocations: 100 kB / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.18e-05/0.3435, allocations: 15.75 kB / 1.031 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.412e-05/0.3436, allocations: 41.7 kB / 1.031 GB, free: 13.37 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000131/0.3437, allocations: 322.8 kB / 1.031 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002167/0.344, allocations: 59.95 kB / 1.031 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002025/0.3442, allocations: 78.52 kB / 1.031 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003986/0.3446, allocations: 148.1 kB / 1.032 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3446, allocations: 0 / 1.032 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005086/0.3451, allocations: 207.3 kB / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.115e-05/0.3452, allocations: 40.66 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.3452, allocations: 0 / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.3452, allocations: 4 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/0.3454, allocations: 11.98 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.3454, allocations: 11.92 kB / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002193/0.3456, allocations: 43.86 kB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.84e-05/0.3456, allocations: 8 kB / 1.032 GB, free: 12.4 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.0001004/0.3457, allocations: 121.7 kB / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.644e-05/0.3458, allocations: 7.906 kB / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.647e-05/0.3458, allocations: 12.36 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.3458, allocations: 4.094 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3458, allocations: 3.938 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.3458, allocations: 0 / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001608/0.346, allocations: 185.6 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.346, allocations: 4 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001028/0.3461, allocations: 19.97 kB / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.3461, allocations: 0 / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.388e-06/0.3462, allocations: 3.938 kB / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.3462, allocations: 0 / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3462, allocations: 320 / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004571/0.3466, allocations: 164.8 kB / 1.032 GB, free: 11.81 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.28e-05/0.3467, allocations: 81.11 kB / 1.032 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.878e-05/0.3467, allocations: 0 / 1.032 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.228e-05/0.3468, allocations: 15.97 kB / 1.033 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.636e-05/0.3469, allocations: 7.984 kB / 1.033 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.796e-06/0.3469, allocations: 4 kB / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.197e-05/0.3469, allocations: 99.27 kB / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/0.347, allocations: 4 kB / 1.033 GB, free: 11.58 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002327/0.3472, allocations: 20 kB / 1.033 GB, free: 11.56 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.0002742/0.3475, allocations: 107.2 kB / 1.033 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004795/0.348, allocations: 187.2 kB / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.348, allocations: 0 / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001595/0.3481, allocations: 48.09 kB / 1.033 GB, free: 11.21 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002213/0.3484, allocations: 15.92 kB / 1.033 GB, free: 11.19 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004367/0.3488, allocations: 173.9 kB / 1.033 GB, free: 10.99 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002799/0.3491, allocations: 0.6924 MB / 1.034 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.142e-05/0.3492, allocations: 4 kB / 1.034 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.207e-05/0.3492, allocations: 11.44 kB / 1.034 GB, free: 10.26 MB / 0.8106 GB Notification: Performance of SimCode: time 2.2e-07/0.3492, allocations: 0 / 1.034 GB, free: 10.26 MB / 0.8106 GB Notification: Performance of Templates: time 0.004576/0.3538, allocations: 1.579 MB / 1.035 GB, free: 8.699 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 gbode -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