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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001062/0.001062, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007597/0.007598, allocations: 170 kB / 16.26 MB, free: 6.613 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.203/1.203, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.331/2.331, allocations: 390.9 MB / 0.6664 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003137/0.0003137, allocations: 8 kB / 0.8161 GB, free: 13.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6129/0.6133, allocations: 142.4 MB / 0.9552 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.0008804/0.6142, allocations: 0.5377 MB / 0.9557 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001293/0.6155, allocations: 1.308 MB / 0.957 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.201e-05/0.6155, allocations: 2.531 kB / 0.957 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.348e-05/0.6156, allocations: 3.938 kB / 0.957 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.513e-05/0.6157, allocations: 26.38 kB / 0.957 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006855/0.6163, allocations: 296 kB / 0.9573 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002006/0.6166, allocations: 256.1 kB / 0.9575 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/0.6167, allocations: 41.77 kB / 0.9576 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001035/0.6168, allocations: 96.36 kB / 0.9577 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001056/0.6169, allocations: 89.59 kB / 0.9578 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.863e-05/0.6169, allocations: 14.16 kB / 0.9578 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.428e-05/0.617, allocations: 27.77 kB / 0.9578 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.323e-05/0.617, allocations: 17.39 kB / 0.9578 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.71e-05/0.6172, allocations: 115.8 kB / 0.9579 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000217/0.6174, allocations: 249.1 kB / 0.9582 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.6174, allocations: 5.375 kB / 0.9582 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.763e-06/0.6174, allocations: 3.938 kB / 0.9582 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.91e-06/0.6174, allocations: 0 / 0.9582 GB, free: 5.48 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.000467/0.6179, allocations: 483.9 kB / 0.9586 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.6179, allocations: 13.61 kB / 0.9586 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.248e-05/0.618, allocations: 37.5 kB / 0.9587 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.972e-05/0.618, allocations: 21.12 kB / 0.9587 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.691e-05/0.6181, allocations: 183.7 kB / 0.9589 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.734e-05/0.6182, allocations: 17.75 kB / 0.9589 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.737e-05/0.6182, allocations: 19.12 kB / 0.9589 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001557/0.6184, allocations: 94.45 kB / 0.959 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.6184, allocations: 0 / 0.959 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.6184, allocations: 1.375 kB / 0.959 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.6184, allocations: 1.375 kB / 0.959 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.004e-05/0.6185, allocations: 46.11 kB / 0.9591 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005476/0.6191, allocations: 0.4912 MB / 0.9595 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001951/0.6193, allocations: 70.7 kB / 0.9596 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.828e-05/0.6193, allocations: 31 kB / 0.9596 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.139e-05/0.6193, allocations: 1.562 kB / 0.9596 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001529/0.6195, allocations: 121 kB / 0.9597 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.452e-06/0.6195, allocations: 1.125 kB / 0.9597 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0003136/0.6198, allocations: 170.7 kB / 0.9599 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.508e-05/0.6199, allocations: 53.78 kB / 0.96 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.62, allocations: 161.2 kB / 0.9601 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.927e-05/0.62, allocations: 44.44 kB / 0.9602 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.935e-05/0.6201, allocations: 108.4 kB / 0.9603 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.384e-05/0.6201, allocations: 33.45 kB / 0.9603 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.743e-05/0.6202, allocations: 34.48 kB / 0.9603 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.902e-05/0.6202, allocations: 326.9 kB / 0.9606 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001905/0.6204, allocations: 93.88 kB / 0.9607 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001939/0.6206, allocations: 141 kB / 0.9609 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002417/0.6209, allocations: 251 kB / 0.9611 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.6209, allocations: 0 / 0.9611 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005506/0.6214, allocations: 405.6 kB / 0.9615 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.653e-05/0.6215, allocations: 99.03 kB / 0.9616 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.6215, allocations: 1.938 kB / 0.9616 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.6215, allocations: 9.875 kB / 0.9616 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.045e-05/0.6216, allocations: 12.95 kB / 0.9616 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.6216, allocations: 7.219 kB / 0.9616 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005485/0.6222, allocations: 124.6 kB / 0.9617 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.063e-05/0.6222, allocations: 21.3 kB / 0.9618 GB, free: 2.375 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.881e-05/0.6223, allocations: 128.4 kB / 0.9619 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.886e-05/0.6223, allocations: 17.34 kB / 0.9619 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.919e-05/0.6224, allocations: 11.62 kB / 0.9619 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.6224, allocations: 5.578 kB / 0.9619 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.6224, allocations: 0 / 0.9619 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.6224, allocations: 8.75 kB / 0.9619 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001269/0.6225, allocations: 220 kB / 0.9621 GB, free: 1.984 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.6225, allocations: 1.062 kB / 0.9621 GB, free: 1.984 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.47e-05/0.6226, allocations: 18.92 kB / 0.9621 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.6226, allocations: 1 kB / 0.9621 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.828e-06/0.6226, allocations: 2.125 kB / 0.9621 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.6226, allocations: 1.312 kB / 0.9621 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.6226, allocations: 0 / 0.9621 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001963/0.6228, allocations: 166.3 kB / 0.9623 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.534e-05/0.6229, allocations: 88.92 kB / 0.9624 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.93e-05/0.6229, allocations: 5 kB / 0.9624 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.302e-05/0.6229, allocations: 5.109 kB / 0.9624 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.643e-05/0.623, allocations: 12.98 kB / 0.9624 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.071e-05/0.623, allocations: 4.969 kB / 0.9624 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.104e-05/0.623, allocations: 125.2 kB / 0.9625 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.623, allocations: 0 / 0.9625 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002651/0.6233, allocations: 52.5 kB / 0.9626 GB, free: 1.629 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.0003747/0.6237, allocations: 0.7053 MB / 0.9633 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004161/0.6241, allocations: 382.7 kB / 0.9636 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.6241, allocations: 0 / 0.9636 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.6e-05/0.6242, allocations: 51.7 kB / 0.9637 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000259/0.6245, allocations: 29.42 kB / 0.9637 GB, free: 0.6523 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002438/0.6269, allocations: 2.265 MB / 0.9659 GB, free: 14.81 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002283/0.6272, allocations: 0.7096 MB / 0.9666 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.008e-05/0.6272, allocations: 15.88 kB / 0.9666 GB, free: 14.09 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.673e-05/0.6273, allocations: 38.39 kB / 0.9667 GB, free: 14.06 MB / 0.7325 GB Notification: Performance of SimCode: time 4.2e-07/0.6273, allocations: 0 / 0.9667 GB, free: 14.06 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0148/0.6421, allocations: 3.877 MB / 0.9705 GB, free: 12.19 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001851/0.6423, allocations: 207.4 kB / 0.9707 GB, free: 11.93 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.84/2.483, allocations: 0 / 0.9707 GB, free: 11.93 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