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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.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.001036/0.001035, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.0009633/0.0009632, allocations: 194.5 kB / 16.14 MB, free: 6.699 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.262/1.262, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.53/2.53, allocations: 461.8 MB / 0.7342 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.001241, allocations: 69.73 kB / 0.8985 GB, free: 36.86 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3069/0.3082, allocations: 157.4 MB / 1.052 GB, free: 8.191 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002086/0.3103, allocations: 0.8506 MB / 1.053 GB, free: 7.336 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001393/0.3117, allocations: 1.174 MB / 1.054 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.923e-05/0.3118, allocations: 0 / 1.054 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.683e-05/0.3119, allocations: 7.922 kB / 1.054 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.722e-05/0.312, allocations: 7.938 kB / 1.054 GB, free: 6.133 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004317/0.3124, allocations: 127 kB / 1.054 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001269/0.3125, allocations: 111.8 kB / 1.054 GB, free: 5.902 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.075e-05/0.3126, allocations: 15.98 kB / 1.054 GB, free: 5.887 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001015/0.3127, allocations: 47.78 kB / 1.055 GB, free: 5.84 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.997e-05/0.3128, allocations: 43.88 kB / 1.055 GB, free: 5.797 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.596e-05/0.3128, allocations: 8 kB / 1.055 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.97e-05/0.3129, allocations: 23.98 kB / 1.055 GB, free: 5.766 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.927e-05/0.313, allocations: 15.92 kB / 1.055 GB, free: 5.75 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.205e-05/0.313, allocations: 35.84 kB / 1.055 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001635/0.3132, allocations: 115.9 kB / 1.055 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.3132, allocations: 0 / 1.055 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.62e-07/0.3132, allocations: 0 / 1.055 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.662e-06/0.3132, allocations: 0 / 1.055 GB, free: 5.602 MB / 0.8106 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.0006227/0.3139, allocations: 428.9 kB / 1.055 GB, free: 5.125 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.3139, allocations: 15.97 kB / 1.055 GB, free: 5.109 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.269e-05/0.3139, allocations: 34.73 kB / 1.055 GB, free: 5.066 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.366e-05/0.314, allocations: 16.78 kB / 1.055 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001042/0.3141, allocations: 168.3 kB / 1.055 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.545e-05/0.3141, allocations: 4.375 kB / 1.055 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.142e-05/0.3142, allocations: 12.31 kB / 1.055 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002504/0.3144, allocations: 74.2 kB / 1.055 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.3144, allocations: 3.938 kB / 1.055 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.3144, allocations: 0 / 1.055 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.3144, allocations: 11.98 kB / 1.055 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002887/0.3147, allocations: 67.92 kB / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004136/0.3152, allocations: 332.6 kB / 1.056 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001817/0.3154, allocations: 58.47 kB / 1.056 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001518/0.3155, allocations: 40.92 kB / 1.056 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.203e-05/0.3155, allocations: 7.984 kB / 1.056 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000282/0.3158, allocations: 95.34 kB / 1.056 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.223e-06/0.3158, allocations: 0 / 1.056 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0005731/0.3164, allocations: 169.4 kB / 1.056 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.28e-05/0.3165, allocations: 51.41 kB / 1.056 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.458e-05/0.3166, allocations: 131.8 kB / 1.056 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.15e-05/0.3166, allocations: 29.7 kB / 1.056 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.062e-05/0.3166, allocations: 96.03 kB / 1.057 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.097e-05/0.3167, allocations: 19.75 kB / 1.057 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.834e-05/0.3167, allocations: 29.7 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.068e-05/0.3168, allocations: 322.8 kB / 1.057 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002112/0.3171, allocations: 59.95 kB / 1.057 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002051/0.3173, allocations: 82.52 kB / 1.057 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003533/0.3176, allocations: 152.1 kB / 1.057 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3177, allocations: 0 / 1.057 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004978/0.3182, allocations: 203.3 kB / 1.057 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.559e-05/0.3182, allocations: 37.69 kB / 1.057 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.3182, allocations: 0 / 1.057 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.03e-05/0.3182, allocations: 0 / 1.057 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/0.3183, allocations: 20.05 kB / 1.057 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.3184, allocations: 0 / 1.057 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002301/0.3186, allocations: 47.84 kB / 1.057 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.23e-05/0.3186, allocations: 4 kB / 1.057 GB, free: 2.551 MB / 0.8106 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 8.759e-05/0.3187, allocations: 125.7 kB / 1.058 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.767e-05/0.3187, allocations: 11.98 kB / 1.058 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.709e-05/0.3188, allocations: 16.31 kB / 1.058 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.3188, allocations: 0 / 1.058 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3188, allocations: 0 / 1.058 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.3188, allocations: 0 / 1.058 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001239/0.3189, allocations: 185.6 kB / 1.058 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3189, allocations: 0 / 1.058 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.963e-05/0.319, allocations: 19.97 kB / 1.058 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.626e-06/0.3191, allocations: 4 kB / 1.058 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-06/0.3191, allocations: 0 / 1.058 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.3191, allocations: 0 / 1.058 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3191, allocations: 4 kB / 1.058 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003548/0.3194, allocations: 153.2 kB / 1.058 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.341e-05/0.3195, allocations: 81.11 kB / 1.058 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.875e-05/0.3195, allocations: 4 kB / 1.058 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.546e-05/0.3196, allocations: 23.97 kB / 1.058 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.717e-05/0.3196, allocations: 0 / 1.058 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.306e-06/0.3196, allocations: 7.938 kB / 1.058 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.881e-05/0.3197, allocations: 91.27 kB / 1.058 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3197, allocations: 0 / 1.058 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002147/0.3199, allocations: 27.98 kB / 1.058 GB, free: 1.715 MB / 0.8106 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.0006464/0.3206, allocations: 0.6942 MB / 1.059 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004399/0.321, allocations: 183.4 kB / 1.059 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.321, allocations: 4.062 kB / 1.059 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001646/0.3212, allocations: 51.89 kB / 1.059 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002094/0.3214, allocations: 17.66 kB / 1.059 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002005/0.3234, allocations: 1.631 MB / 1.061 GB, free: 15 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000204/0.3237, allocations: 0.6897 MB / 1.061 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.909e-05/0.3237, allocations: 4 kB / 1.061 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.519e-05/0.3238, allocations: 23.42 kB / 1.061 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.3238, allocations: 3.938 kB / 1.061 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01156/0.3353, allocations: 2.366 MB / 1.064 GB, free: 12 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000219/0.3356, allocations: 212.8 kB / 1.064 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.624/1.959, allocations: 7.938 kB / 1.064 GB, free: 11.73 MB / 0.8262 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