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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01264/0.01264, allocations: 101.5 kB / 15.73 MB, free: 5.98 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.002377/0.002377, allocations: 190.5 kB / 16.67 MB, free: 5.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.125/2.125, allocations: 222.9 MB / 240.4 MB, free: 15.13 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 3.321/3.321, allocations: 390.3 MB / 0.6648 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 63.91 kB / 0.9504 GB, free: 8.168 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.32/1.321, allocations: 140.4 MB / 1.087 GB, free: 5.305 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002226/1.324, allocations: 0.8297 MB / 1.088 GB, free: 4.777 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002128/1.326, allocations: 1.287 MB / 1.09 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.161e-05/1.326, allocations: 1.125 kB / 1.09 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.143e-05/1.326, allocations: 13.36 kB / 1.09 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001154/1.326, allocations: 20.39 kB / 1.09 GB, free: 3.809 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001481/1.328, allocations: 326.5 kB / 1.09 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005897/1.328, allocations: 309.9 kB / 1.09 GB, free: 3.52 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002021/1.328, allocations: 39.28 kB / 1.09 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002535/1.329, allocations: 113.3 kB / 1.09 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002953/1.329, allocations: 115 kB / 1.09 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.645e-05/1.329, allocations: 25.97 kB / 1.09 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001568/1.329, allocations: 44.44 kB / 1.091 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.03e-05/1.329, allocations: 21.56 kB / 1.091 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000181/1.329, allocations: 105.1 kB / 1.091 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005293/1.33, allocations: 266.2 kB / 1.091 GB, free: 3.234 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/1.33, allocations: 0 / 1.091 GB, free: 3.234 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.893e-06/1.33, allocations: 0.6562 kB / 1.091 GB, free: 3.234 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.335e-05/1.33, allocations: 0 / 1.091 GB, free: 3.234 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.0008915/1.331, allocations: 0.5261 MB / 1.091 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.578e-05/1.331, allocations: 10.14 kB / 1.091 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.449e-05/1.331, allocations: 39.91 kB / 1.091 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001156/1.331, allocations: 23.03 kB / 1.091 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001301/1.331, allocations: 185.3 kB / 1.092 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.092e-05/1.331, allocations: 17.52 kB / 1.092 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.009e-05/1.331, allocations: 21.09 kB / 1.092 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002759/1.332, allocations: 86.16 kB / 1.092 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/1.332, allocations: 0 / 1.092 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.083e-05/1.332, allocations: 9.547 kB / 1.092 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/1.332, allocations: 6.312 kB / 1.092 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000179/1.332, allocations: 48.53 kB / 1.092 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00103/1.333, allocations: 494.8 kB / 1.092 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000376/1.333, allocations: 74.05 kB / 1.092 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.768e-05/1.334, allocations: 29.25 kB / 1.092 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.862e-05/1.334, allocations: 8.797 kB / 1.092 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000304/1.334, allocations: 112.6 kB / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 2.124e-06/1.334, allocations: 0 / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0004846/1.334, allocations: 177 kB / 1.093 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.609e-05/1.334, allocations: 54.94 kB / 1.093 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001528/1.335, allocations: 170.3 kB / 1.093 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.433e-05/1.335, allocations: 40.17 kB / 1.093 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.678e-05/1.335, allocations: 104.3 kB / 1.093 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.957e-05/1.335, allocations: 34 kB / 1.093 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001841/1.335, allocations: 71.83 kB / 1.093 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.253e-05/1.335, allocations: 327 kB / 1.093 GB, free: 1.105 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002648/1.335, allocations: 95.81 kB / 1.094 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002571/1.336, allocations: 142.3 kB / 1.094 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000312/1.336, allocations: 256.1 kB / 1.094 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.696e-06/1.336, allocations: 4.562 kB / 1.094 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007638/1.337, allocations: 398.4 kB / 1.094 GB, free: 0.5508 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 7.295e-05/1.337, allocations: 98.05 kB / 1.094 GB, free: 464 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/1.337, allocations: 1.812 kB / 1.094 GB, free: 464 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.525e-05/1.337, allocations: 6.609 kB / 1.094 GB, free: 460 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.217e-05/1.337, allocations: 18.66 kB / 1.094 GB, free: 452 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.486e-05/1.337, allocations: 3.094 kB / 1.094 GB, free: 452 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005961/1.338, allocations: 83.86 kB / 1.095 GB, free: 440 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.255e-05/1.338, allocations: 22.75 kB / 1.095 GB, free: 436 kB / 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.000156/1.338, allocations: 137 kB / 1.095 GB, free: 304 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.389e-05/1.338, allocations: 19.2 kB / 1.095 GB, free: 292 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.087e-05/1.338, allocations: 16.19 kB / 1.095 GB, free: 280 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/1.338, allocations: 2.906 kB / 1.095 GB, free: 280 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/1.338, allocations: 0 / 1.095 GB, free: 280 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/1.338, allocations: 1.391 kB / 1.095 GB, free: 280 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003162/1.338, allocations: 221.7 kB / 1.095 GB, free: 56 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/1.338, allocations: 3.938 kB / 1.095 GB, free: 52 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.233e-05/1.338, allocations: 10.31 kB / 1.095 GB, free: 52 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/1.338, allocations: 0.9062 kB / 1.095 GB, free: 52 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.738e-05/1.338, allocations: 2.219 kB / 1.095 GB, free: 52 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/1.338, allocations: 1.281 kB / 1.095 GB, free: 52 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/1.338, allocations: 5.125 kB / 1.095 GB, free: 48 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004026/1.339, allocations: 168.3 kB / 1.095 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.907e-05/1.339, allocations: 89.88 kB / 1.095 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.994e-05/1.339, allocations: 1.781 kB / 1.095 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.139e-05/1.339, allocations: 2.891 kB / 1.095 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.571e-05/1.339, allocations: 12.19 kB / 1.095 GB, free: 15.83 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.15e-05/1.339, allocations: 9.312 kB / 1.095 GB, free: 15.83 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001647/1.339, allocations: 120.6 kB / 1.095 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/1.339, allocations: 4.562 kB / 1.095 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.000448/1.34, allocations: 57.2 kB / 1.095 GB, free: 15.72 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.0008976/1.341, allocations: 0.7018 MB / 1.096 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0007963/1.341, allocations: 389.5 kB / 1.096 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/1.341, allocations: 0 / 1.096 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001353/1.342, allocations: 51.03 kB / 1.096 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003908/1.342, allocations: 26 kB / 1.097 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003978/1.346, allocations: 2.248 MB / 1.099 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003432/1.346, allocations: 0.7061 MB / 1.099 GB, free: 12.42 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 7.065e-05/1.346, allocations: 12.38 kB / 1.099 GB, free: 12.42 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.434e-05/1.347, allocations: 38.28 kB / 1.099 GB, free: 12.39 MB / 0.8731 GB Notification: Performance of SimCode: time 4.01e-07/1.347, allocations: 0 / 1.099 GB, free: 12.39 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0328/1.379, allocations: 4.221 MB / 1.104 GB, free: 11.8 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.73/16.11, allocations: 4.469 kB / 1.104 GB, free: 11.8 MB / 0.8731 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > 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