Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_10_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.001281/0.001282, allocations: 108 kB / 15.6 MB, free: 132 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.001462/0.001462, allocations: 191.6 kB / 16.53 MB, free: 6.391 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.414/1.414, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.645/2.645, allocations: 437 MB / 0.7104 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001583/0.001583, allocations: 63.91 kB / 0.8694 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8168/0.8184, allocations: 151.6 MB / 1.017 GB, free: 2.438 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002511/0.821, allocations: 0.8389 MB / 1.018 GB, free: 1.594 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00201/0.823, allocations: 1.284 MB / 1.019 GB, free: 300 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.848e-05/0.8232, allocations: 0 / 1.019 GB, free: 300 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 5.252e-05/0.8233, allocations: 11.86 kB / 1.02 GB, free: 288 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001277/0.8234, allocations: 27.8 kB / 1.02 GB, free: 260 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.001088/0.8245, allocations: 314.1 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004245/0.8249, allocations: 311.5 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.8251, allocations: 41.36 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002008/0.8253, allocations: 119.7 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001665/0.8255, allocations: 91.69 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.099e-05/0.8256, allocations: 28 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000124/0.8257, allocations: 39.98 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.127e-05/0.8257, allocations: 19.92 kB / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001668/0.8259, allocations: 111.6 kB / 1.021 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003543/0.8263, allocations: 253.6 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.8263, allocations: 0 / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.074e-06/0.8263, allocations: 0 / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.913e-06/0.8263, allocations: 4 kB / 1.021 GB, free: 14.95 MB / 0.7794 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.0007537/0.8271, allocations: 0.5273 MB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/0.8271, allocations: 8.031 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.718e-05/0.8272, allocations: 50.73 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.987e-05/0.8273, allocations: 20.75 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001757/0.8275, allocations: 188.7 kB / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.412e-05/0.8276, allocations: 16.12 kB / 1.022 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.935e-05/0.8276, allocations: 16 kB / 1.022 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001896/0.8278, allocations: 90.84 kB / 1.022 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.8278, allocations: 0 / 1.022 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.8279, allocations: 3.984 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.485e-06/0.8279, allocations: 8 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001113/0.828, allocations: 43.98 kB / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009316/0.8289, allocations: 0.4884 MB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002397/0.8292, allocations: 70.5 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.86e-05/0.8293, allocations: 32.97 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.287e-05/0.8293, allocations: 0 / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000252/0.8296, allocations: 124.5 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.783e-06/0.8296, allocations: 0 / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0003885/0.83, allocations: 169.5 kB / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.864e-05/0.83, allocations: 63.41 kB / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001542/0.8302, allocations: 163.6 kB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.885e-05/0.8303, allocations: 33.7 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.329e-05/0.8304, allocations: 108 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.73e-05/0.8304, allocations: 31.59 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001539/0.8306, allocations: 73.67 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001387/0.8307, allocations: 322.8 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000227/0.8309, allocations: 95.94 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002426/0.8312, allocations: 151.7 kB / 1.024 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003247/0.8315, allocations: 253.2 kB / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.155e-06/0.8315, allocations: 0 / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006556/0.8322, allocations: 398.3 kB / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.8323, allocations: 105.1 kB / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.8323, allocations: 0 / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/0.8323, allocations: 4.188 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.787e-05/0.8324, allocations: 15.94 kB / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.8324, allocations: 4 kB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005215/0.833, allocations: 87.73 kB / 1.024 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.348e-05/0.833, allocations: 15.98 kB / 1.024 GB, free: 10.88 MB / 0.7794 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.0001458/0.8332, allocations: 141.8 kB / 1.025 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.099e-05/0.8332, allocations: 15.75 kB / 1.025 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.774e-05/0.8332, allocations: 16.83 kB / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.8332, allocations: 0 / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.8333, allocations: 4 kB / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.239e-06/0.8333, allocations: 0 / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002139/0.8335, allocations: 217.5 kB / 1.025 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.8335, allocations: 0 / 1.025 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.961e-05/0.8335, allocations: 19.92 kB / 1.025 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.8336, allocations: 8 kB / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.8336, allocations: 0 / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.8336, allocations: 0 / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.8336, allocations: 0 / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00023/0.8338, allocations: 162.6 kB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.021e-05/0.8339, allocations: 92.89 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.749e-05/0.8339, allocations: 11.98 kB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.141e-05/0.834, allocations: 0 / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.87e-05/0.834, allocations: 19.92 kB / 1.025 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.849e-06/0.834, allocations: 4 kB / 1.025 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.397e-05/0.8341, allocations: 118.8 kB / 1.025 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.21e-07/0.8341, allocations: 0 / 1.025 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002787/0.8344, allocations: 52 kB / 1.025 GB, free: 9.926 MB / 0.7794 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.0006138/0.835, allocations: 0.7136 MB / 1.026 GB, free: 9.188 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006174/0.8357, allocations: 390 kB / 1.026 GB, free: 8.77 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.8357, allocations: 0 / 1.026 GB, free: 8.77 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.848e-05/0.8358, allocations: 47.98 kB / 1.026 GB, free: 8.723 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002892/0.8361, allocations: 27.95 kB / 1.026 GB, free: 8.695 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002908/0.839, allocations: 2.232 MB / 1.029 GB, free: 6.328 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003112/0.8393, allocations: 0.7162 MB / 1.029 GB, free: 5.586 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.61e-05/0.8394, allocations: 16.58 kB / 1.029 GB, free: 5.57 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.148e-05/0.8394, allocations: 39.42 kB / 1.029 GB, free: 5.531 MB / 0.7794 GB Notification: Performance of SimCode: time 4.41e-07/0.8394, allocations: 0 / 1.029 GB, free: 5.531 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0241/0.8635, allocations: 4.188 MB / 1.033 GB, free: 1.449 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.796/8.659, allocations: 3.953 kB / 1.033 GB, free: 1.445 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches