Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001858/0.001858, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002439/0.002439, allocations: 210.5 kB / 22.24 MB, free: 4.859 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.511/1.511, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.141/3.141, allocations: 0.4892 GB / 0.7943 GB, free: 35.58 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002108/0.002108, allocations: 67.8 kB / 1.153 GB, free: 25.72 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3297, allocations: 176.1 MB / 1.325 GB, free: 2.387 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002156/0.3319, allocations: 0.8028 MB / 1.326 GB, free: 1.59 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001808/0.3337, allocations: 1.303 MB / 1.327 GB, free: 280 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.004e-05/0.3338, allocations: 0 / 1.327 GB, free: 280 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 4.576e-05/0.3338, allocations: 15.8 kB / 1.327 GB, free: 264 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 9.733e-05/0.3339, allocations: 23.8 kB / 1.327 GB, free: 240 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008861/0.3348, allocations: 329.4 kB / 1.327 GB, free: 15.92 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003767/0.3352, allocations: 295.5 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001152/0.3353, allocations: 25.61 kB / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001809/0.3355, allocations: 123.7 kB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001769/0.3356, allocations: 87.67 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.841e-05/0.3357, allocations: 28 kB / 1.328 GB, free: 15.37 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001032/0.3358, allocations: 39.98 kB / 1.328 GB, free: 15.33 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.197e-05/0.3358, allocations: 23.92 kB / 1.328 GB, free: 15.3 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.336, allocations: 95.67 kB / 1.328 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000343/0.3363, allocations: 275.4 kB / 1.328 GB, free: 14.94 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3363, allocations: 0 / 1.328 GB, free: 14.94 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.453e-06/0.3363, allocations: 7.938 kB / 1.328 GB, free: 14.93 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.282e-06/0.3363, allocations: 0 / 1.328 GB, free: 14.93 MB / 1.029 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.0006646/0.337, allocations: 454.9 kB / 1.329 GB, free: 14.44 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.337, allocations: 12.03 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.669e-05/0.3371, allocations: 42.73 kB / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.194e-05/0.3371, allocations: 28.84 kB / 1.329 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.3373, allocations: 128.4 kB / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.577e-05/0.3373, allocations: 19.92 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.214e-05/0.3373, allocations: 16 kB / 1.329 GB, free: 14.17 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001752/0.3375, allocations: 91.5 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.3375, allocations: 0 / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/0.3375, allocations: 4 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.3375, allocations: 4 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000107/0.3376, allocations: 47.97 kB / 1.329 GB, free: 14.02 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006938/0.3383, allocations: 415.5 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002336/0.3386, allocations: 66.56 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.512e-05/0.3386, allocations: 28.91 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.032e-05/0.3386, allocations: 0 / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002246/0.3389, allocations: 119.4 kB / 1.33 GB, free: 13.34 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.432e-06/0.3389, allocations: 4 kB / 1.33 GB, free: 13.33 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0003702/0.3392, allocations: 173.5 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.428e-05/0.3393, allocations: 55.41 kB / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001694/0.3395, allocations: 166.2 kB / 1.33 GB, free: 12.92 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.18e-05/0.3395, allocations: 29.7 kB / 1.33 GB, free: 12.88 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.3396, allocations: 123.9 kB / 1.33 GB, free: 12.76 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.817e-05/0.3397, allocations: 23.84 kB / 1.33 GB, free: 12.73 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001363/0.3398, allocations: 73.67 kB / 1.33 GB, free: 12.66 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001514/0.3399, allocations: 322.8 kB / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000279/0.3402, allocations: 196.9 kB / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003037/0.3405, allocations: 233.3 kB / 1.331 GB, free: 11.86 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000328/0.3409, allocations: 256.8 kB / 1.331 GB, free: 11.57 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3409, allocations: 0 / 1.331 GB, free: 11.57 MB / 1.029 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007367/0.3416, allocations: 495.6 kB / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.929e-05/0.3417, allocations: 101.1 kB / 1.332 GB, free: 10.92 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.3417, allocations: 4 kB / 1.332 GB, free: 10.92 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.3417, allocations: 0 / 1.332 GB, free: 10.92 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.763e-05/0.3418, allocations: 19.92 kB / 1.332 GB, free: 10.9 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.3418, allocations: 0 / 1.332 GB, free: 10.9 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004652/0.3422, allocations: 83.8 kB / 1.332 GB, free: 10.82 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.411e-05/0.3423, allocations: 23.98 kB / 1.332 GB, free: 10.79 MB / 1.029 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.0001541/0.3424, allocations: 138.2 kB / 1.332 GB, free: 10.65 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.787e-05/0.3425, allocations: 23.83 kB / 1.332 GB, free: 10.62 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.348e-05/0.3425, allocations: 16.78 kB / 1.332 GB, free: 10.6 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.3425, allocations: 0 / 1.332 GB, free: 10.6 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/0.3425, allocations: 0 / 1.332 GB, free: 10.6 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.3425, allocations: 0 / 1.332 GB, free: 10.6 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001982/0.3427, allocations: 176.7 kB / 1.332 GB, free: 10.39 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.3427, allocations: 7.922 kB / 1.332 GB, free: 10.38 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.568e-05/0.3428, allocations: 12 kB / 1.332 GB, free: 10.37 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.3428, allocations: 4 kB / 1.332 GB, free: 10.36 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.3428, allocations: 4 kB / 1.332 GB, free: 10.36 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.3428, allocations: 0 / 1.332 GB, free: 10.36 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3428, allocations: 3.938 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002646/0.3431, allocations: 171.9 kB / 1.333 GB, free: 10.17 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.908e-05/0.3431, allocations: 15.84 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.327e-05/0.3431, allocations: 3.984 kB / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.416e-05/0.3431, allocations: 4 kB / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.783e-05/0.3432, allocations: 11.97 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.3432, allocations: 12 kB / 1.333 GB, free: 10.12 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.232e-05/0.3433, allocations: 115.2 kB / 1.333 GB, free: 10.02 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.3433, allocations: 4 kB / 1.333 GB, free: 10.01 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000308/0.3436, allocations: 51.94 kB / 1.333 GB, free: 9.961 MB / 1.029 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.0006178/0.3442, allocations: 0.706 MB / 1.334 GB, free: 9.227 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000587/0.3448, allocations: 435.2 kB / 1.334 GB, free: 8.746 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3448, allocations: 3.938 kB / 1.334 GB, free: 8.742 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.775e-05/0.3449, allocations: 52.27 kB / 1.334 GB, free: 8.691 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002628/0.3452, allocations: 29.53 kB / 1.334 GB, free: 8.664 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003331/0.3485, allocations: 2.621 MB / 1.337 GB, free: 5.836 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001031/0.3486, allocations: 94.72 kB / 1.337 GB, free: 5.723 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.945e-05/0.3487, allocations: 12.64 kB / 1.337 GB, free: 5.711 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.12e-05/0.3487, allocations: 39.42 kB / 1.337 GB, free: 5.672 MB / 1.029 GB Notification: Performance of SimCode: time 6.21e-07/0.3487, allocations: 0 / 1.337 GB, free: 5.672 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03079/0.3795, allocations: 5.104 MB / 1.342 GB, free: 0.7617 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.87, allocations: 2.031 kB / 1.342 GB, free: 0.7617 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.66952459793538]