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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001525/0.001525, allocations: 110 kB / 16.37 MB, free: 6.469 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.001754/0.001754, allocations: 195.8 kB / 17.31 MB, free: 5.824 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.476/1.476, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.557/2.557, allocations: 437.1 MB / 0.7112 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 55.91 kB / 0.8707 GB, free: 1.441 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4111/0.4126, allocations: 151.6 MB / 1.019 GB, free: 9.844 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002749/0.4154, allocations: 0.8307 MB / 1.02 GB, free: 9.004 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002322/0.4177, allocations: 1.286 MB / 1.021 GB, free: 7.703 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.908e-05/0.4178, allocations: 4 kB / 1.021 GB, free: 7.699 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 5.31e-05/0.4179, allocations: 11.86 kB / 1.021 GB, free: 7.688 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001224/0.4181, allocations: 15.81 kB / 1.021 GB, free: 7.672 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001243/0.4194, allocations: 326.6 kB / 1.021 GB, free: 7.359 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0004902/0.4199, allocations: 307.5 kB / 1.022 GB, free: 7.059 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001622/0.42, allocations: 49.27 kB / 1.022 GB, free: 7.004 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001881/0.4202, allocations: 119.7 kB / 1.022 GB, free: 6.887 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002425/0.4205, allocations: 115.6 kB / 1.022 GB, free: 6.773 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 6.622e-05/0.4206, allocations: 24 kB / 1.022 GB, free: 6.75 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.4207, allocations: 43.98 kB / 1.022 GB, free: 6.707 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 4.291e-05/0.4208, allocations: 19.92 kB / 1.022 GB, free: 6.688 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001773/0.4209, allocations: 107.7 kB / 1.022 GB, free: 6.582 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0004467/0.4214, allocations: 259.2 kB / 1.022 GB, free: 6.328 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.4214, allocations: 0 / 1.022 GB, free: 6.328 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.444e-06/0.4214, allocations: 0 / 1.022 GB, free: 6.328 MB / 0.795 GB Notification: Performance of Transformations before backend: time 9.638e-06/0.4215, allocations: 0 / 1.022 GB, free: 6.328 MB / 0.795 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.0008423/0.4223, allocations: 0.5275 MB / 1.023 GB, free: 5.734 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.4224, allocations: 8.031 kB / 1.023 GB, free: 5.727 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.4225, allocations: 24.75 kB / 1.023 GB, free: 5.703 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001908/0.4227, allocations: 186.8 kB / 1.023 GB, free: 5.484 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.04e-05/0.4227, allocations: 12.38 kB / 1.023 GB, free: 5.473 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.842e-05/0.4228, allocations: 27.88 kB / 1.023 GB, free: 5.445 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000253/0.4231, allocations: 87.2 kB / 1.023 GB, free: 5.355 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.4231, allocations: 3.938 kB / 1.023 GB, free: 5.352 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.515e-05/0.4232, allocations: 11.92 kB / 1.023 GB, free: 5.34 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.4232, allocations: 4 kB / 1.023 GB, free: 5.336 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000179/0.4234, allocations: 43.98 kB / 1.023 GB, free: 5.293 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009817/0.4244, allocations: 0.4923 MB / 1.024 GB, free: 4.75 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002956/0.4247, allocations: 62.62 kB / 1.024 GB, free: 4.68 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.159e-05/0.4248, allocations: 32.89 kB / 1.024 GB, free: 4.645 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.634e-05/0.4248, allocations: 8 kB / 1.024 GB, free: 4.637 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002554/0.4251, allocations: 125.1 kB / 1.024 GB, free: 4.504 MB / 0.795 GB Notification: Performance of pre-optimization done (n=14): time 2.255e-06/0.4251, allocations: 0 / 1.024 GB, free: 4.504 MB / 0.795 GB Notification: Performance of matching and sorting (n=14): time 0.0005085/0.4256, allocations: 161.5 kB / 1.024 GB, free: 4.34 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.686e-05/0.4257, allocations: 55.41 kB / 1.024 GB, free: 4.273 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001931/0.4259, allocations: 161 kB / 1.024 GB, free: 4.105 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 5.717e-05/0.4259, allocations: 33.7 kB / 1.024 GB, free: 4.066 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.4261, allocations: 120 kB / 1.024 GB, free: 3.945 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.66e-05/0.4261, allocations: 31.55 kB / 1.024 GB, free: 3.914 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000208/0.4263, allocations: 73.67 kB / 1.024 GB, free: 3.836 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001455/0.4265, allocations: 322.8 kB / 1.025 GB, free: 3.512 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003355/0.4268, allocations: 99.88 kB / 1.025 GB, free: 3.414 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003655/0.4272, allocations: 146 kB / 1.025 GB, free: 3.25 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000477/0.4277, allocations: 243 kB / 1.025 GB, free: 2.973 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.4277, allocations: 4 kB / 1.025 GB, free: 2.969 MB / 0.795 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0009879/0.4287, allocations: 404.6 kB / 1.026 GB, free: 2.551 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001023/0.4288, allocations: 105 kB / 1.026 GB, free: 2.43 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.4288, allocations: 3.984 kB / 1.026 GB, free: 2.426 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.4289, allocations: 4 kB / 1.026 GB, free: 2.422 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.2e-05/0.429, allocations: 8 kB / 1.026 GB, free: 2.414 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.319e-05/0.429, allocations: 4 kB / 1.026 GB, free: 2.41 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006779/0.4297, allocations: 91.88 kB / 1.026 GB, free: 2.32 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.419e-05/0.4297, allocations: 15.98 kB / 1.026 GB, free: 2.305 MB / 0.795 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.0001766/0.4299, allocations: 133.8 kB / 1.026 GB, free: 2.164 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.27e-05/0.43, allocations: 15.75 kB / 1.026 GB, free: 2.148 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.695e-05/0.43, allocations: 20.84 kB / 1.026 GB, free: 2.129 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.43, allocations: 0 / 1.026 GB, free: 2.129 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.43, allocations: 0 / 1.026 GB, free: 2.129 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.4301, allocations: 4 kB / 1.026 GB, free: 2.125 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002603/0.4303, allocations: 213.6 kB / 1.026 GB, free: 1.867 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.4303, allocations: 0 / 1.026 GB, free: 1.867 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.537e-05/0.4304, allocations: 11.94 kB / 1.026 GB, free: 1.855 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.015e-06/0.4304, allocations: 7.938 kB / 1.026 GB, free: 1.848 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.4305, allocations: 11.98 kB / 1.026 GB, free: 1.836 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.207e-06/0.4305, allocations: 3.984 kB / 1.026 GB, free: 1.832 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.4305, allocations: 0 / 1.026 GB, free: 1.832 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000331/0.4308, allocations: 172.6 kB / 1.026 GB, free: 1.648 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 7.051e-05/0.4309, allocations: 88.95 kB / 1.026 GB, free: 1.543 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.717e-05/0.4309, allocations: 0 / 1.026 GB, free: 1.543 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.393e-05/0.431, allocations: 8 kB / 1.026 GB, free: 1.535 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.461e-05/0.4311, allocations: 7.984 kB / 1.026 GB, free: 1.527 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.729e-05/0.4311, allocations: 8 kB / 1.026 GB, free: 1.52 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001099/0.4312, allocations: 113.4 kB / 1.027 GB, free: 1.41 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.91e-07/0.4312, allocations: 4 kB / 1.027 GB, free: 1.406 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004842/0.4317, allocations: 59.83 kB / 1.027 GB, free: 1.348 MB / 0.795 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.0001856/0.4319, allocations: 115.8 kB / 1.027 GB, free: 1.227 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0007451/0.4327, allocations: 382.1 kB / 1.027 GB, free: 0.8164 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.4327, allocations: 0 / 1.027 GB, free: 0.8164 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001383/0.4328, allocations: 59.89 kB / 1.027 GB, free: 0.7578 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004062/0.4332, allocations: 24.36 kB / 1.027 GB, free: 0.7344 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006351/0.4339, allocations: 235.7 kB / 1.027 GB, free: 492 kB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004241/0.4343, allocations: 0.7045 MB / 1.028 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.277e-05/0.4344, allocations: 16.64 kB / 1.028 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.616e-05/0.4345, allocations: 19.44 kB / 1.028 GB, free: 15.72 MB / 0.8106 GB Notification: Performance of SimCode: time 3.3e-07/0.4345, allocations: 0 / 1.028 GB, free: 15.72 MB / 0.8106 GB Notification: Performance of Templates: time 0.008053/0.4425, allocations: 2.799 MB / 1.031 GB, free: 12.95 MB / 0.8106 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=480 -s gbode -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/jenkins1/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