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.001491/0.001491, 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.001834/0.001834, allocations: 195.8 kB / 16.53 MB, free: 6.699 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.354/1.354, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.383/2.383, allocations: 390.3 MB / 0.6647 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 67.89 kB / 0.8127 GB, free: 14.31 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6447/0.6462, allocations: 140.4 MB / 0.9497 GB, free: 9.164 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001929/0.6481, allocations: 0.8278 MB / 0.9505 GB, free: 8.52 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001227/0.6494, allocations: 1.282 MB / 0.9518 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.046e-05/0.6494, allocations: 1.406 kB / 0.9518 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.558e-05/0.6495, allocations: 15.8 kB / 0.9518 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.706e-05/0.6496, allocations: 18.53 kB / 0.9518 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000702/0.6503, allocations: 318.9 kB / 0.9521 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002488/0.6505, allocations: 303.9 kB / 0.9524 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001176/0.6507, allocations: 53.67 kB / 0.9525 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001097/0.6508, allocations: 112.2 kB / 0.9526 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001087/0.6509, allocations: 89.64 kB / 0.9527 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.913e-05/0.651, allocations: 26.5 kB / 0.9527 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.22e-05/0.6511, allocations: 48.89 kB / 0.9527 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.703e-05/0.6511, allocations: 25.25 kB / 0.9528 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001064/0.6512, allocations: 110.5 kB / 0.9529 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002241/0.6514, allocations: 250.4 kB / 0.9531 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.6514, allocations: 0 / 0.9531 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.312e-06/0.6514, allocations: 5 kB / 0.9531 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.707e-06/0.6515, allocations: 0 / 0.9531 GB, free: 6.609 MB / 0.7169 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.000503/0.652, allocations: 0.5241 MB / 0.9536 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.652, allocations: 9.656 kB / 0.9536 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.964e-05/0.6521, allocations: 50.7 kB / 0.9537 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.825e-05/0.6521, allocations: 21.38 kB / 0.9537 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.475e-05/0.6522, allocations: 178.3 kB / 0.9539 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.977e-05/0.6523, allocations: 16.98 kB / 0.9539 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.78e-05/0.6523, allocations: 24.5 kB / 0.9539 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001534/0.6525, allocations: 91.08 kB / 0.954 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.6525, allocations: 0 / 0.954 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.6525, allocations: 1.219 kB / 0.954 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.6525, allocations: 2.5 kB / 0.954 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001081/0.6526, allocations: 49.03 kB / 0.954 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000551/0.6532, allocations: 494.5 kB / 0.9545 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002022/0.6534, allocations: 68.3 kB / 0.9546 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.899e-05/0.6534, allocations: 33.97 kB / 0.9546 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.128e-05/0.6535, allocations: 1.062 kB / 0.9546 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001917/0.6537, allocations: 127.7 kB / 0.9547 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.423e-06/0.6537, allocations: 0 / 0.9547 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0003148/0.654, allocations: 163.2 kB / 0.9549 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.651e-05/0.654, allocations: 58.72 kB / 0.955 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.6541, allocations: 165.4 kB / 0.9551 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.336e-05/0.6542, allocations: 39.02 kB / 0.9551 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.242e-05/0.6542, allocations: 109.9 kB / 0.9553 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.021e-05/0.6543, allocations: 19.81 kB / 0.9553 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001207/0.6544, allocations: 77.88 kB / 0.9553 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.952e-05/0.6544, allocations: 322.4 kB / 0.9557 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000184/0.6546, allocations: 94.86 kB / 0.9557 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002005/0.6548, allocations: 152.9 kB / 0.9559 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002245/0.6551, allocations: 251 kB / 0.9561 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.6551, allocations: 0 / 0.9561 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005306/0.6556, allocations: 409.8 kB / 0.9565 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.005e-05/0.6557, allocations: 103.8 kB / 0.9566 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.6557, allocations: 0 / 0.9566 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.6557, allocations: 2.75 kB / 0.9566 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.249e-05/0.6558, allocations: 13.61 kB / 0.9566 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.6558, allocations: 10.62 kB / 0.9566 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004932/0.6563, allocations: 88.22 kB / 0.9567 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.825e-05/0.6563, allocations: 21.34 kB / 0.9567 GB, free: 3.465 MB / 0.7169 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 9.501e-05/0.6564, allocations: 132.2 kB / 0.9569 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.065e-05/0.6565, allocations: 21.5 kB / 0.9569 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.026e-05/0.6565, allocations: 12.56 kB / 0.9569 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.6565, allocations: 1.438 kB / 0.9569 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.912e-06/0.6565, allocations: 4 kB / 0.9569 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.6565, allocations: 5.516 kB / 0.9569 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001426/0.6567, allocations: 215.4 kB / 0.9571 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.6567, allocations: 0 / 0.9571 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.366e-05/0.6567, allocations: 24.08 kB / 0.9571 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.6567, allocations: 1.25 kB / 0.9571 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.958e-06/0.6567, allocations: 0.9375 kB / 0.9571 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.6567, allocations: 1.062 kB / 0.9571 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.6568, allocations: 4 kB / 0.9572 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001876/0.6569, allocations: 158.6 kB / 0.9573 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.729e-05/0.657, allocations: 92.2 kB / 0.9574 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.968e-05/0.657, allocations: 5.125 kB / 0.9574 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.939e-05/0.657, allocations: 5.047 kB / 0.9574 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.707e-05/0.6571, allocations: 13.52 kB / 0.9574 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.638e-06/0.6571, allocations: 4.5 kB / 0.9574 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.694e-05/0.6572, allocations: 130 kB / 0.9575 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6572, allocations: 0 / 0.9575 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002608/0.6574, allocations: 47.69 kB / 0.9576 GB, free: 2.715 MB / 0.7169 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.0004255/0.6579, allocations: 0.7108 MB / 0.9583 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004472/0.6583, allocations: 397.6 kB / 0.9587 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.6583, allocations: 0 / 0.9587 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.001e-05/0.6584, allocations: 51.89 kB / 0.9587 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002595/0.6587, allocations: 28.44 kB / 0.9587 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002314/0.661, allocations: 2.238 MB / 0.9609 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000291/0.6613, allocations: 0.7089 MB / 0.9616 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 5.032e-05/0.6614, allocations: 12.3 kB / 0.9616 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.847e-05/0.6614, allocations: 38.8 kB / 0.9617 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of SimCode: time 4.71e-07/0.6614, allocations: 1.344 kB / 0.9617 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02186/0.6833, allocations: 4.175 MB / 0.9657 GB, free: 13 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.689/8.373, allocations: 8.812 kB / 0.9657 GB, free: 13 MB / 0.7325 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