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.006842/0.006842, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001775/0.001775, allocations: 195.3 kB / 16.67 MB, free: 5.977 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.312/1.312, allocations: 222.9 MB / 240.4 MB, free: 4.309 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.467/2.467, allocations: 437.1 MB / 0.7105 GB, free: 4.945 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001755/0.001755, allocations: 63.91 kB / 1.018 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2529, allocations: 151.6 MB / 1.166 GB, free: 7.285 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.00181/0.2548, allocations: 0.7977 MB / 1.167 GB, free: 6.48 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001369/0.2562, allocations: 1.148 MB / 1.168 GB, free: 5.316 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.739e-05/0.2562, allocations: 0 / 1.168 GB, free: 5.316 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.154e-05/0.2562, allocations: 7.875 kB / 1.168 GB, free: 5.309 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.529e-05/0.2563, allocations: 15.88 kB / 1.168 GB, free: 5.293 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004162/0.2568, allocations: 143 kB / 1.168 GB, free: 5.156 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001788/0.2569, allocations: 135.7 kB / 1.168 GB, free: 5.023 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 7.657e-05/0.257, allocations: 16 kB / 1.168 GB, free: 5.008 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.354e-05/0.2571, allocations: 51.88 kB / 1.168 GB, free: 4.957 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 9.505e-05/0.2572, allocations: 55.81 kB / 1.169 GB, free: 4.902 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.854e-05/0.2573, allocations: 12 kB / 1.169 GB, free: 4.891 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 6.829e-05/0.2573, allocations: 27.92 kB / 1.169 GB, free: 4.863 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.064e-05/0.2573, allocations: 8 kB / 1.169 GB, free: 4.855 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.033e-05/0.2574, allocations: 51.77 kB / 1.169 GB, free: 4.805 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001675/0.2576, allocations: 115.9 kB / 1.169 GB, free: 4.691 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.2576, allocations: 4 kB / 1.169 GB, free: 4.688 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.072e-06/0.2576, allocations: 3.938 kB / 1.169 GB, free: 4.684 MB / 0.92 GB Notification: Performance of Transformations before backend: time 3.807e-06/0.2576, allocations: 0 / 1.169 GB, free: 4.684 MB / 0.92 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.00059/0.2582, allocations: 424.8 kB / 1.169 GB, free: 4.211 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/0.2583, allocations: 12.03 kB / 1.169 GB, free: 4.199 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.188e-05/0.2583, allocations: 30.75 kB / 1.169 GB, free: 4.16 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.933e-05/0.2583, allocations: 12.89 kB / 1.169 GB, free: 4.148 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001197/0.2585, allocations: 187.5 kB / 1.169 GB, free: 3.93 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.165e-05/0.2585, allocations: 384 / 1.169 GB, free: 3.93 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.216e-05/0.2585, allocations: 12.31 kB / 1.169 GB, free: 3.918 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002436/0.2588, allocations: 74.2 kB / 1.169 GB, free: 3.84 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.2588, allocations: 3.938 kB / 1.169 GB, free: 3.836 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.125e-06/0.2588, allocations: 0 / 1.169 GB, free: 3.836 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.2588, allocations: 4 kB / 1.169 GB, free: 3.832 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002994/0.2591, allocations: 75.91 kB / 1.17 GB, free: 3.758 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004037/0.2595, allocations: 328.7 kB / 1.17 GB, free: 3.387 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001797/0.2597, allocations: 50.48 kB / 1.17 GB, free: 3.328 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001575/0.2599, allocations: 48.91 kB / 1.17 GB, free: 3.277 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.741e-05/0.2599, allocations: 0 / 1.17 GB, free: 3.277 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002629/0.2602, allocations: 95.34 kB / 1.17 GB, free: 3.172 MB / 0.92 GB Notification: Performance of pre-optimization done (n=6): time 1.243e-06/0.2602, allocations: 0 / 1.17 GB, free: 3.172 MB / 0.92 GB Notification: Performance of matching and sorting (n=6): time 0.0005719/0.2607, allocations: 173.5 kB / 1.17 GB, free: 2.996 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.153e-05/0.2608, allocations: 51.41 kB / 1.17 GB, free: 2.934 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.341e-05/0.2609, allocations: 126 kB / 1.17 GB, free: 2.801 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.2609, allocations: 29.7 kB / 1.17 GB, free: 2.766 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.995e-05/0.261, allocations: 96.09 kB / 1.171 GB, free: 2.668 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.674e-05/0.261, allocations: 11.89 kB / 1.171 GB, free: 2.656 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.655e-05/0.2611, allocations: 41.7 kB / 1.171 GB, free: 2.609 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001167/0.2612, allocations: 314.8 kB / 1.171 GB, free: 2.293 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002119/0.2614, allocations: 63.94 kB / 1.171 GB, free: 2.23 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002211/0.2617, allocations: 82.45 kB / 1.171 GB, free: 2.141 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003574/0.262, allocations: 148.2 kB / 1.171 GB, free: 1.98 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.262, allocations: 4 kB / 1.171 GB, free: 1.977 MB / 0.92 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005148/0.2626, allocations: 215.2 kB / 1.171 GB, free: 1.754 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.349e-05/0.2626, allocations: 35.58 kB / 1.171 GB, free: 1.715 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.2626, allocations: 3.984 kB / 1.171 GB, free: 1.711 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.828e-06/0.2626, allocations: 3.938 kB / 1.171 GB, free: 1.707 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00012/0.2627, allocations: 15.98 kB / 1.171 GB, free: 1.691 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.2628, allocations: 0 / 1.171 GB, free: 1.691 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002224/0.263, allocations: 44.02 kB / 1.171 GB, free: 1.648 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.12e-05/0.263, allocations: 7.984 kB / 1.171 GB, free: 1.641 MB / 0.92 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 9.328e-05/0.2631, allocations: 125.7 kB / 1.172 GB, free: 1.508 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.293e-05/0.2631, allocations: 3.953 kB / 1.172 GB, free: 1.504 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.205e-05/0.2632, allocations: 16.36 kB / 1.172 GB, free: 1.488 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.2632, allocations: 0 / 1.172 GB, free: 1.488 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.2632, allocations: 0 / 1.172 GB, free: 1.488 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.2632, allocations: 0 / 1.172 GB, free: 1.488 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001481/0.2633, allocations: 193.5 kB / 1.172 GB, free: 1.25 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.2633, allocations: 4 kB / 1.172 GB, free: 1.246 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.642e-05/0.2634, allocations: 11.98 kB / 1.172 GB, free: 1.234 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.2635, allocations: 0 / 1.172 GB, free: 1.234 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.2635, allocations: 4 kB / 1.172 GB, free: 1.23 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.2635, allocations: 0 / 1.172 GB, free: 1.23 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.2635, allocations: 0 / 1.172 GB, free: 1.23 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003935/0.2639, allocations: 160.9 kB / 1.172 GB, free: 1.055 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.474e-05/0.2639, allocations: 85.05 kB / 1.172 GB, free: 0.9531 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.673e-05/0.264, allocations: 4.375 kB / 1.172 GB, free: 0.9492 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.049e-05/0.264, allocations: 7.984 kB / 1.172 GB, free: 0.9414 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.301e-05/0.2641, allocations: 7.984 kB / 1.172 GB, free: 0.9336 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.264e-05/0.2641, allocations: 12 kB / 1.172 GB, free: 0.9219 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.702e-05/0.2642, allocations: 95.27 kB / 1.172 GB, free: 0.8281 MB / 0.92 GB Notification: Performance of sort global known variables: time 1e-07/0.2642, allocations: 0 / 1.172 GB, free: 0.8281 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002045/0.2644, allocations: 20 kB / 1.172 GB, free: 0.8086 MB / 0.92 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.0007032/0.2651, allocations: 0.6965 MB / 1.173 GB, free: 88 kB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0004742/0.2656, allocations: 183.3 kB / 1.173 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2656, allocations: 0 / 1.173 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001769/0.2658, allocations: 51.89 kB / 1.173 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001925/0.266, allocations: 28.2 kB / 1.173 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002118/0.2681, allocations: 1.633 MB / 1.175 GB, free: 14.08 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000272/0.2684, allocations: 0.6962 MB / 1.175 GB, free: 13.36 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.387e-05/0.2684, allocations: 8 kB / 1.175 GB, free: 13.35 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.383e-05/0.2685, allocations: 19.42 kB / 1.175 GB, free: 13.33 MB / 0.9356 GB Notification: Performance of SimCode: time 2.6e-07/0.2685, allocations: 4 kB / 1.175 GB, free: 13.33 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.569/2.837, allocations: 2.67 MB / 1.178 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.22/17.05, allocations: 3.953 kB / 1.178 GB, free: 10.75 MB / 0.9356 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=400 --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