Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.006815/0.006815, allocations: 100.6 kB / 15.73 MB, free: 6.043 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.001449/0.001449, allocations: 191.7 kB / 16.67 MB, free: 5.957 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.377/2.377, allocations: 390.2 MB / 0.6648 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 63.91 kB / 0.9509 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.106/1.108, allocations: 140.4 MB / 1.088 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002433/1.11, allocations: 0.8233 MB / 1.089 GB, free: 4.996 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001989/1.112, allocations: 1.285 MB / 1.09 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.983e-05/1.112, allocations: 2.156 kB / 1.09 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.111e-05/1.112, allocations: 13.38 kB / 1.09 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001191/1.112, allocations: 29.55 kB / 1.09 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009636/1.113, allocations: 322.1 kB / 1.09 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000405/1.114, allocations: 309.9 kB / 1.091 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001627/1.114, allocations: 47.28 kB / 1.091 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001617/1.114, allocations: 109.9 kB / 1.091 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002103/1.114, allocations: 110.2 kB / 1.091 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.92e-05/1.114, allocations: 26.38 kB / 1.091 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001187/1.114, allocations: 44.28 kB / 1.091 GB, free: 3.613 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.549e-05/1.114, allocations: 25.89 kB / 1.091 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001542/1.115, allocations: 104.4 kB / 1.091 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000419/1.115, allocations: 264 kB / 1.091 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/1.115, allocations: 0.7188 kB / 1.091 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.714e-06/1.115, allocations: 4 kB / 1.091 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.992e-06/1.115, allocations: 0.7812 kB / 1.091 GB, free: 3.449 MB / 0.8575 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.0007335/1.116, allocations: 0.52 MB / 1.092 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.485e-05/1.116, allocations: 9.5 kB / 1.092 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001023/1.116, allocations: 22.69 kB / 1.092 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001337/1.116, allocations: 181.1 kB / 1.092 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.462e-05/1.116, allocations: 21.23 kB / 1.092 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.678e-05/1.116, allocations: 22.16 kB / 1.092 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002616/1.117, allocations: 86.98 kB / 1.092 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/1.117, allocations: 4 kB / 1.092 GB, free: 2.664 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.619e-05/1.117, allocations: 6.391 kB / 1.092 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/1.117, allocations: 2.484 kB / 1.092 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001535/1.117, allocations: 46.69 kB / 1.092 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001088/1.118, allocations: 492.2 kB / 1.093 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003221/1.118, allocations: 69.5 kB / 1.093 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.35e-05/1.118, allocations: 33.5 kB / 1.093 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.631e-05/1.118, allocations: 4.828 kB / 1.093 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004358/1.119, allocations: 124.1 kB / 1.093 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 2.736e-06/1.119, allocations: 0.6875 kB / 1.093 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0005634/1.119, allocations: 169 kB / 1.093 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/1.119, allocations: 53.81 kB / 1.093 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002078/1.12, allocations: 181.3 kB / 1.093 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.698e-05/1.12, allocations: 36.78 kB / 1.093 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.000104/1.12, allocations: 104.3 kB / 1.093 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.157e-05/1.12, allocations: 34.19 kB / 1.093 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002014/1.12, allocations: 71.45 kB / 1.094 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001028/1.12, allocations: 326.1 kB / 1.094 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002701/1.12, allocations: 92.2 kB / 1.094 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003177/1.121, allocations: 150.8 kB / 1.094 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000367/1.121, allocations: 250.2 kB / 1.094 GB, free: 1.043 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/1.121, allocations: 8.391 kB / 1.094 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0008907/1.122, allocations: 397.6 kB / 1.095 GB, free: 0.8164 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 9.62e-05/1.122, allocations: 100.5 kB / 1.095 GB, free: 0.7188 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.509e-05/1.122, allocations: 2.516 kB / 1.095 GB, free: 0.7188 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.791e-05/1.122, allocations: 2.344 kB / 1.095 GB, free: 0.7188 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.712e-05/1.122, allocations: 10.64 kB / 1.095 GB, free: 0.7188 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/1.122, allocations: 11.5 kB / 1.095 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004832/1.123, allocations: 84.28 kB / 1.095 GB, free: 0.6992 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.886e-05/1.123, allocations: 26.09 kB / 1.095 GB, free: 0.6914 MB / 0.8575 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.0001193/1.123, allocations: 136.9 kB / 1.095 GB, free: 0.5625 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.328e-05/1.123, allocations: 18.77 kB / 1.095 GB, free: 0.5508 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.248e-05/1.123, allocations: 13.09 kB / 1.095 GB, free: 0.543 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/1.123, allocations: 2.734 kB / 1.095 GB, free: 0.543 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/1.123, allocations: 0 / 1.095 GB, free: 0.543 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/1.123, allocations: 0.5156 kB / 1.095 GB, free: 0.543 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001942/1.123, allocations: 225.9 kB / 1.095 GB, free: 328 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/1.123, allocations: 1.609 kB / 1.095 GB, free: 328 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.757e-05/1.123, allocations: 16.36 kB / 1.095 GB, free: 320 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/1.123, allocations: 1.672 kB / 1.095 GB, free: 320 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/1.123, allocations: 6.328 kB / 1.095 GB, free: 316 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/1.123, allocations: 0.875 kB / 1.095 GB, free: 316 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/1.123, allocations: 0.625 kB / 1.095 GB, free: 316 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002621/1.124, allocations: 157.7 kB / 1.095 GB, free: 216 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.938e-05/1.124, allocations: 92.92 kB / 1.096 GB, free: 108 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.319e-05/1.124, allocations: 2.234 kB / 1.096 GB, free: 108 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.14e-05/1.124, allocations: 1.656 kB / 1.096 GB, free: 108 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.015e-05/1.124, allocations: 16.84 kB / 1.096 GB, free: 100 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/1.124, allocations: 13.64 kB / 1.096 GB, free: 92 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.593e-05/1.124, allocations: 117.4 kB / 1.096 GB, free: 4 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/1.124, allocations: 0 / 1.096 GB, free: 4 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003367/1.124, allocations: 53.48 kB / 1.096 GB, free: 15.99 MB / 0.8731 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.0001961/1.124, allocations: 116.4 kB / 1.096 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0006549/1.125, allocations: 379 kB / 1.096 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/1.125, allocations: 4.062 kB / 1.096 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001289/1.125, allocations: 51.41 kB / 1.096 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003259/1.126, allocations: 26.25 kB / 1.096 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007185/1.126, allocations: 243.6 kB / 1.097 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000448/1.127, allocations: 0.7109 MB / 1.097 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.812e-05/1.127, allocations: 16.95 kB / 1.097 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.131e-05/1.127, allocations: 15.16 kB / 1.097 GB, free: 14.72 MB / 0.8731 GB Notification: Performance of SimCode: time 3.5e-07/1.127, allocations: 3.938 kB / 1.097 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of Templates: time 0.008348/1.135, allocations: 2.801 MB / 1.1 GB, free: 14.46 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches