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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.000843/0.000843, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 186.5 kB / 16.92 MB, free: 6.77 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.383/1.383, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.457/2.457, allocations: 390.9 MB / 0.667 GB, free: 2.398 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003972/0.0003972, allocations: 12 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7508/0.7512, allocations: 142.4 MB / 0.9557 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.0009975/0.7523, allocations: 0.5427 MB / 0.9563 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001789/0.7541, allocations: 1.308 MB / 0.9575 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.767e-05/0.7542, allocations: 1.188 kB / 0.9575 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.02e-05/0.7543, allocations: 11.92 kB / 0.9575 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001031/0.7544, allocations: 14.3 kB / 0.9576 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009144/0.7553, allocations: 297.4 kB / 0.9578 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003182/0.7556, allocations: 257 kB / 0.9581 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001534/0.7558, allocations: 39.38 kB / 0.9581 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001884/0.756, allocations: 101.5 kB / 0.9582 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001535/0.7561, allocations: 78.58 kB / 0.9583 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.207e-05/0.7562, allocations: 13.66 kB / 0.9583 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001088/0.7563, allocations: 26.39 kB / 0.9583 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.354e-05/0.7564, allocations: 27.3 kB / 0.9584 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001351/0.7565, allocations: 115.1 kB / 0.9585 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002066/0.7567, allocations: 186.1 kB / 0.9586 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.7567, allocations: 0 / 0.9586 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.473e-06/0.7567, allocations: 0 / 0.9586 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.915e-06/0.7567, allocations: 3.938 kB / 0.9586 GB, free: 5.398 MB / 0.7169 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.0005131/0.7573, allocations: 494.1 kB / 0.9591 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.7573, allocations: 8.844 kB / 0.9591 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.22e-05/0.7574, allocations: 21.09 kB / 0.9591 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.746e-05/0.7575, allocations: 176.2 kB / 0.9593 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.329e-05/0.7575, allocations: 20.73 kB / 0.9593 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.153e-05/0.7576, allocations: 24.41 kB / 0.9594 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001639/0.7578, allocations: 86.25 kB / 0.9594 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.7578, allocations: 0 / 0.9594 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.537e-05/0.7578, allocations: 9.797 kB / 0.9594 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.7578, allocations: 1.812 kB / 0.9595 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001001/0.7579, allocations: 44.56 kB / 0.9595 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005943/0.7585, allocations: 499.2 kB / 0.96 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002144/0.7587, allocations: 71.55 kB / 0.96 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.4e-05/0.7588, allocations: 29.22 kB / 0.9601 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.122e-05/0.7588, allocations: 1.375 kB / 0.9601 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001667/0.759, allocations: 118.9 kB / 0.9602 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.353e-06/0.759, allocations: 0 / 0.9602 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0003436/0.7594, allocations: 168.2 kB / 0.9603 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.951e-05/0.7594, allocations: 57.98 kB / 0.9604 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.7595, allocations: 165.7 kB / 0.9606 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.8e-05/0.7596, allocations: 39.95 kB / 0.9606 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.148e-05/0.7596, allocations: 108.6 kB / 0.9607 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.362e-05/0.7597, allocations: 36.7 kB / 0.9607 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.076e-05/0.7597, allocations: 35.73 kB / 0.9608 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.397e-05/0.7598, allocations: 325.4 kB / 0.9611 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001961/0.76, allocations: 94.3 kB / 0.9612 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002043/0.7602, allocations: 142.6 kB / 0.9613 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002668/0.7605, allocations: 250.5 kB / 0.9615 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.7605, allocations: 0 / 0.9615 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005845/0.7611, allocations: 402.2 kB / 0.9619 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.738e-05/0.7611, allocations: 106.1 kB / 0.962 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.7611, allocations: 2.75 kB / 0.962 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.7612, allocations: 2.75 kB / 0.962 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.009e-05/0.7612, allocations: 12.25 kB / 0.962 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.7613, allocations: 10.67 kB / 0.9621 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005824/0.7618, allocations: 122.6 kB / 0.9622 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.396e-05/0.7619, allocations: 18.14 kB / 0.9622 GB, free: 2.344 MB / 0.7169 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.000106/0.762, allocations: 131.2 kB / 0.9623 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.136e-05/0.762, allocations: 17.66 kB / 0.9623 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.288e-05/0.7621, allocations: 15.84 kB / 0.9623 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.7621, allocations: 2.156 kB / 0.9623 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.7621, allocations: 3.938 kB / 0.9623 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.7621, allocations: 5.062 kB / 0.9624 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001507/0.7623, allocations: 219.5 kB / 0.9626 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.7623, allocations: 1.125 kB / 0.9626 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.656e-05/0.7623, allocations: 11.03 kB / 0.9626 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.7623, allocations: 8.938 kB / 0.9626 GB, free: 1.938 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.7624, allocations: 9.703 kB / 0.9626 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.7624, allocations: 1.031 kB / 0.9626 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.7624, allocations: 0 / 0.9626 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002275/0.7626, allocations: 168 kB / 0.9628 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.039e-05/0.7626, allocations: 87.77 kB / 0.9628 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.079e-05/0.7627, allocations: 6 kB / 0.9628 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.348e-05/0.7627, allocations: 0.8125 kB / 0.9628 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.367e-05/0.7627, allocations: 9.547 kB / 0.9629 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.151e-05/0.7628, allocations: 8.219 kB / 0.9629 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.854e-05/0.7628, allocations: 121.3 kB / 0.963 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7628, allocations: 0 / 0.963 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002942/0.7631, allocations: 55.73 kB / 0.963 GB, free: 1.59 MB / 0.7169 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.0001598/0.7633, allocations: 109.7 kB / 0.9631 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004943/0.7638, allocations: 376.2 kB / 0.9635 GB, free: 1.207 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.7638, allocations: 1.25 kB / 0.9635 GB, free: 1.207 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000111/0.7639, allocations: 59.28 kB / 0.9636 GB, free: 1.18 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003227/0.7643, allocations: 27.86 kB / 0.9636 GB, free: 1.168 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005941/0.7649, allocations: 301.1 kB / 0.9639 GB, free: 0.918 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001919/0.7651, allocations: 0.7134 MB / 0.9646 GB, free: 208 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.046e-05/0.7651, allocations: 19.62 kB / 0.9646 GB, free: 196 kB / 0.7169 GB Notification: Performance of SimCode: time 1.793e-06/0.7651, allocations: 0 / 0.9646 GB, free: 196 kB / 0.7169 GB Notification: Performance of Templates: time 0.006401/0.7715, allocations: 2.265 MB / 0.9668 GB, free: 15.02 MB / 0.7325 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/jenkins1/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