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.007219/0.007219, allocations: 97.7 kB / 15.73 MB, free: 6.066 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.001741/0.001741, allocations: 195.3 kB / 16.67 MB, free: 5.965 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.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.412/2.412, allocations: 390.3 MB / 0.6648 GB, free: 172 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 63.22 kB / 0.9504 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3253/0.3267, allocations: 140.4 MB / 1.087 GB, free: 2.039 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002858/0.3296, allocations: 0.8311 MB / 1.088 GB, free: 1.207 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001781/0.3314, allocations: 1.282 MB / 1.09 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001022/0.3315, allocations: 0 / 1.09 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.109e-05/0.3316, allocations: 7.875 kB / 1.09 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001187/0.3318, allocations: 31.73 kB / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009243/0.3327, allocations: 323.7 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003851/0.3331, allocations: 307.5 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001393/0.3332, allocations: 41.42 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002094/0.3334, allocations: 115.8 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002165/0.3337, allocations: 115.6 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.106e-05/0.3337, allocations: 24 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001108/0.3339, allocations: 39.98 kB / 1.091 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.023e-05/0.3339, allocations: 27.86 kB / 1.091 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001355/0.334, allocations: 103.7 kB / 1.091 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003996/0.3345, allocations: 263.4 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.3345, allocations: 3.938 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.733e-06/0.3345, allocations: 0 / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.458e-06/0.3345, allocations: 4 kB / 1.091 GB, free: 14.53 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.0008341/0.3353, allocations: 0.5273 MB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.257e-05/0.3354, allocations: 12.03 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.123e-05/0.3355, allocations: 42.67 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.705e-05/0.3356, allocations: 24.84 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001464/0.3357, allocations: 172.8 kB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.747e-05/0.3358, allocations: 15.94 kB / 1.092 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.757e-05/0.3358, allocations: 20 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002029/0.336, allocations: 93.59 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.3361, allocations: 4 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.953e-05/0.3361, allocations: 8 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.3361, allocations: 7.938 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001111/0.3362, allocations: 43.97 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007374/0.337, allocations: 492.3 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002473/0.3372, allocations: 74.67 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.762e-05/0.3373, allocations: 28.86 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.272e-05/0.3373, allocations: 7.922 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002525/0.3376, allocations: 119.3 kB / 1.093 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.804e-06/0.3376, allocations: 0 / 1.093 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0003801/0.338, allocations: 169.4 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.173e-05/0.338, allocations: 55.41 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001487/0.3382, allocations: 170.8 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.443e-05/0.3382, allocations: 37.7 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.778e-05/0.3383, allocations: 112 kB / 1.093 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.735e-05/0.3383, allocations: 27.8 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001224/0.3385, allocations: 73.67 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001058/0.3386, allocations: 326.8 kB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001969/0.3388, allocations: 91.95 kB / 1.094 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002161/0.339, allocations: 151.3 kB / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002886/0.3393, allocations: 256.9 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.3393, allocations: 0 / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005987/0.3399, allocations: 412.2 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 6.148e-05/0.34, allocations: 97.09 kB / 1.094 GB, free: 10.58 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.34, allocations: 4 kB / 1.094 GB, free: 10.58 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.34, allocations: 0 / 1.094 GB, free: 10.58 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.006e-05/0.3401, allocations: 8 kB / 1.094 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.114e-06/0.3401, allocations: 16.11 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000464/0.3406, allocations: 83.8 kB / 1.095 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.581e-05/0.3406, allocations: 23.98 kB / 1.095 GB, free: 10.45 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.0001353/0.3408, allocations: 139.4 kB / 1.095 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.519e-05/0.3408, allocations: 23.78 kB / 1.095 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.326e-05/0.3408, allocations: 12.83 kB / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.3409, allocations: 4 kB / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.3409, allocations: 0 / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.3409, allocations: 0 / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001775/0.3411, allocations: 213.6 kB / 1.095 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.3411, allocations: 3.938 kB / 1.095 GB, free: 10 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.83e-05/0.3411, allocations: 15.92 kB / 1.095 GB, free: 9.988 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.3411, allocations: 0 / 1.095 GB, free: 9.988 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-06/0.3411, allocations: 0 / 1.095 GB, free: 9.988 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.3411, allocations: 8 kB / 1.095 GB, free: 9.98 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.3412, allocations: 4 kB / 1.095 GB, free: 9.977 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002232/0.3414, allocations: 161 kB / 1.095 GB, free: 9.801 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.236e-05/0.3415, allocations: 100.9 kB / 1.095 GB, free: 9.684 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.096e-05/0.3415, allocations: 3.984 kB / 1.095 GB, free: 9.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.27e-05/0.3415, allocations: 0 / 1.095 GB, free: 9.68 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.347e-05/0.3416, allocations: 11.98 kB / 1.095 GB, free: 9.668 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.658e-06/0.3416, allocations: 8 kB / 1.095 GB, free: 9.66 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.653e-05/0.3417, allocations: 122.5 kB / 1.095 GB, free: 9.543 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3417, allocations: 0 / 1.095 GB, free: 9.543 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002747/0.342, allocations: 48 kB / 1.095 GB, free: 9.496 MB / 0.8575 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.0005238/0.3425, allocations: 0.7099 MB / 1.096 GB, free: 8.758 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005076/0.343, allocations: 386 kB / 1.096 GB, free: 8.344 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.343, allocations: 0 / 1.096 GB, free: 8.344 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.008e-05/0.3431, allocations: 53.36 kB / 1.097 GB, free: 8.293 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002616/0.3434, allocations: 27.95 kB / 1.097 GB, free: 8.266 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002623/0.346, allocations: 2.241 MB / 1.099 GB, free: 5.891 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002678/0.3463, allocations: 0.7084 MB / 1.099 GB, free: 5.156 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.647e-05/0.3464, allocations: 16.53 kB / 1.099 GB, free: 5.141 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.903e-05/0.3464, allocations: 39.42 kB / 1.099 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of SimCode: time 2.7e-07/0.3464, allocations: 0 / 1.099 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02139/0.3678, allocations: 4.224 MB / 1.104 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.845/8.213, allocations: 8.469 kB / 1.104 GB, free: 0.9922 MB / 0.8575 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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