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.001627/0.001627, 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.00176/0.00176, allocations: 198.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.301/1.301, allocations: 222.9 MB / 240.2 MB, free: 4.383 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.625/2.625, allocations: 469.8 MB / 0.7424 GB, free: 7.41 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001834/0.001834, allocations: 74.61 kB / 0.9087 GB, free: 34.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2645, allocations: 159.2 MB / 1.064 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002164/0.2667, allocations: 0.7837 MB / 1.065 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001489/0.2682, allocations: 1.156 MB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.1e-05/0.2683, allocations: 0 / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.68e-05/0.2683, allocations: 3.938 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.9e-05/0.2684, allocations: 11.86 kB / 1.066 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004327/0.2688, allocations: 142.6 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001632/0.269, allocations: 123.8 kB / 1.066 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.964e-05/0.2691, allocations: 19.98 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.064e-05/0.2692, allocations: 55.77 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.253e-05/0.2693, allocations: 47.83 kB / 1.066 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.651e-05/0.2693, allocations: 12 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.071e-05/0.2694, allocations: 23.98 kB / 1.066 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.806e-05/0.2694, allocations: 19.91 kB / 1.066 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.698e-05/0.2695, allocations: 43.84 kB / 1.066 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001726/0.2697, allocations: 116 kB / 1.067 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.2697, allocations: 0 / 1.067 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.292e-06/0.2697, allocations: 4 kB / 1.067 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.729e-06/0.2697, allocations: 0 / 1.067 GB, free: 11.6 MB / 0.8262 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.000665/0.2704, allocations: 424.9 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.2704, allocations: 8.031 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.885e-05/0.2705, allocations: 34.75 kB / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.341e-05/0.2705, allocations: 12.83 kB / 1.067 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001487/0.2707, allocations: 185.3 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.646e-05/0.2707, allocations: 8.375 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.96e-05/0.2707, allocations: 8.375 kB / 1.067 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002496/0.271, allocations: 78.2 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.271, allocations: 3.938 kB / 1.067 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.586e-06/0.271, allocations: 0 / 1.067 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.226e-06/0.271, allocations: 0 / 1.067 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002971/0.2713, allocations: 75.92 kB / 1.067 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000448/0.2718, allocations: 328.7 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000185/0.272, allocations: 50.53 kB / 1.068 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001749/0.2722, allocations: 48.92 kB / 1.068 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.462e-05/0.2722, allocations: 0 / 1.068 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002697/0.2725, allocations: 95.34 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 3.076e-06/0.2725, allocations: 0 / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.00059/0.2731, allocations: 173.4 kB / 1.068 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.574e-05/0.2731, allocations: 55.41 kB / 1.068 GB, free: 9.84 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000113/0.2732, allocations: 123.9 kB / 1.068 GB, free: 9.707 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.653e-05/0.2733, allocations: 25.7 kB / 1.068 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.446e-05/0.2733, allocations: 96.03 kB / 1.068 GB, free: 9.578 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.349e-05/0.2734, allocations: 23.81 kB / 1.068 GB, free: 9.555 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.021e-05/0.2734, allocations: 33.7 kB / 1.068 GB, free: 9.516 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001511/0.2736, allocations: 326.8 kB / 1.069 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002136/0.2738, allocations: 59.95 kB / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002189/0.274, allocations: 78.52 kB / 1.069 GB, free: 9.043 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003856/0.2744, allocations: 148.1 kB / 1.069 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2745, allocations: 96 / 1.069 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005391/0.275, allocations: 219.1 kB / 1.069 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.755e-05/0.275, allocations: 37.69 kB / 1.069 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.2751, allocations: 0 / 1.069 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.2751, allocations: 4 kB / 1.069 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/0.2752, allocations: 11.98 kB / 1.069 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.523e-06/0.2752, allocations: 7.938 kB / 1.069 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002528/0.2755, allocations: 44 kB / 1.069 GB, free: 8.547 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.2755, allocations: 8 kB / 1.069 GB, free: 8.539 MB / 0.8262 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.725e-05/0.2756, allocations: 117.8 kB / 1.069 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.559e-05/0.2756, allocations: 7.906 kB / 1.069 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.781e-05/0.2757, allocations: 12.36 kB / 1.069 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.2757, allocations: 4 kB / 1.069 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.2757, allocations: 0 / 1.069 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.2757, allocations: 0 / 1.069 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000156/0.2758, allocations: 181.6 kB / 1.07 GB, free: 8.164 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.2758, allocations: 4 kB / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001025/0.276, allocations: 19.97 kB / 1.07 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.276, allocations: 0 / 1.07 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.276, allocations: 0 / 1.07 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.276, allocations: 80 / 1.07 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.276, allocations: 3.984 kB / 1.07 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004057/0.2764, allocations: 161.1 kB / 1.07 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.315e-05/0.2764, allocations: 81.11 kB / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.045e-05/0.2765, allocations: 4 kB / 1.07 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.2e-05/0.2766, allocations: 15.92 kB / 1.07 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.834e-05/0.2766, allocations: 7.984 kB / 1.07 GB, free: 7.836 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-06/0.2766, allocations: 0 / 1.07 GB, free: 7.836 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.221e-05/0.2767, allocations: 99.27 kB / 1.07 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2767, allocations: 4 kB / 1.07 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002148/0.2769, allocations: 27.91 kB / 1.07 GB, free: 7.707 MB / 0.8262 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.0007669/0.2777, allocations: 0.6943 MB / 1.071 GB, free: 6.984 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000493/0.2782, allocations: 187.3 kB / 1.071 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2782, allocations: 0 / 1.071 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001782/0.2784, allocations: 47.91 kB / 1.071 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000208/0.2786, allocations: 29.55 kB / 1.071 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002324/0.2809, allocations: 1.619 MB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003185/0.2813, allocations: 0.6924 MB / 1.073 GB, free: 4.277 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.779e-05/0.2813, allocations: 7.984 kB / 1.073 GB, free: 4.27 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.531e-05/0.2814, allocations: 19.44 kB / 1.073 GB, free: 4.25 MB / 0.8262 GB Notification: Performance of SimCode: time 3.01e-07/0.2814, allocations: 0 / 1.073 GB, free: 4.25 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5477/0.829, allocations: 2.639 MB / 1.076 GB, free: 1.691 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.138/9.967, allocations: 8.391 kB / 1.076 GB, free: 1.688 MB / 0.8262 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