Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Reals.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_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.00569/0.00569, allocations: 105 kB / 15.74 MB, free: 5.992 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.001367/0.001367, allocations: 198.2 kB / 16.68 MB, free: 5.918 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.619/2.619, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001555/0.001555, allocations: 72.09 kB / 1.054 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.016/1.018, allocations: 157.4 MB / 1.207 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002416/1.02, allocations: 0.7815 MB / 1.208 GB, free: 12.75 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001841/1.022, allocations: 1.158 MB / 1.209 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.842e-05/1.022, allocations: 0 / 1.209 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.206e-05/1.022, allocations: 11.92 kB / 1.209 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.000117/1.022, allocations: 11.88 kB / 1.209 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006827/1.023, allocations: 131.1 kB / 1.209 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002636/1.023, allocations: 143.7 kB / 1.21 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001198/1.023, allocations: 15.95 kB / 1.21 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001481/1.023, allocations: 51.89 kB / 1.21 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001267/1.024, allocations: 51.8 kB / 1.21 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.12e-05/1.024, allocations: 12 kB / 1.21 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.073e-05/1.024, allocations: 23.98 kB / 1.21 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.561e-05/1.024, allocations: 11.94 kB / 1.21 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 7.331e-05/1.024, allocations: 51.83 kB / 1.21 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002203/1.024, allocations: 121.9 kB / 1.21 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/1.024, allocations: 4 kB / 1.21 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.234e-06/1.024, allocations: 0 / 1.21 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.889e-06/1.024, allocations: 0 / 1.21 GB, free: 10.95 MB / 0.9356 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.0007265/1.025, allocations: 417 kB / 1.21 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/1.025, allocations: 8.031 kB / 1.21 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.752e-05/1.025, allocations: 42.69 kB / 1.21 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.477e-05/1.025, allocations: 12.84 kB / 1.21 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001517/1.025, allocations: 176.2 kB / 1.21 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.951e-05/1.025, allocations: 4.375 kB / 1.21 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.18e-05/1.025, allocations: 4.375 kB / 1.21 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002869/1.026, allocations: 82.2 kB / 1.211 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/1.026, allocations: 3.938 kB / 1.211 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/1.026, allocations: 4 kB / 1.211 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/1.026, allocations: 3.984 kB / 1.211 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003103/1.026, allocations: 71.92 kB / 1.211 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005777/1.026, allocations: 328.7 kB / 1.211 GB, free: 9.656 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002094/1.027, allocations: 58.53 kB / 1.211 GB, free: 9.59 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001624/1.027, allocations: 44.91 kB / 1.211 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.656e-05/1.027, allocations: 0 / 1.211 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003366/1.027, allocations: 103.2 kB / 1.211 GB, free: 9.43 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=6): time 1.644e-06/1.027, allocations: 3.938 kB / 1.211 GB, free: 9.426 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6): time 0.0006369/1.028, allocations: 157.6 kB / 1.211 GB, free: 9.266 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.201e-05/1.028, allocations: 55.41 kB / 1.211 GB, free: 9.199 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001249/1.028, allocations: 126 kB / 1.211 GB, free: 9.062 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.529e-05/1.028, allocations: 25.7 kB / 1.211 GB, free: 9.031 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.491e-05/1.028, allocations: 100 kB / 1.212 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.498e-05/1.028, allocations: 19.75 kB / 1.212 GB, free: 8.91 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.393e-05/1.028, allocations: 33.69 kB / 1.212 GB, free: 8.871 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.00014/1.028, allocations: 322.8 kB / 1.212 GB, free: 8.547 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000224/1.029, allocations: 59.94 kB / 1.212 GB, free: 8.488 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000233/1.029, allocations: 90.45 kB / 1.212 GB, free: 8.391 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000381/1.029, allocations: 132.2 kB / 1.212 GB, free: 8.246 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/1.029, allocations: 0 / 1.212 GB, free: 8.246 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005701/1.03, allocations: 219.2 kB / 1.212 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 6.426e-05/1.03, allocations: 37.7 kB / 1.212 GB, free: 7.977 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/1.03, allocations: 0 / 1.212 GB, free: 7.977 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.392e-05/1.03, allocations: 4 kB / 1.212 GB, free: 7.973 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001694/1.03, allocations: 19.91 kB / 1.212 GB, free: 7.953 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/1.03, allocations: 4 kB / 1.212 GB, free: 7.949 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002334/1.03, allocations: 36.02 kB / 1.213 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.691e-05/1.031, allocations: 8 kB / 1.213 GB, free: 7.906 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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.000128/1.031, allocations: 125.7 kB / 1.213 GB, free: 7.773 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.889e-05/1.031, allocations: 7.906 kB / 1.213 GB, free: 7.766 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.699e-05/1.031, allocations: 8.375 kB / 1.213 GB, free: 7.754 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/1.031, allocations: 4 kB / 1.213 GB, free: 7.75 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/1.031, allocations: 4 kB / 1.213 GB, free: 7.746 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/1.031, allocations: 0 / 1.213 GB, free: 7.746 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001783/1.031, allocations: 185.6 kB / 1.213 GB, free: 7.516 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/1.031, allocations: 0 / 1.213 GB, free: 7.516 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/1.031, allocations: 16.3 kB / 1.213 GB, free: 7.5 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/1.031, allocations: 0 / 1.213 GB, free: 7.5 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/1.031, allocations: 0 / 1.213 GB, free: 7.5 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/1.031, allocations: 7.938 kB / 1.213 GB, free: 7.492 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/1.031, allocations: 0 / 1.213 GB, free: 7.492 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004237/1.032, allocations: 156.9 kB / 1.213 GB, free: 7.32 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.318e-05/1.032, allocations: 85.02 kB / 1.213 GB, free: 7.219 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.23e-05/1.032, allocations: 7.922 kB / 1.213 GB, free: 7.211 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.259e-05/1.032, allocations: 11.98 kB / 1.213 GB, free: 7.199 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.376e-05/1.032, allocations: 8 kB / 1.213 GB, free: 7.191 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.666e-06/1.032, allocations: 7.984 kB / 1.213 GB, free: 7.184 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.206e-05/1.032, allocations: 99.03 kB / 1.213 GB, free: 7.09 MB / 0.9356 GB Notification: Performance of sort global known variables: time 5.01e-07/1.032, allocations: 0 / 1.213 GB, free: 7.09 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002384/1.032, allocations: 27.98 kB / 1.213 GB, free: 7.062 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: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0008327/1.033, allocations: 0.6905 MB / 1.214 GB, free: 6.344 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005477/1.034, allocations: 191.2 kB / 1.214 GB, free: 6.145 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/1.034, allocations: 0 / 1.214 GB, free: 6.145 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001992/1.034, allocations: 52.08 kB / 1.214 GB, free: 6.094 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002514/1.034, allocations: 4 kB / 1.214 GB, free: 6.09 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002516/1.037, allocations: 1.638 MB / 1.216 GB, free: 4.352 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003576/1.037, allocations: 0.6885 MB / 1.216 GB, free: 3.637 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.629e-05/1.037, allocations: 8 kB / 1.216 GB, free: 3.629 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.272e-05/1.037, allocations: 19.44 kB / 1.216 GB, free: 3.609 MB / 0.9356 GB Notification: Performance of SimCode: time 2.4e-07/1.037, allocations: 0 / 1.216 GB, free: 3.609 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02205/1.059, allocations: 2.744 MB / 1.219 GB, free: 0.9727 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.507/8.566, allocations: 9.078 kB / 1.219 GB, free: 0.9688 MB / 0.9356 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches