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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001064/0.001064, allocations: 91.3 kB / 15.36 MB, free: 0.7383 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.009375/0.009375, allocations: 171.8 kB / 16.26 MB, free: 6.613 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.338/1.338, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.439/2.439, allocations: 437.8 MB / 0.7121 GB, free: 6.992 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003345/0.0003346, allocations: 16 kB / 0.873 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6252/0.6255, allocations: 153.8 MB / 1.023 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.000991/0.6266, allocations: 0.5104 MB / 1.024 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001546/0.6281, allocations: 1.152 MB / 1.025 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.774e-05/0.6282, allocations: 4 kB / 1.025 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.714e-05/0.6283, allocations: 3.938 kB / 1.025 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 9.207e-05/0.6284, allocations: 7.922 kB / 1.025 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005189/0.6289, allocations: 122.6 kB / 1.025 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001633/0.6291, allocations: 119.7 kB / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.6292, allocations: 15.98 kB / 1.025 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001355/0.6293, allocations: 47.89 kB / 1.025 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001029/0.6294, allocations: 43.81 kB / 1.025 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.047e-05/0.6295, allocations: 4 kB / 1.025 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.263e-05/0.6296, allocations: 19.98 kB / 1.025 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.486e-05/0.6296, allocations: 11.88 kB / 1.025 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.471e-05/0.6297, allocations: 65.55 kB / 1.025 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001861/0.6299, allocations: 117.9 kB / 1.025 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.6299, allocations: 4 kB / 1.025 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.643e-06/0.6299, allocations: 0 / 1.025 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.6299, allocations: 4 kB / 1.025 GB, free: 13.58 MB / 0.7794 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.0006689/0.6306, allocations: 413 kB / 1.026 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.832e-05/0.6306, allocations: 8.031 kB / 1.026 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.877e-05/0.6307, allocations: 30.75 kB / 1.026 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.938e-05/0.6308, allocations: 12.84 kB / 1.026 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001298/0.6309, allocations: 184.2 kB / 1.026 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.6309, allocations: 384 / 1.026 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.606e-05/0.631, allocations: 12.38 kB / 1.026 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002969/0.6313, allocations: 82.2 kB / 1.026 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.928e-06/0.6313, allocations: 7.938 kB / 1.026 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.6313, allocations: 4 kB / 1.026 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.6313, allocations: 0 / 1.026 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003273/0.6317, allocations: 87.92 kB / 1.026 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004588/0.6321, allocations: 336.7 kB / 1.026 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002026/0.6323, allocations: 70.55 kB / 1.027 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001674/0.6325, allocations: 52.91 kB / 1.027 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.819e-05/0.6325, allocations: 8 kB / 1.027 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003057/0.6329, allocations: 107.2 kB / 1.027 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.663e-06/0.6329, allocations: 0 / 1.027 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.000637/0.6335, allocations: 193.8 kB / 1.027 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.57e-05/0.6336, allocations: 51.41 kB / 1.027 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.6337, allocations: 134.8 kB / 1.027 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.037e-05/0.6337, allocations: 33.7 kB / 1.027 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.167e-05/0.6338, allocations: 88.14 kB / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.363e-05/0.6338, allocations: 19.73 kB / 1.027 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.481e-05/0.6339, allocations: 25.72 kB / 1.027 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001303/0.634, allocations: 318.8 kB / 1.028 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002385/0.6343, allocations: 71.95 kB / 1.028 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002301/0.6345, allocations: 94.45 kB / 1.028 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004033/0.6349, allocations: 160.2 kB / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.635, allocations: 0 / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005557/0.6355, allocations: 239.3 kB / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.997e-05/0.6356, allocations: 37.69 kB / 1.028 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.6356, allocations: 4.094 kB / 1.028 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.6356, allocations: 7.938 kB / 1.028 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001347/0.6357, allocations: 23.92 kB / 1.028 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.6358, allocations: 0 / 1.028 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002567/0.636, allocations: 59.94 kB / 1.028 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.014e-05/0.636, allocations: 4 kB / 1.028 GB, free: 10.38 MB / 0.7794 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.229e-05/0.6361, allocations: 126.2 kB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.656e-05/0.6362, allocations: 11.91 kB / 1.028 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.766e-05/0.6362, allocations: 12.36 kB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.6362, allocations: 0 / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.6362, allocations: 0 / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.6362, allocations: 0 / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001261/0.6364, allocations: 189.6 kB / 1.029 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.6364, allocations: 0 / 1.029 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001053/0.6365, allocations: 23.97 kB / 1.029 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.6365, allocations: 4 kB / 1.029 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-06/0.6365, allocations: 0 / 1.029 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.6365, allocations: 0 / 1.029 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.6365, allocations: 3.938 kB / 1.029 GB, free: 9.961 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003952/0.6369, allocations: 176.9 kB / 1.029 GB, free: 9.77 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.362e-05/0.637, allocations: 89.02 kB / 1.029 GB, free: 9.664 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.558e-05/0.637, allocations: 0 / 1.029 GB, free: 9.664 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.838e-05/0.6371, allocations: 19.98 kB / 1.029 GB, free: 9.645 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.908e-05/0.6371, allocations: 7.984 kB / 1.029 GB, free: 9.637 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.982e-06/0.6371, allocations: 0 / 1.029 GB, free: 9.637 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.392e-05/0.6372, allocations: 102.4 kB / 1.029 GB, free: 9.539 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.383e-06/0.6372, allocations: 0 / 1.029 GB, free: 9.539 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002191/0.6374, allocations: 23.94 kB / 1.029 GB, free: 9.516 MB / 0.7794 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.0007228/0.6381, allocations: 0.7216 MB / 1.03 GB, free: 8.766 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005188/0.6387, allocations: 215.2 kB / 1.03 GB, free: 8.543 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.6387, allocations: 0 / 1.03 GB, free: 8.543 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001851/0.6389, allocations: 51.97 kB / 1.03 GB, free: 8.492 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002158/0.6391, allocations: 20.11 kB / 1.03 GB, free: 8.473 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00213/0.6412, allocations: 1.692 MB / 1.032 GB, free: 6.684 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002162/0.6415, allocations: 0.6887 MB / 1.032 GB, free: 5.969 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.798e-05/0.6415, allocations: 4 kB / 1.032 GB, free: 5.965 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.552e-05/0.6416, allocations: 19.42 kB / 1.032 GB, free: 5.945 MB / 0.7794 GB Notification: Performance of SimCode: time 2.7e-07/0.6416, allocations: 4 kB / 1.032 GB, free: 5.941 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01165/0.6532, allocations: 2.307 MB / 1.035 GB, free: 3.766 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001838/0.6534, allocations: 209.3 kB / 1.035 GB, free: 3.504 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.7/2.354, allocations: 0 / 1.035 GB, free: 3.504 MB / 0.7794 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=50 --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