Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 108.2 kB / 17.54 MB, free: 4.746 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001388/0.001388, allocations: 186.7 kB / 20.71 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.321/1.321, allocations: 225.6 MB / 249.3 MB, free: 3.172 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.526/2.526, allocations: 476.7 MB / 0.7628 GB, free: 15.14 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001857/0.001857, allocations: 75.83 kB / 1.107 GB, free: 5.105 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8303/0.8321, allocations: 168.7 MB / 1.271 GB, free: 7.68 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001753/0.8339, allocations: 0.7995 MB / 1.272 GB, free: 7.195 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001217/0.8351, allocations: 1.163 MB / 1.273 GB, free: 6.348 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.425e-05/0.8352, allocations: 4.75 kB / 1.273 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.042e-05/0.8352, allocations: 4.453 kB / 1.273 GB, free: 6.34 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 8.231e-05/0.8353, allocations: 24 kB / 1.273 GB, free: 6.32 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005522/0.8358, allocations: 132.8 kB / 1.274 GB, free: 6.254 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002528/0.8361, allocations: 124.7 kB / 1.274 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.8362, allocations: 15.03 kB / 1.274 GB, free: 6.195 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001236/0.8363, allocations: 50.3 kB / 1.274 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001333/0.8364, allocations: 58.67 kB / 1.274 GB, free: 6.148 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.718e-05/0.8365, allocations: 10.94 kB / 1.274 GB, free: 6.148 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.034e-05/0.8366, allocations: 25.19 kB / 1.274 GB, free: 6.145 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.202e-05/0.8366, allocations: 17.56 kB / 1.274 GB, free: 6.133 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 8.75e-05/0.8367, allocations: 42.8 kB / 1.274 GB, free: 6.109 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002075/0.8369, allocations: 118.9 kB / 1.274 GB, free: 6.07 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.8369, allocations: 0.9062 kB / 1.274 GB, free: 6.07 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.375e-06/0.8369, allocations: 0 / 1.274 GB, free: 6.07 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.258e-05/0.8369, allocations: 0 / 1.274 GB, free: 6.07 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.0006769/0.8376, allocations: 429 kB / 1.274 GB, free: 5.652 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.8376, allocations: 9.438 kB / 1.274 GB, free: 5.652 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.616e-05/0.8377, allocations: 37.34 kB / 1.274 GB, free: 5.609 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.119e-05/0.8377, allocations: 10.64 kB / 1.274 GB, free: 5.605 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.733e-05/0.8378, allocations: 180.5 kB / 1.275 GB, free: 5.395 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.8378, allocations: 4.203 kB / 1.275 GB, free: 5.395 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.558e-05/0.8379, allocations: 6.188 kB / 1.275 GB, free: 5.395 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002835/0.8382, allocations: 79.73 kB / 1.275 GB, free: 5.352 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.8382, allocations: 7.938 kB / 1.275 GB, free: 5.344 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.212e-05/0.8382, allocations: 2.938 kB / 1.275 GB, free: 5.344 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.8382, allocations: 0.9375 kB / 1.275 GB, free: 5.344 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000334/0.8385, allocations: 67.08 kB / 1.275 GB, free: 5.336 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000406/0.8389, allocations: 330.7 kB / 1.275 GB, free: 5.031 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001907/0.8391, allocations: 58.58 kB / 1.275 GB, free: 4.996 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.8393, allocations: 39.64 kB / 1.275 GB, free: 4.984 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.8393, allocations: 1 kB / 1.275 GB, free: 4.984 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002599/0.8396, allocations: 94.98 kB / 1.275 GB, free: 4.926 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=6): time 1.312e-06/0.8396, allocations: 0 / 1.275 GB, free: 4.926 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6): time 0.0006206/0.8402, allocations: 167 kB / 1.275 GB, free: 4.863 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.082e-05/0.8402, allocations: 52.88 kB / 1.275 GB, free: 4.801 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.963e-05/0.8403, allocations: 125.4 kB / 1.276 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.023e-05/0.8403, allocations: 31.98 kB / 1.276 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.471e-05/0.8404, allocations: 97.91 kB / 1.276 GB, free: 4.559 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.835e-05/0.8404, allocations: 19.17 kB / 1.276 GB, free: 4.543 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.068e-05/0.8405, allocations: 36.59 kB / 1.276 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.095e-05/0.8405, allocations: 319.6 kB / 1.276 GB, free: 4.203 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002198/0.8407, allocations: 66.45 kB / 1.276 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002176/0.841, allocations: 75.3 kB / 1.276 GB, free: 4.148 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003755/0.8413, allocations: 153.3 kB / 1.276 GB, free: 4.059 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.8413, allocations: 0 / 1.276 GB, free: 4.059 MB / 0.9981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005111/0.8418, allocations: 210.8 kB / 1.277 GB, free: 3.957 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.774e-05/0.8419, allocations: 35.94 kB / 1.277 GB, free: 3.926 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.8419, allocations: 0.5 kB / 1.277 GB, free: 3.926 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.8419, allocations: 2.156 kB / 1.277 GB, free: 3.926 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001347/0.842, allocations: 24.38 kB / 1.277 GB, free: 3.918 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.842, allocations: 5.656 kB / 1.277 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000237/0.8423, allocations: 39.19 kB / 1.277 GB, free: 3.91 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.305e-05/0.8423, allocations: 6.375 kB / 1.277 GB, free: 3.91 MB / 0.9981 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 7.379e-05/0.8424, allocations: 124.6 kB / 1.277 GB, free: 3.785 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.672e-05/0.8424, allocations: 10.42 kB / 1.277 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.552e-05/0.8424, allocations: 10.09 kB / 1.277 GB, free: 3.77 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.8424, allocations: 0.8438 kB / 1.277 GB, free: 3.77 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.8424, allocations: 0 / 1.277 GB, free: 3.77 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.8424, allocations: 0.8125 kB / 1.277 GB, free: 3.77 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.998e-05/0.8425, allocations: 190.8 kB / 1.277 GB, free: 3.559 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.8425, allocations: 0 / 1.277 GB, free: 3.559 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001017/0.8426, allocations: 17.23 kB / 1.277 GB, free: 3.559 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.8426, allocations: 0.9375 kB / 1.277 GB, free: 3.559 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.868e-06/0.8426, allocations: 1.125 kB / 1.277 GB, free: 3.559 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.8426, allocations: 5.172 kB / 1.277 GB, free: 3.555 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.8426, allocations: 1.031 kB / 1.277 GB, free: 3.555 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003871/0.843, allocations: 152.2 kB / 1.277 GB, free: 3.465 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.618e-05/0.8431, allocations: 86.97 kB / 1.277 GB, free: 3.363 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.745e-05/0.8431, allocations: 2.859 kB / 1.277 GB, free: 3.363 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.794e-05/0.8432, allocations: 14.61 kB / 1.277 GB, free: 3.359 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.041e-05/0.8432, allocations: 13.44 kB / 1.277 GB, free: 3.352 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.636e-06/0.8432, allocations: 5.109 kB / 1.277 GB, free: 3.352 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.23e-05/0.8433, allocations: 102.5 kB / 1.277 GB, free: 3.266 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/0.8433, allocations: 0.875 kB / 1.277 GB, free: 3.266 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002171/0.8435, allocations: 21.34 kB / 1.277 GB, free: 3.266 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: 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.000561/0.844, allocations: 0.7019 MB / 1.278 GB, free: 2.637 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004528/0.8445, allocations: 179.2 kB / 1.278 GB, free: 2.543 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.8445, allocations: 0.9375 kB / 1.278 GB, free: 2.543 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000172/0.8447, allocations: 44.48 kB / 1.278 GB, free: 2.535 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000192/0.8449, allocations: 16.56 kB / 1.278 GB, free: 2.531 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001864/0.8467, allocations: 1.646 MB / 1.28 GB, free: 17.2 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002646/0.847, allocations: 0.6866 MB / 1.281 GB, free: 16.5 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 3.204e-05/0.847, allocations: 5.062 kB / 1.281 GB, free: 16.5 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.109e-05/0.8471, allocations: 20.69 kB / 1.281 GB, free: 16.48 MB / 1.014 GB Notification: Performance of SimCode: time 2.81e-07/0.8471, allocations: 0 / 1.281 GB, free: 16.48 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0234/0.8705, allocations: 2.672 MB / 1.283 GB, free: 16.03 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.872/7.742, allocations: 9.312 kB / 1.283 GB, free: 16.03 MB / 1.014 GB " [Timeout remaining time 292] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Switch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.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: 13.141872107999916]