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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001701/0.001701, allocations: 109.5 kB / 16.45 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00208/0.00208, allocations: 195.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 225.6 MB / 247.8 MB, free: 13.96 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.604/2.604, allocations: 443.5 MB / 0.7287 GB, free: 13.25 MB / 0.5919 GB " [Timeout remaining time 177] 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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 67.89 kB / 1.056 GB, free: 5.91 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7814/0.7833, allocations: 160.7 MB / 1.213 GB, free: 3.879 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002236/0.7855, allocations: 0.8485 MB / 1.214 GB, free: 3.234 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001915/0.7875, allocations: 1.286 MB / 1.215 GB, free: 2.195 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.161e-05/0.7875, allocations: 1.688 kB / 1.215 GB, free: 2.195 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.937e-05/0.7876, allocations: 16.92 kB / 1.215 GB, free: 2.18 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.98e-05/0.7877, allocations: 23.08 kB / 1.215 GB, free: 2.16 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008409/0.7885, allocations: 326.7 kB / 1.215 GB, free: 1.941 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0003581/0.7889, allocations: 291.3 kB / 1.216 GB, free: 1.777 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001194/0.789, allocations: 35.64 kB / 1.216 GB, free: 1.746 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001362/0.7891, allocations: 110.9 kB / 1.216 GB, free: 1.688 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001773/0.7893, allocations: 114.8 kB / 1.216 GB, free: 1.602 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.649e-05/0.7893, allocations: 26.78 kB / 1.216 GB, free: 1.602 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 8.923e-05/0.7894, allocations: 39.61 kB / 1.216 GB, free: 1.594 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.624e-05/0.7895, allocations: 22.45 kB / 1.216 GB, free: 1.578 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.7896, allocations: 114.5 kB / 1.216 GB, free: 1.496 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003268/0.7899, allocations: 266.1 kB / 1.216 GB, free: 1.293 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.7899, allocations: 0.9062 kB / 1.216 GB, free: 1.293 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.433e-06/0.7899, allocations: 0 / 1.216 GB, free: 1.293 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.7899, allocations: 3.938 kB / 1.216 GB, free: 1.289 MB / 0.92 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.0007145/0.7906, allocations: 0.5279 MB / 1.217 GB, free: 0.7539 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.7907, allocations: 10.53 kB / 1.217 GB, free: 0.7539 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.777e-05/0.7907, allocations: 46.02 kB / 1.217 GB, free: 0.7031 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.386e-05/0.7908, allocations: 17.95 kB / 1.217 GB, free: 0.6992 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001891/0.791, allocations: 190.6 kB / 1.217 GB, free: 492 kB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.458e-05/0.791, allocations: 13.38 kB / 1.217 GB, free: 488 kB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.923e-05/0.7911, allocations: 19.41 kB / 1.217 GB, free: 484 kB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00019/0.7913, allocations: 88.22 kB / 1.217 GB, free: 420 kB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.7913, allocations: 0 / 1.217 GB, free: 420 kB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.7913, allocations: 1.219 kB / 1.217 GB, free: 420 kB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.581e-05/0.7913, allocations: 10.39 kB / 1.217 GB, free: 412 kB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001089/0.7914, allocations: 45.39 kB / 1.217 GB, free: 392 kB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000794/0.7922, allocations: 0.4909 MB / 1.218 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002418/0.7925, allocations: 63.84 kB / 1.218 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.037e-05/0.7925, allocations: 32.95 kB / 1.218 GB, free: 15.85 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.595e-05/0.7925, allocations: 5.094 kB / 1.218 GB, free: 15.85 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002718/0.7928, allocations: 112.3 kB / 1.218 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=14): time 1.543e-06/0.7928, allocations: 0 / 1.218 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14): time 0.0004035/0.7932, allocations: 175.9 kB / 1.218 GB, free: 15.67 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.649e-05/0.7933, allocations: 54.78 kB / 1.218 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001679/0.7934, allocations: 162.7 kB / 1.218 GB, free: 15.47 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.605e-05/0.7935, allocations: 35.61 kB / 1.218 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 9.216e-05/0.7936, allocations: 118.3 kB / 1.218 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.5e-05/0.7936, allocations: 35.94 kB / 1.219 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001319/0.7937, allocations: 74.08 kB / 1.219 GB, free: 15.25 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000169/0.7939, allocations: 322.4 kB / 1.219 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002066/0.7941, allocations: 96.91 kB / 1.219 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002364/0.7943, allocations: 141.8 kB / 1.219 GB, free: 14.78 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003306/0.7947, allocations: 248.3 kB / 1.219 GB, free: 14.56 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.7947, allocations: 1.312 kB / 1.219 GB, free: 14.56 MB / 0.9356 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006815/0.7954, allocations: 407.9 kB / 1.22 GB, free: 14.3 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 8.585e-05/0.7954, allocations: 101.9 kB / 1.22 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.7955, allocations: 1.094 kB / 1.22 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.7955, allocations: 2.281 kB / 1.22 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.911e-05/0.7955, allocations: 17.48 kB / 1.22 GB, free: 14.19 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.7955, allocations: 2.188 kB / 1.22 GB, free: 14.19 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004523/0.796, allocations: 92.72 kB / 1.22 GB, free: 14.15 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.965e-05/0.796, allocations: 21.2 kB / 1.22 GB, free: 14.14 MB / 0.9356 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.0001378/0.7962, allocations: 136.1 kB / 1.22 GB, free: 14.01 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.464e-05/0.7962, allocations: 17.44 kB / 1.22 GB, free: 14 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.464e-05/0.7962, allocations: 16 kB / 1.22 GB, free: 13.99 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.7962, allocations: 5.938 kB / 1.22 GB, free: 13.98 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.7962, allocations: 3.938 kB / 1.22 GB, free: 13.98 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.7962, allocations: 0 / 1.22 GB, free: 13.98 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002081/0.7964, allocations: 220.5 kB / 1.22 GB, free: 13.74 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.7964, allocations: 3.938 kB / 1.22 GB, free: 13.74 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.353e-05/0.7965, allocations: 12.44 kB / 1.22 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.7965, allocations: 1.438 kB / 1.22 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.7965, allocations: 1.312 kB / 1.22 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.501e-06/0.7965, allocations: 4.766 kB / 1.22 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.7965, allocations: 0 / 1.22 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002252/0.7967, allocations: 161.5 kB / 1.221 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.958e-05/0.7968, allocations: 96.2 kB / 1.221 GB, free: 13.51 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.152e-05/0.7968, allocations: 5.188 kB / 1.221 GB, free: 13.5 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.023e-05/0.7969, allocations: 1.125 kB / 1.221 GB, free: 13.5 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.946e-05/0.7969, allocations: 13.2 kB / 1.221 GB, free: 13.5 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.7969, allocations: 3.938 kB / 1.221 GB, free: 13.5 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.44e-05/0.797, allocations: 119.2 kB / 1.221 GB, free: 13.4 MB / 0.9356 GB Notification: Performance of sort global known variables: time 9e-08/0.797, allocations: 4 kB / 1.221 GB, free: 13.4 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002608/0.7972, allocations: 48.38 kB / 1.221 GB, free: 13.39 MB / 0.9356 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.0006321/0.7979, allocations: 0.71 MB / 1.222 GB, free: 12.74 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005395/0.7984, allocations: 341.3 kB / 1.222 GB, free: 12.47 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.7984, allocations: 0 / 1.222 GB, free: 12.47 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001054/0.7985, allocations: 50.98 kB / 1.222 GB, free: 12.45 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000275/0.7988, allocations: 23.55 kB / 1.222 GB, free: 12.44 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002925/0.8017, allocations: 2.258 MB / 1.224 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003479/0.8021, allocations: 0.7085 MB / 1.225 GB, free: 9.895 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.226e-05/0.8021, allocations: 17.12 kB / 1.225 GB, free: 9.887 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.71e-05/0.8022, allocations: 42.92 kB / 1.225 GB, free: 9.852 MB / 0.9356 GB Notification: Performance of SimCode: time 5.31e-07/0.8022, allocations: 7.875 kB / 1.225 GB, free: 9.844 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02741/0.8296, allocations: 4.237 MB / 1.229 GB, free: 7.285 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.234/9.064, allocations: 7.594 kB / 1.229 GB, free: 7.281 MB / 0.9356 GB " [Timeout remaining time 291] (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 --stepSize=0.002 --timeout=400 --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) [Timeout 420.0] 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_2/OpenModelicaLibraryTesting/files/Buildings_10_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: 14.829106201417744]