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.001499/0.001499, allocations: 114.5 kB / 18.94 MB, free: 2.957 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.001671/0.001671, allocations: 216 kB / 22.25 MB, free: 5.117 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.52/1.52, allocations: 230.6 MB / 256 MB, free: 8.031 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.211/3.211, allocations: 0.49 GB / 0.7951 GB, free: 33.36 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.001995/0.001995, allocations: 71 kB / 1.154 GB, free: 25.72 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.3409, allocations: 176.1 MB / 1.326 GB, free: 1.918 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002344/0.3432, allocations: 0.8356 MB / 1.327 GB, free: 1.086 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00199/0.3452, allocations: 1.327 MB / 1.328 GB, free: 15.74 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.153e-05/0.3453, allocations: 3.938 kB / 1.328 GB, free: 15.74 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.307e-05/0.3454, allocations: 7.875 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 9.146e-05/0.3455, allocations: 19.8 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009729/0.3464, allocations: 332.4 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004309/0.3469, allocations: 287.4 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001332/0.347, allocations: 29.62 kB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000237/0.3472, allocations: 119.8 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002579/0.3475, allocations: 111.5 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.915e-05/0.3476, allocations: 28 kB / 1.329 GB, free: 14.83 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001086/0.3477, allocations: 43.92 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.6e-05/0.3477, allocations: 23.92 kB / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001433/0.3478, allocations: 99.67 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000406/0.3482, allocations: 275.4 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.3483, allocations: 7.984 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3483, allocations: 0 / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.236e-06/0.3483, allocations: 0 / 1.329 GB, free: 14.39 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.0007732/0.349, allocations: 454.9 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.3491, allocations: 12.03 kB / 1.33 GB, free: 13.88 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.947e-05/0.3491, allocations: 42.73 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.151e-05/0.3492, allocations: 20.84 kB / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001445/0.3494, allocations: 126.9 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.313e-05/0.3494, allocations: 19.92 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.768e-05/0.3495, allocations: 27.98 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002053/0.3497, allocations: 87.16 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.3497, allocations: 0 / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.368e-05/0.3497, allocations: 7.938 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.3497, allocations: 4 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001163/0.3498, allocations: 51.91 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000778/0.3506, allocations: 463.3 kB / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002482/0.3508, allocations: 70.62 kB / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.064e-05/0.3509, allocations: 28.91 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.324e-05/0.3509, allocations: 0 / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002264/0.3511, allocations: 115.3 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.472e-06/0.3511, allocations: 0 / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0003995/0.3515, allocations: 175.2 kB / 1.331 GB, free: 12.56 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.971e-05/0.3516, allocations: 63.39 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001718/0.3518, allocations: 161 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.76e-05/0.3518, allocations: 37.7 kB / 1.331 GB, free: 12.28 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.561e-05/0.3519, allocations: 108 kB / 1.331 GB, free: 12.17 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.906e-05/0.3519, allocations: 19.86 kB / 1.331 GB, free: 12.15 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001454/0.3521, allocations: 77.66 kB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001791/0.3523, allocations: 326.8 kB / 1.332 GB, free: 11.74 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002156/0.3525, allocations: 99.94 kB / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002399/0.3527, allocations: 147.1 kB / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000349/0.3531, allocations: 256.8 kB / 1.332 GB, free: 11.19 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3531, allocations: 0 / 1.332 GB, free: 11.19 MB / 1.029 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006757/0.3537, allocations: 415.7 kB / 1.333 GB, free: 10.76 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001415/0.3539, allocations: 105 kB / 1.333 GB, free: 10.64 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.3539, allocations: 0 / 1.333 GB, free: 10.64 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.3539, allocations: 8.188 kB / 1.333 GB, free: 10.63 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.158e-05/0.354, allocations: 11.98 kB / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.354, allocations: 4 kB / 1.333 GB, free: 10.61 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004528/0.3544, allocations: 79.8 kB / 1.333 GB, free: 10.54 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.061e-05/0.3545, allocations: 19.98 kB / 1.333 GB, free: 10.52 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.0001437/0.3546, allocations: 146.2 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.535e-05/0.3546, allocations: 19.83 kB / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.047e-05/0.3547, allocations: 16.78 kB / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.3547, allocations: 4 kB / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3547, allocations: 0 / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.3547, allocations: 0 / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002033/0.3549, allocations: 188.7 kB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.3549, allocations: 3.938 kB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.496e-05/0.3549, allocations: 8 kB / 1.333 GB, free: 10.08 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.3549, allocations: 4 kB / 1.333 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.355, allocations: 4 kB / 1.333 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.355, allocations: 3.938 kB / 1.333 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.355, allocations: 7.984 kB / 1.333 GB, free: 10.06 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002439/0.3552, allocations: 154.9 kB / 1.333 GB, free: 9.891 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.402e-05/0.3552, allocations: 19.83 kB / 1.333 GB, free: 9.871 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.829e-05/0.3553, allocations: 0 / 1.333 GB, free: 9.871 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.308e-05/0.3553, allocations: 4 kB / 1.333 GB, free: 9.867 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.593e-05/0.3553, allocations: 11.98 kB / 1.333 GB, free: 9.855 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.783e-05/0.3553, allocations: 11.98 kB / 1.333 GB, free: 9.844 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.234e-05/0.3554, allocations: 109 kB / 1.334 GB, free: 9.738 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3554, allocations: 4 kB / 1.334 GB, free: 9.734 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002793/0.3557, allocations: 55.92 kB / 1.334 GB, free: 9.68 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.0006529/0.3564, allocations: 0.7086 MB / 1.334 GB, free: 8.945 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005332/0.3569, allocations: 346 kB / 1.335 GB, free: 8.57 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.3569, allocations: 3.938 kB / 1.335 GB, free: 8.566 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.801e-05/0.357, allocations: 41.23 kB / 1.335 GB, free: 8.527 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002879/0.3573, allocations: 32.3 kB / 1.335 GB, free: 8.496 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002999/0.3603, allocations: 2.249 MB / 1.337 GB, free: 6.113 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003659/0.3606, allocations: 0.7084 MB / 1.338 GB, free: 5.379 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.067e-05/0.3607, allocations: 16.64 kB / 1.338 GB, free: 5.359 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.964e-05/0.3608, allocations: 39.42 kB / 1.338 GB, free: 5.32 MB / 1.029 GB Notification: Performance of SimCode: time 4e-07/0.3608, allocations: 0 / 1.338 GB, free: 5.32 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03322/0.394, allocations: 4.394 MB / 1.342 GB, free: 1.094 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.69, allocations: 8.062 kB / 1.342 GB, free: 1.086 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.50768756796606]