Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_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.005978/0.005978, allocations: 98.7 kB / 15.73 MB, free: 6.039 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.001272/0.001272, allocations: 202.3 kB / 16.68 MB, free: 5.961 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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.759/2.759, allocations: 482.6 MB / 0.755 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 63.91 kB / 1.083 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.315/0.3168, allocations: 162.3 MB / 1.242 GB, free: 9.848 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002132/0.3189, allocations: 0.7064 MB / 1.243 GB, free: 9.145 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001837/0.3208, allocations: 1.252 MB / 1.244 GB, free: 7.879 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.833e-05/0.3209, allocations: 0 / 1.244 GB, free: 7.879 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.452e-05/0.3209, allocations: 3.938 kB / 1.244 GB, free: 7.875 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 9.455e-05/0.321, allocations: 15.86 kB / 1.244 GB, free: 7.859 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008815/0.3219, allocations: 313.5 kB / 1.244 GB, free: 7.559 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003646/0.3223, allocations: 275.5 kB / 1.244 GB, free: 7.289 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001095/0.3224, allocations: 28.14 kB / 1.244 GB, free: 7.258 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001263/0.3225, allocations: 99.86 kB / 1.244 GB, free: 7.16 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001787/0.3227, allocations: 95.67 kB / 1.245 GB, free: 7.066 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 6.165e-05/0.3228, allocations: 20 kB / 1.245 GB, free: 7.047 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.984e-05/0.3229, allocations: 35.98 kB / 1.245 GB, free: 7.012 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.744e-05/0.3229, allocations: 19.92 kB / 1.245 GB, free: 6.992 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001133/0.3231, allocations: 79.8 kB / 1.245 GB, free: 6.914 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002921/0.3234, allocations: 215.4 kB / 1.245 GB, free: 6.703 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 9.217e-06/0.3234, allocations: 3.938 kB / 1.245 GB, free: 6.699 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3234, allocations: 3.938 kB / 1.245 GB, free: 6.695 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.139e-06/0.3234, allocations: 4 kB / 1.245 GB, free: 6.691 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006452/0.324, allocations: 0.4924 MB / 1.245 GB, free: 6.133 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.3241, allocations: 8.031 kB / 1.245 GB, free: 6.125 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.388e-05/0.3241, allocations: 30.75 kB / 1.245 GB, free: 6.086 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.57e-05/0.3242, allocations: 20.88 kB / 1.245 GB, free: 6.066 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001562/0.3244, allocations: 172.3 kB / 1.246 GB, free: 5.859 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.858e-05/0.3244, allocations: 12.38 kB / 1.246 GB, free: 5.848 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.916e-05/0.3244, allocations: 12.38 kB / 1.246 GB, free: 5.836 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001409/0.3246, allocations: 61.98 kB / 1.246 GB, free: 5.77 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.3246, allocations: 0 / 1.246 GB, free: 5.77 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.614e-05/0.3246, allocations: 7.984 kB / 1.246 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/0.3246, allocations: 0 / 1.246 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.583e-05/0.3247, allocations: 19.94 kB / 1.246 GB, free: 5.742 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000606/0.3253, allocations: 412.5 kB / 1.246 GB, free: 5.289 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 6.625e-05/0.3254, allocations: 34.56 kB / 1.246 GB, free: 5.246 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.039e-05/0.3254, allocations: 16.86 kB / 1.246 GB, free: 5.227 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.079e-05/0.3255, allocations: 4 kB / 1.246 GB, free: 5.223 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002546/0.3257, allocations: 107.3 kB / 1.246 GB, free: 5.105 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=10): time 1.372e-06/0.3257, allocations: 0 / 1.246 GB, free: 5.105 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10): time 0.0003295/0.3261, allocations: 141.8 kB / 1.246 GB, free: 4.961 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.902e-05/0.3261, allocations: 55.47 kB / 1.246 GB, free: 4.895 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001259/0.3262, allocations: 133.8 kB / 1.247 GB, free: 4.754 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.26e-05/0.3263, allocations: 41.7 kB / 1.247 GB, free: 4.707 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.045e-05/0.3264, allocations: 100.1 kB / 1.247 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.038e-05/0.3264, allocations: 15.86 kB / 1.247 GB, free: 4.59 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001339/0.3266, allocations: 69.67 kB / 1.247 GB, free: 4.516 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001361/0.3267, allocations: 322.8 kB / 1.247 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002011/0.3269, allocations: 87.95 kB / 1.247 GB, free: 4.105 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002637/0.3272, allocations: 148.6 kB / 1.247 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003027/0.3275, allocations: 235 kB / 1.248 GB, free: 3.672 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3275, allocations: 4 kB / 1.248 GB, free: 3.668 MB / 0.9981 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005992/0.3281, allocations: 378.4 kB / 1.248 GB, free: 3.273 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 7.973e-05/0.3282, allocations: 101.1 kB / 1.248 GB, free: 3.156 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.3282, allocations: 7.938 kB / 1.248 GB, free: 3.148 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.3282, allocations: 0 / 1.248 GB, free: 3.148 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.135e-05/0.3282, allocations: 4 kB / 1.248 GB, free: 3.145 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.3283, allocations: 4 kB / 1.248 GB, free: 3.141 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004674/0.3287, allocations: 83.98 kB / 1.248 GB, free: 3.059 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.147e-05/0.3288, allocations: 19.98 kB / 1.248 GB, free: 3.039 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * 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.0001243/0.3289, allocations: 140.1 kB / 1.248 GB, free: 2.895 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.546e-05/0.3289, allocations: 7.953 kB / 1.248 GB, free: 2.887 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.104e-05/0.329, allocations: 12.38 kB / 1.248 GB, free: 2.871 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.329, allocations: 4 kB / 1.248 GB, free: 2.867 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.329, allocations: 0 / 1.248 GB, free: 2.867 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.329, allocations: 0 / 1.248 GB, free: 2.867 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001623/0.3292, allocations: 189.6 kB / 1.249 GB, free: 2.633 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.3292, allocations: 0 / 1.249 GB, free: 2.633 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.229e-05/0.3292, allocations: 4 kB / 1.249 GB, free: 2.629 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.3292, allocations: 0 / 1.249 GB, free: 2.629 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.345e-06/0.3292, allocations: 0 / 1.249 GB, free: 2.629 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3292, allocations: 0 / 1.249 GB, free: 2.629 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.3292, allocations: 4 kB / 1.249 GB, free: 2.625 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00019/0.3294, allocations: 144.9 kB / 1.249 GB, free: 2.465 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.369e-05/0.3295, allocations: 85.25 kB / 1.249 GB, free: 2.363 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.646e-05/0.3295, allocations: 0 / 1.249 GB, free: 2.363 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.236e-05/0.3295, allocations: 7.922 kB / 1.249 GB, free: 2.355 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.002e-05/0.3296, allocations: 11.94 kB / 1.249 GB, free: 2.344 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.024e-05/0.3296, allocations: 7.984 kB / 1.249 GB, free: 2.336 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.632e-05/0.3297, allocations: 102.1 kB / 1.249 GB, free: 2.238 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3297, allocations: 4 kB / 1.249 GB, free: 2.234 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002469/0.3299, allocations: 43.94 kB / 1.249 GB, free: 2.191 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0005396/0.3305, allocations: 0.6843 MB / 1.25 GB, free: 1.48 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0005066/0.331, allocations: 366.4 kB / 1.25 GB, free: 1.086 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.331, allocations: 0 / 1.25 GB, free: 1.086 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 6.514e-05/0.3311, allocations: 43.91 kB / 1.25 GB, free: 1.043 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002569/0.3313, allocations: 23.98 kB / 1.25 GB, free: 1.02 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5308/0.8622, allocations: 2.045 MB / 1.252 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.816e-05/0.8623, allocations: 0.701 MB / 1.253 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 4.883e-05/0.8624, allocations: 8.422 kB / 1.253 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.961e-05/0.8624, allocations: 28.86 kB / 1.253 GB, free: 13.15 MB / 0.9981 GB Notification: Performance of SimCode: time 6.91e-07/0.8624, allocations: 0.5 kB / 1.253 GB, free: 13.15 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3073/1.17, allocations: 3.816 MB / 1.256 GB, free: 12.72 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.884/11.05, allocations: 8.625 kB / 1.256 GB, free: 12.72 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches