Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) 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.Reals.Validation.Switch,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_10_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.001178/0.001178, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 199.7 kB / 16.54 MB, free: 6.672 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.418/1.418, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.753/2.753, allocations: 437.1 MB / 0.7104 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001529/0.00153, allocations: 63.91 kB / 0.8694 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7955/0.7971, allocations: 151.6 MB / 1.017 GB, free: 2.488 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002667/0.7998, allocations: 0.7943 MB / 1.018 GB, free: 1.691 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001826/0.8017, allocations: 1.152 MB / 1.019 GB, free: 0.5234 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.468e-05/0.8018, allocations: 0 / 1.019 GB, free: 0.5234 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.642e-05/0.8018, allocations: 7.922 kB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.399e-05/0.8019, allocations: 15.86 kB / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006245/0.8026, allocations: 131.1 kB / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002079/0.8028, allocations: 135.8 kB / 1.02 GB, free: 248 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001194/0.8029, allocations: 23.95 kB / 1.02 GB, free: 224 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001251/0.803, allocations: 51.91 kB / 1.02 GB, free: 172 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.832e-05/0.8031, allocations: 47.81 kB / 1.02 GB, free: 124 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.396e-05/0.8032, allocations: 8 kB / 1.02 GB, free: 116 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.752e-05/0.8033, allocations: 27.98 kB / 1.02 GB, free: 88 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.854e-05/0.8033, allocations: 11.92 kB / 1.02 GB, free: 76 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 7.681e-05/0.8034, allocations: 47.84 kB / 1.02 GB, free: 28 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.000235/0.8036, allocations: 117.9 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.8037, allocations: 0 / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.336e-06/0.8037, allocations: 0 / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.975e-06/0.8037, allocations: 3.938 kB / 1.02 GB, free: 15.91 MB / 0.7794 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.0008136/0.8045, allocations: 428.9 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.8046, allocations: 8.031 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.259e-05/0.8046, allocations: 38.69 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.457e-05/0.8047, allocations: 8.938 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.8048, allocations: 180.2 kB / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.313e-05/0.8048, allocations: 8.359 kB / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.661e-05/0.8049, allocations: 4.375 kB / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002929/0.8052, allocations: 82.2 kB / 1.021 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.8052, allocations: 3.938 kB / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.8052, allocations: 0 / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.8052, allocations: 0 / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000326/0.8056, allocations: 79.86 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005441/0.8061, allocations: 324.7 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002018/0.8063, allocations: 58.53 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001616/0.8065, allocations: 44.91 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.728e-05/0.8065, allocations: 0 / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002708/0.8068, allocations: 95.28 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.383e-06/0.8068, allocations: 4 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0006369/0.8075, allocations: 165.5 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.02e-05/0.8075, allocations: 51.41 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001244/0.8076, allocations: 125.9 kB / 1.022 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.845e-05/0.8077, allocations: 33.69 kB / 1.022 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.843e-05/0.8078, allocations: 96.14 kB / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.469e-05/0.8078, allocations: 15.81 kB / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.11e-05/0.8079, allocations: 37.64 kB / 1.022 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001101/0.808, allocations: 322.8 kB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002218/0.8082, allocations: 63.94 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002274/0.8085, allocations: 78.53 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003875/0.8089, allocations: 144.1 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.8089, allocations: 0 / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005609/0.8094, allocations: 215.1 kB / 1.023 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.587e-05/0.8095, allocations: 35.89 kB / 1.023 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.8095, allocations: 3.984 kB / 1.023 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.8095, allocations: 4 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001669/0.8097, allocations: 19.97 kB / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.054e-06/0.8097, allocations: 4.062 kB / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002543/0.81, allocations: 43.86 kB / 1.023 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.491e-05/0.81, allocations: 4.078 kB / 1.023 GB, free: 12.86 MB / 0.7794 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.0001281/0.8101, allocations: 129.8 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.796e-05/0.8102, allocations: 7.938 kB / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.411e-05/0.8102, allocations: 8.375 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.8102, allocations: 8 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.8102, allocations: 0 / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.8102, allocations: 0 / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001603/0.8104, allocations: 193.5 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.8104, allocations: 0 / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001084/0.8105, allocations: 20.23 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.8105, allocations: 0 / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.8106, allocations: 4 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.8106, allocations: 0 / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.8106, allocations: 4 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004026/0.811, allocations: 153 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.057e-05/0.811, allocations: 81.02 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.044e-05/0.8111, allocations: 3.984 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.403e-05/0.8111, allocations: 11.98 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.664e-05/0.8112, allocations: 12 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.957e-06/0.8112, allocations: 3.984 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.05e-05/0.8113, allocations: 95.27 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.723e-06/0.8113, allocations: 0 / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002374/0.8115, allocations: 23.94 kB / 1.023 GB, free: 12.02 MB / 0.7794 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.0007755/0.8123, allocations: 0.6903 MB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005045/0.8128, allocations: 191.2 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.8128, allocations: 0 / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001837/0.813, allocations: 52.08 kB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002445/0.8133, allocations: 19.98 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002529/0.8158, allocations: 1.609 MB / 1.026 GB, free: 9.324 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003356/0.8162, allocations: 0.6923 MB / 1.027 GB, free: 8.605 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.671e-05/0.8162, allocations: 4 kB / 1.027 GB, free: 8.602 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.21e-05/0.8163, allocations: 27.42 kB / 1.027 GB, free: 8.574 MB / 0.7794 GB Notification: Performance of SimCode: time 7.41e-07/0.8163, allocations: 0 / 1.027 GB, free: 8.574 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02996/0.8463, allocations: 2.646 MB / 1.029 GB, free: 6.012 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.835/8.682, allocations: 17.27 kB / 1.029 GB, free: 5.996 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Switch.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches