Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Integers.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001794/0.001794, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002012/0.002012, allocations: 193.7 kB / 16.25 MB, free: 6.629 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.597/1.597, allocations: 222.9 MB / 239.9 MB, free: 4.469 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.855/2.855, allocations: 437 MB / 0.7101 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002732/0.002732, allocations: 67.89 kB / 0.8688 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7871/0.7899, allocations: 151.6 MB / 1.017 GB, free: 2.73 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002534/0.7924, allocations: 0.9013 MB / 1.018 GB, free: 1.824 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001832/0.7943, allocations: 1.284 MB / 1.019 GB, free: 0.5234 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.153e-05/0.7944, allocations: 0 / 1.019 GB, free: 0.5234 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.927e-05/0.7944, allocations: 3.938 kB / 1.019 GB, free: 0.5195 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.901e-05/0.7946, allocations: 23.84 kB / 1.019 GB, free: 0.4961 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009183/0.7955, allocations: 300 kB / 1.019 GB, free: 216 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0003946/0.7959, allocations: 311.5 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.7961, allocations: 41.36 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001615/0.7962, allocations: 119.7 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001626/0.7964, allocations: 91.7 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.762e-05/0.7965, allocations: 24 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001012/0.7966, allocations: 47.97 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.472e-05/0.7966, allocations: 19.92 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001352/0.7968, allocations: 111.6 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003372/0.7971, allocations: 253.3 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.7971, allocations: 0 / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.943e-06/0.7971, allocations: 0 / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.347e-06/0.7971, allocations: 0 / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.000845/0.798, allocations: 0.5274 MB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.798, allocations: 8.031 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.605e-05/0.7981, allocations: 24.69 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000203/0.7983, allocations: 189.8 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.67e-05/0.7984, allocations: 12.38 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.233e-05/0.7984, allocations: 19.94 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00021/0.7987, allocations: 89.64 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.7987, allocations: 0 / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.004e-05/0.7987, allocations: 8 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.7987, allocations: 0 / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001039/0.7988, allocations: 43.98 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007935/0.7996, allocations: 0.4884 MB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002511/0.7999, allocations: 74.5 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.913e-05/0.8, allocations: 32.97 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.331e-05/0.8, allocations: 0 / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002155/0.8002, allocations: 121.8 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.373e-06/0.8002, allocations: 0 / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0003995/0.8006, allocations: 169.5 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.848e-05/0.8007, allocations: 55.41 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001724/0.8009, allocations: 171.8 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.929e-05/0.8009, allocations: 33.7 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.801, allocations: 104 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.404e-05/0.8011, allocations: 31.59 kB / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001432/0.8012, allocations: 73.67 kB / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001614/0.8014, allocations: 330.8 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002106/0.8016, allocations: 95.94 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002457/0.8018, allocations: 142 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003504/0.8022, allocations: 260.8 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.8022, allocations: 0 / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007006/0.8029, allocations: 404.1 kB / 1.024 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.255e-05/0.803, allocations: 105 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.803, allocations: 0 / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/0.8031, allocations: 4 kB / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.731e-05/0.8031, allocations: 12.12 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.8032, allocations: 8 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000519/0.8037, allocations: 87.73 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.636e-05/0.8037, allocations: 19.98 kB / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 3 * 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.000158/0.8039, allocations: 142.3 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.65e-05/0.8039, allocations: 19.73 kB / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.947e-05/0.804, allocations: 12.84 kB / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.804, allocations: 0 / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.804, allocations: 4 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.804, allocations: 0 / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002311/0.8043, allocations: 221.5 kB / 1.024 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.8043, allocations: 0 / 1.024 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.462e-05/0.8043, allocations: 8 kB / 1.024 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/0.8043, allocations: 7.938 kB / 1.024 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.8043, allocations: 4 kB / 1.024 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.8043, allocations: 0 / 1.024 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.8044, allocations: 0 / 1.024 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002561/0.8046, allocations: 168.7 kB / 1.024 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.268e-05/0.8047, allocations: 96.94 kB / 1.024 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.237e-05/0.8047, allocations: 4 kB / 1.024 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.98e-05/0.8048, allocations: 0 / 1.024 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.93e-05/0.8048, allocations: 11.98 kB / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/0.8048, allocations: 8 kB / 1.025 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001006/0.8049, allocations: 119.2 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8049, allocations: 3.938 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000276/0.8052, allocations: 48 kB / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001941/0.8054, allocations: 111.2 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005733/0.806, allocations: 393.8 kB / 1.025 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.806, allocations: 4.375 kB / 1.025 GB, free: 9.695 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.168e-05/0.8061, allocations: 55.92 kB / 1.025 GB, free: 9.641 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002839/0.8064, allocations: 23.97 kB / 1.025 GB, free: 9.617 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005193/0.8069, allocations: 267.6 kB / 1.025 GB, free: 9.332 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003553/0.8073, allocations: 0.7084 MB / 1.026 GB, free: 8.598 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.582e-05/0.8074, allocations: 16.64 kB / 1.026 GB, free: 8.582 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.123e-05/0.8074, allocations: 11.44 kB / 1.026 GB, free: 8.57 MB / 0.7794 GB Notification: Performance of SimCode: time 3.71e-07/0.8074, allocations: 4 kB / 1.026 GB, free: 8.566 MB / 0.7794 GB Notification: Performance of Templates: time 0.007328/0.8147, allocations: 2.78 MB / 1.029 GB, free: 5.816 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches