Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_latest_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.006982/0.006982, allocations: 97.84 kB / 15.73 MB, free: 5.961 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.00176/0.00176, allocations: 195.7 kB / 16.67 MB, free: 5.883 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.504/1.504, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.817/2.817, allocations: 482.4 MB / 0.7548 GB, free: 6.879 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 69.02 kB / 1.083 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3044/0.3064, allocations: 162.2 MB / 1.241 GB, free: 9.297 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001937/0.3084, allocations: 0.8249 MB / 1.242 GB, free: 8.473 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001627/0.31, allocations: 1.281 MB / 1.244 GB, free: 7.18 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.942e-05/0.3101, allocations: 4 kB / 1.244 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.787e-05/0.3101, allocations: 11.81 kB / 1.244 GB, free: 7.164 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.527e-05/0.3102, allocations: 23.78 kB / 1.244 GB, free: 7.141 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008025/0.311, allocations: 329.1 kB / 1.244 GB, free: 6.828 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003573/0.3114, allocations: 311.5 kB / 1.244 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.3115, allocations: 42.83 kB / 1.244 GB, free: 6.48 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001354/0.3117, allocations: 115.8 kB / 1.244 GB, free: 6.367 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001889/0.3118, allocations: 119.5 kB / 1.244 GB, free: 6.25 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.698e-05/0.3119, allocations: 24 kB / 1.244 GB, free: 6.227 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 9.876e-05/0.312, allocations: 39.98 kB / 1.244 GB, free: 6.188 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.096e-05/0.3121, allocations: 23.92 kB / 1.245 GB, free: 6.164 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001293/0.3122, allocations: 103.7 kB / 1.245 GB, free: 6.062 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003317/0.3125, allocations: 263.4 kB / 1.245 GB, free: 5.805 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.3125, allocations: 0 / 1.245 GB, free: 5.805 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.512e-06/0.3125, allocations: 0 / 1.245 GB, free: 5.805 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.3126, allocations: 4 kB / 1.245 GB, free: 5.801 MB / 0.9669 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.0006802/0.3132, allocations: 0.5311 MB / 1.245 GB, free: 5.203 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.3133, allocations: 12.03 kB / 1.245 GB, free: 5.191 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.384e-05/0.3133, allocations: 46.73 kB / 1.245 GB, free: 5.137 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.404e-05/0.3134, allocations: 16.89 kB / 1.245 GB, free: 5.121 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001435/0.3136, allocations: 184.7 kB / 1.246 GB, free: 4.902 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.625e-05/0.3136, allocations: 15.94 kB / 1.246 GB, free: 4.887 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.788e-05/0.3136, allocations: 23.98 kB / 1.246 GB, free: 4.863 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001702/0.3138, allocations: 85.66 kB / 1.246 GB, free: 4.773 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.944e-06/0.3138, allocations: 4 kB / 1.246 GB, free: 4.77 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.3138, allocations: 3.984 kB / 1.246 GB, free: 4.766 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.3139, allocations: 4 kB / 1.246 GB, free: 4.762 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001005/0.314, allocations: 43.98 kB / 1.246 GB, free: 4.719 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006731/0.3146, allocations: 0.4887 MB / 1.246 GB, free: 4.18 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002146/0.3149, allocations: 70.56 kB / 1.246 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.695e-05/0.3149, allocations: 32.91 kB / 1.246 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 7.725e-06/0.315, allocations: 0 / 1.246 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002139/0.3152, allocations: 111.3 kB / 1.246 GB, free: 3.945 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=14): time 1.293e-06/0.3152, allocations: 0 / 1.246 GB, free: 3.945 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14): time 0.0003626/0.3155, allocations: 180.7 kB / 1.247 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.372e-05/0.3156, allocations: 55.41 kB / 1.247 GB, free: 3.699 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001521/0.3158, allocations: 173.4 kB / 1.247 GB, free: 3.52 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.953e-05/0.3158, allocations: 29.7 kB / 1.247 GB, free: 3.484 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.68e-05/0.3159, allocations: 108.1 kB / 1.247 GB, free: 3.375 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.312e-05/0.3159, allocations: 39.72 kB / 1.247 GB, free: 3.336 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001396/0.3161, allocations: 73.67 kB / 1.247 GB, free: 3.258 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001356/0.3162, allocations: 318.8 kB / 1.247 GB, free: 2.938 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002139/0.3164, allocations: 99.94 kB / 1.248 GB, free: 2.84 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002499/0.3167, allocations: 149.9 kB / 1.248 GB, free: 2.672 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003301/0.317, allocations: 253.2 kB / 1.248 GB, free: 2.387 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.317, allocations: 0 / 1.248 GB, free: 2.387 MB / 0.9669 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006808/0.3177, allocations: 398.3 kB / 1.248 GB, free: 1.973 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 8.039e-05/0.3178, allocations: 105.1 kB / 1.248 GB, free: 1.852 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.3178, allocations: 4 kB / 1.248 GB, free: 1.848 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.3179, allocations: 3.938 kB / 1.248 GB, free: 1.844 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.096e-05/0.3179, allocations: 15.94 kB / 1.248 GB, free: 1.828 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.3179, allocations: 8.188 kB / 1.248 GB, free: 1.82 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004841/0.3184, allocations: 87.75 kB / 1.249 GB, free: 1.734 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.517e-05/0.3185, allocations: 19.98 kB / 1.249 GB, free: 1.715 MB / 0.9669 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.0001409/0.3186, allocations: 142.3 kB / 1.249 GB, free: 1.566 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.472e-05/0.3187, allocations: 15.89 kB / 1.249 GB, free: 1.551 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.602e-05/0.3187, allocations: 12.84 kB / 1.249 GB, free: 1.535 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.3187, allocations: 4 kB / 1.249 GB, free: 1.531 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.3187, allocations: 0 / 1.249 GB, free: 1.531 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.3187, allocations: 0 / 1.249 GB, free: 1.531 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002073/0.3189, allocations: 225.5 kB / 1.249 GB, free: 1.262 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.3189, allocations: 3.938 kB / 1.249 GB, free: 1.258 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.537e-05/0.319, allocations: 12 kB / 1.249 GB, free: 1.246 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.319, allocations: 0 / 1.249 GB, free: 1.246 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.319, allocations: 3.984 kB / 1.249 GB, free: 1.242 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.319, allocations: 8 kB / 1.249 GB, free: 1.234 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.319, allocations: 0 / 1.249 GB, free: 1.234 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002383/0.3193, allocations: 161 kB / 1.249 GB, free: 1.059 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.708e-05/0.3193, allocations: 92.95 kB / 1.249 GB, free: 0.9492 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.098e-05/0.3194, allocations: 4 kB / 1.249 GB, free: 0.9453 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.3e-05/0.3194, allocations: 0 / 1.249 GB, free: 0.9453 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.22e-05/0.3195, allocations: 19.92 kB / 1.249 GB, free: 0.9258 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.248e-05/0.3195, allocations: 7.984 kB / 1.249 GB, free: 0.918 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 8.892e-05/0.3196, allocations: 115.3 kB / 1.249 GB, free: 0.8047 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3196, allocations: 0 / 1.249 GB, free: 0.8047 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002753/0.3199, allocations: 51.98 kB / 1.249 GB, free: 0.7539 MB / 0.9669 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.0005671/0.3204, allocations: 0.7018 MB / 1.25 GB, free: 28 kB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0005431/0.321, allocations: 390.1 kB / 1.25 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.321, allocations: 0 / 1.25 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.869e-05/0.3211, allocations: 51.92 kB / 1.25 GB, free: 15.55 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002824/0.3214, allocations: 34.88 kB / 1.251 GB, free: 15.52 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002881/0.3243, allocations: 2.25 MB / 1.253 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003302/0.3246, allocations: 0.7045 MB / 1.253 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.393e-05/0.3247, allocations: 16.62 kB / 1.253 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.866e-05/0.3247, allocations: 39.42 kB / 1.253 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of SimCode: time 2.3e-07/0.3248, allocations: 0 / 1.253 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02516/0.3499, allocations: 4.208 MB / 1.258 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.013/8.363, allocations: 25.45 kB / 1.258 GB, free: 8.258 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches