Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00154/0.00154, allocations: 101.6 kB / 16.4 MB, free: 6.461 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.001651/0.001651, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.355/1.355, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.231/2.231, allocations: 390.3 MB / 0.6655 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0017/0.0017, allocations: 71.91 kB / 0.9516 GB, free: 7.609 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9901/0.9918, allocations: 140.4 MB / 1.089 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.00183/0.9937, allocations: 0.7886 MB / 1.089 GB, free: 5.008 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001384/0.9951, allocations: 1.138 MB / 1.091 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.838e-05/0.9952, allocations: 1.188 kB / 1.091 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.108e-05/0.9952, allocations: 4.734 kB / 1.091 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.859e-05/0.9953, allocations: 10.75 kB / 1.091 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004855/0.9958, allocations: 136.9 kB / 1.091 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002302/0.996, allocations: 135.6 kB / 1.091 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.9961, allocations: 21.61 kB / 1.091 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001087/0.9963, allocations: 49.8 kB / 1.091 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001153/0.9964, allocations: 57.34 kB / 1.091 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.127e-05/0.9964, allocations: 11.06 kB / 1.091 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.223e-05/0.9965, allocations: 25.22 kB / 1.091 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.631e-05/0.9965, allocations: 8.906 kB / 1.091 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.394e-05/0.9966, allocations: 44.75 kB / 1.091 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002248/0.9969, allocations: 123.4 kB / 1.091 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.9969, allocations: 1.828 kB / 1.091 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.413e-06/0.9969, allocations: 0 / 1.091 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.9969, allocations: 4 kB / 1.091 GB, free: 3.891 MB / 0.8575 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.0006397/0.9975, allocations: 417.5 kB / 1.092 GB, free: 3.488 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.9976, allocations: 14.06 kB / 1.092 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.598e-05/0.9976, allocations: 10.53 kB / 1.092 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/0.9977, allocations: 176.7 kB / 1.092 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/0.9978, allocations: 9.172 kB / 1.092 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.994e-05/0.9978, allocations: 5.656 kB / 1.092 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002727/0.9981, allocations: 79.05 kB / 1.092 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.9981, allocations: 1.188 kB / 1.092 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/0.9981, allocations: 4.641 kB / 1.092 GB, free: 3.223 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.9981, allocations: 1.188 kB / 1.092 GB, free: 3.223 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003234/0.9985, allocations: 69.95 kB / 1.092 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004468/0.9989, allocations: 335.7 kB / 1.092 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002016/0.9991, allocations: 50.33 kB / 1.092 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001748/0.9993, allocations: 44.73 kB / 1.092 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.128e-05/0.9993, allocations: 0.6875 kB / 1.092 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003181/0.9997, allocations: 103 kB / 1.092 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.664e-06/0.9997, allocations: 0.875 kB / 1.092 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0006956/1, allocations: 166.3 kB / 1.093 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.646e-05/1, allocations: 53.12 kB / 1.093 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001185/1.001, allocations: 124.4 kB / 1.093 GB, free: 2.559 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.132e-05/1.001, allocations: 28.56 kB / 1.093 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.714e-05/1.001, allocations: 98.33 kB / 1.093 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.04e-05/1.001, allocations: 11.09 kB / 1.093 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.852e-05/1.001, allocations: 35.28 kB / 1.093 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.086e-05/1.001, allocations: 319.1 kB / 1.093 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002342/1.001, allocations: 66.02 kB / 1.093 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002345/1.001, allocations: 81 kB / 1.093 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003847/1.002, allocations: 142.7 kB / 1.093 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/1.002, allocations: 1.156 kB / 1.093 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005624/1.002, allocations: 213.6 kB / 1.094 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.726e-05/1.002, allocations: 40.03 kB / 1.094 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/1.002, allocations: 1.422 kB / 1.094 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/1.002, allocations: 1.156 kB / 1.094 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/1.003, allocations: 20.02 kB / 1.094 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/1.003, allocations: 5.453 kB / 1.094 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002729/1.003, allocations: 39.81 kB / 1.094 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.565e-05/1.003, allocations: 6.203 kB / 1.094 GB, free: 1.793 MB / 0.8575 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.918e-05/1.003, allocations: 132.3 kB / 1.094 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.684e-05/1.003, allocations: 7.797 kB / 1.094 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.973e-05/1.003, allocations: 10.7 kB / 1.094 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/1.003, allocations: 0.7188 kB / 1.094 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/1.003, allocations: 0.7812 kB / 1.094 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/1.003, allocations: 4.781 kB / 1.094 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001193/1.003, allocations: 187.5 kB / 1.094 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/1.003, allocations: 1.547 kB / 1.094 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001097/1.003, allocations: 19.91 kB / 1.094 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/1.003, allocations: 0.5625 kB / 1.094 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.1e-05/1.003, allocations: 1.422 kB / 1.094 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/1.003, allocations: 1 kB / 1.094 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/1.003, allocations: 0 / 1.094 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004053/1.004, allocations: 156.5 kB / 1.094 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.282e-05/1.004, allocations: 83.72 kB / 1.094 GB, free: 1.242 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.983e-05/1.004, allocations: 5.516 kB / 1.094 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.918e-05/1.004, allocations: 12.81 kB / 1.094 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.685e-05/1.004, allocations: 4.828 kB / 1.094 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.288e-06/1.004, allocations: 7.266 kB / 1.094 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.354e-05/1.004, allocations: 95.34 kB / 1.095 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/1.004, allocations: 0 / 1.095 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002333/1.004, allocations: 24.91 kB / 1.095 GB, free: 1.152 MB / 0.8575 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.0001979/1.004, allocations: 112.1 kB / 1.095 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005285/1.005, allocations: 184.2 kB / 1.095 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/1.005, allocations: 1.094 kB / 1.095 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001959/1.005, allocations: 55.56 kB / 1.095 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002361/1.005, allocations: 17.42 kB / 1.095 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003334/1.006, allocations: 183.9 kB / 1.095 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001206/1.006, allocations: 0.6915 MB / 1.096 GB, free: 76 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.668e-05/1.006, allocations: 11.69 kB / 1.096 GB, free: 68 kB / 0.8575 GB Notification: Performance of SimCode: time 2.41e-07/1.006, allocations: 4 kB / 1.096 GB, free: 64 kB / 0.8575 GB Notification: Performance of Templates: time 0.003689/1.01, allocations: 1.312 MB / 1.097 GB, free: 15.95 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches