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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001213/0.001213, allocations: 108 kB / 15.61 MB, free: 152 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.001196/0.001196, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.279/1.279, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.628/2.628, allocations: 469.4 MB / 0.742 GB, free: 7.742 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 67.95 kB / 0.9083 GB, free: 34.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3061, allocations: 159.1 MB / 1.064 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002272/0.3084, allocations: 0.827 MB / 1.065 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002017/0.3104, allocations: 1.289 MB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001261/0.3106, allocations: 4 kB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 6.664e-05/0.3107, allocations: 15.75 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001239/0.3108, allocations: 15.8 kB / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001104/0.312, allocations: 323.6 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004683/0.3124, allocations: 303.5 kB / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001787/0.3126, allocations: 41.42 kB / 1.066 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002462/0.3129, allocations: 115.8 kB / 1.067 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002077/0.3131, allocations: 87.7 kB / 1.067 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.285e-05/0.3132, allocations: 28 kB / 1.067 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000151/0.3133, allocations: 39.98 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.497e-05/0.3134, allocations: 35.84 kB / 1.067 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001713/0.3136, allocations: 99.62 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004014/0.314, allocations: 259.5 kB / 1.067 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.314, allocations: 0 / 1.067 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.834e-06/0.314, allocations: 0 / 1.067 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.042e-05/0.314, allocations: 0 / 1.067 GB, free: 11.06 MB / 0.8262 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.0007877/0.3148, allocations: 0.5235 MB / 1.068 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.3149, allocations: 12.03 kB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.083e-05/0.3149, allocations: 38.75 kB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.467e-05/0.315, allocations: 20.84 kB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001589/0.3152, allocations: 181.7 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.914e-05/0.3152, allocations: 16.12 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.665e-05/0.3153, allocations: 20 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001987/0.3155, allocations: 93.58 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.3155, allocations: 7.984 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.328e-05/0.3155, allocations: 4 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.3156, allocations: 0 / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001063/0.3157, allocations: 47.98 kB / 1.068 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007617/0.3164, allocations: 0.4922 MB / 1.068 GB, free: 9.445 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002241/0.3167, allocations: 78.56 kB / 1.069 GB, free: 9.359 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.765e-05/0.3167, allocations: 32.91 kB / 1.069 GB, free: 9.324 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.039e-05/0.3168, allocations: 3.938 kB / 1.069 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002646/0.317, allocations: 115.3 kB / 1.069 GB, free: 9.195 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.873e-06/0.317, allocations: 0 / 1.069 GB, free: 9.195 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0003718/0.3174, allocations: 169.5 kB / 1.069 GB, free: 9.023 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/0.3175, allocations: 59.33 kB / 1.069 GB, free: 8.953 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001603/0.3177, allocations: 164.9 kB / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.415e-05/0.3177, allocations: 37.7 kB / 1.069 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.014e-05/0.3178, allocations: 108 kB / 1.069 GB, free: 8.633 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.483e-05/0.3179, allocations: 31.64 kB / 1.069 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001515/0.318, allocations: 73.67 kB / 1.069 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001276/0.3181, allocations: 322.8 kB / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002076/0.3184, allocations: 99.94 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002483/0.3186, allocations: 144.4 kB / 1.07 GB, free: 7.941 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003156/0.3189, allocations: 256.2 kB / 1.07 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3189, allocations: 0 / 1.07 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006263/0.3196, allocations: 400.3 kB / 1.07 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.894e-05/0.3197, allocations: 101.1 kB / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.3197, allocations: 4 kB / 1.071 GB, free: 7.117 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.3197, allocations: 0 / 1.071 GB, free: 7.117 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.273e-05/0.3198, allocations: 19.94 kB / 1.071 GB, free: 7.098 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.3198, allocations: 0 / 1.071 GB, free: 7.098 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005236/0.3203, allocations: 87.92 kB / 1.071 GB, free: 7.012 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.073e-05/0.3203, allocations: 23.98 kB / 1.071 GB, free: 6.988 MB / 0.8262 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.0001292/0.3205, allocations: 130.4 kB / 1.071 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.665e-05/0.3205, allocations: 27.73 kB / 1.071 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.604e-05/0.3206, allocations: 12.84 kB / 1.071 GB, free: 6.812 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.3206, allocations: 4 kB / 1.071 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.3206, allocations: 0 / 1.071 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3206, allocations: 3.938 kB / 1.071 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001911/0.3208, allocations: 217.6 kB / 1.071 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.3208, allocations: 0 / 1.071 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.407e-05/0.3208, allocations: 11.94 kB / 1.071 GB, free: 6.531 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.3209, allocations: 0 / 1.071 GB, free: 6.531 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.3209, allocations: 4 kB / 1.071 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.115e-06/0.3209, allocations: 7.938 kB / 1.071 GB, free: 6.52 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.3209, allocations: 8 kB / 1.071 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002296/0.3211, allocations: 164 kB / 1.071 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.525e-05/0.3212, allocations: 92.94 kB / 1.071 GB, free: 6.227 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.105e-05/0.3212, allocations: 3.938 kB / 1.071 GB, free: 6.223 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.169e-05/0.3212, allocations: 7.938 kB / 1.071 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.61e-05/0.3213, allocations: 11.98 kB / 1.071 GB, free: 6.203 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-06/0.3213, allocations: 8 kB / 1.071 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.766e-05/0.3214, allocations: 117.4 kB / 1.072 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3214, allocations: 0 / 1.072 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000274/0.3217, allocations: 55.84 kB / 1.072 GB, free: 6.027 MB / 0.8262 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.0005993/0.3223, allocations: 0.7027 MB / 1.072 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005162/0.3228, allocations: 394.1 kB / 1.073 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3228, allocations: 0 / 1.073 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.283e-05/0.3229, allocations: 55.91 kB / 1.073 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002689/0.3232, allocations: 27.97 kB / 1.073 GB, free: 4.793 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002605/0.3258, allocations: 2.231 MB / 1.075 GB, free: 2.422 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.3261, allocations: 0.7123 MB / 1.076 GB, free: 1.684 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.492e-05/0.3261, allocations: 16.62 kB / 1.076 GB, free: 1.668 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.749e-05/0.3262, allocations: 35.44 kB / 1.076 GB, free: 1.633 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.3262, allocations: 0 / 1.076 GB, free: 1.633 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02185/0.348, allocations: 4.201 MB / 1.08 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.336/7.684, allocations: 1.625 kB / 1.08 GB, free: 13.54 MB / 0.8419 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 50 --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