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) 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.1.0-maint.11.x/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00461/0.00461, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.00136/0.00136, allocations: 200.9 kB / 16.68 MB, free: 5.969 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.303/1.303, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.533/2.533, allocations: 469.8 MB / 0.7425 GB, free: 7.324 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001753/0.001753, allocations: 67.88 kB / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2555, allocations: 159.1 MB / 1.22 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001703/0.2572, allocations: 0.7937 MB / 1.221 GB, free: 13.48 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001365/0.2586, allocations: 1.151 MB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.537e-05/0.2586, allocations: 0 / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.932e-05/0.2587, allocations: 7.922 kB / 1.222 GB, free: 12.31 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.706e-05/0.2587, allocations: 15.86 kB / 1.222 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004049/0.2591, allocations: 135.6 kB / 1.222 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001744/0.2593, allocations: 131.7 kB / 1.222 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 7.599e-05/0.2594, allocations: 19.94 kB / 1.222 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.332e-05/0.2595, allocations: 51.89 kB / 1.222 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 9.435e-05/0.2596, allocations: 55.81 kB / 1.223 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.606e-05/0.2596, allocations: 12 kB / 1.223 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.33e-05/0.2597, allocations: 19.98 kB / 1.223 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.179e-05/0.2597, allocations: 19.92 kB / 1.223 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.103e-05/0.2598, allocations: 43.84 kB / 1.223 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001671/0.26, allocations: 119.6 kB / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.26, allocations: 0 / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.032e-06/0.26, allocations: 0 / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.516e-06/0.26, allocations: 4 kB / 1.223 GB, free: 11.7 MB / 0.9825 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.0006045/0.2606, allocations: 420.9 kB / 1.223 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.114e-05/0.2606, allocations: 12.03 kB / 1.223 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.339e-05/0.2607, allocations: 34.69 kB / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.613e-05/0.2607, allocations: 12.89 kB / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001135/0.2608, allocations: 180.2 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.662e-05/0.2609, allocations: 12.31 kB / 1.223 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.619e-05/0.2609, allocations: 8.375 kB / 1.223 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002363/0.2611, allocations: 74.2 kB / 1.223 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.256e-06/0.2612, allocations: 3.938 kB / 1.223 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.604e-06/0.2612, allocations: 0 / 1.223 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.2612, allocations: 3.984 kB / 1.223 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003033/0.2615, allocations: 79.86 kB / 1.224 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004047/0.2619, allocations: 324.7 kB / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001849/0.2621, allocations: 54.55 kB / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.2623, allocations: 48.91 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.729e-05/0.2623, allocations: 0 / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002605/0.2626, allocations: 99.23 kB / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 3.056e-06/0.2626, allocations: 0 / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0005643/0.2631, allocations: 165.7 kB / 1.224 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.404e-05/0.2632, allocations: 51.41 kB / 1.224 GB, free: 9.945 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.947e-05/0.2633, allocations: 137.6 kB / 1.224 GB, free: 9.801 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.264e-05/0.2633, allocations: 29.7 kB / 1.224 GB, free: 9.766 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.474e-05/0.2634, allocations: 88.14 kB / 1.224 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.989e-05/0.2634, allocations: 23.91 kB / 1.225 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.867e-05/0.2635, allocations: 37.69 kB / 1.225 GB, free: 9.609 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001305/0.2636, allocations: 318.8 kB / 1.225 GB, free: 9.289 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002213/0.2639, allocations: 63.88 kB / 1.225 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002217/0.2641, allocations: 90.58 kB / 1.225 GB, free: 9.129 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000369/0.2645, allocations: 140.3 kB / 1.225 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2645, allocations: 0 / 1.225 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005207/0.265, allocations: 219.2 kB / 1.225 GB, free: 8.75 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.026e-05/0.265, allocations: 29.7 kB / 1.225 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.2651, allocations: 4 kB / 1.225 GB, free: 8.711 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.666e-06/0.2651, allocations: 3.938 kB / 1.225 GB, free: 8.707 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.2652, allocations: 19.97 kB / 1.225 GB, free: 8.688 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.988e-06/0.2652, allocations: 0 / 1.225 GB, free: 8.688 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002216/0.2654, allocations: 47.97 kB / 1.225 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.944e-05/0.2654, allocations: 4 kB / 1.225 GB, free: 8.637 MB / 0.9825 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.716e-05/0.2655, allocations: 127.1 kB / 1.226 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.086e-05/0.2656, allocations: 0 / 1.226 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.483e-05/0.2656, allocations: 12.38 kB / 1.226 GB, free: 8.488 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.2656, allocations: 0 / 1.226 GB, free: 8.488 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.2656, allocations: 0 / 1.226 GB, free: 8.488 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.2656, allocations: 4.094 kB / 1.226 GB, free: 8.484 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000148/0.2658, allocations: 193.4 kB / 1.226 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.2658, allocations: 0 / 1.226 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001003/0.2659, allocations: 19.98 kB / 1.226 GB, free: 8.227 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-06/0.2659, allocations: 3.938 kB / 1.226 GB, free: 8.223 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.2659, allocations: 4 kB / 1.226 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2659, allocations: 0 / 1.226 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.2659, allocations: 0 / 1.226 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003905/0.2663, allocations: 149 kB / 1.226 GB, free: 8.055 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.278e-05/0.2664, allocations: 81.06 kB / 1.226 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.072e-05/0.2664, allocations: 11.98 kB / 1.226 GB, free: 7.945 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.813e-05/0.2665, allocations: 11.92 kB / 1.226 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.95e-05/0.2665, allocations: 4 kB / 1.226 GB, free: 7.93 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-06/0.2665, allocations: 4.109 kB / 1.226 GB, free: 7.926 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.046e-05/0.2666, allocations: 103.3 kB / 1.226 GB, free: 7.824 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2666, allocations: 0 / 1.226 GB, free: 7.824 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002068/0.2668, allocations: 23.94 kB / 1.226 GB, free: 7.801 MB / 0.9825 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.0007265/0.2675, allocations: 0.6987 MB / 1.227 GB, free: 7.074 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000474/0.268, allocations: 187.2 kB / 1.227 GB, free: 6.879 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.268, allocations: 0 / 1.227 GB, free: 6.879 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001774/0.2682, allocations: 52.08 kB / 1.227 GB, free: 6.828 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001876/0.2684, allocations: 19.92 kB / 1.227 GB, free: 6.809 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002146/0.2706, allocations: 1.637 MB / 1.229 GB, free: 5.07 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002862/0.2708, allocations: 0.6885 MB / 1.229 GB, free: 4.355 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.089e-05/0.2709, allocations: 4 kB / 1.229 GB, free: 4.352 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.623e-05/0.2709, allocations: 19.44 kB / 1.229 GB, free: 4.332 MB / 0.9825 GB Notification: Performance of SimCode: time 2e-07/0.2709, allocations: 0 / 1.229 GB, free: 4.332 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.764/6.035, allocations: 2.681 MB / 1.232 GB, free: 1.754 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.33/22.37, allocations: 8.688 kB / 1.232 GB, free: 1.75 MB / 0.9825 GB (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) 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) Reference file matches