Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001483/0.001483, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001778/0.001778, allocations: 192.5 kB / 16.14 MB, free: 6.711 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.41/1.41, allocations: 222.9 MB / 239.8 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.769/2.769, allocations: 461.9 MB / 0.7342 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.001239, allocations: 69.34 kB / 0.8984 GB, free: 37.17 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3096/0.3108, allocations: 157.4 MB / 1.052 GB, free: 8.793 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002116/0.313, allocations: 0.8467 MB / 1.053 GB, free: 7.945 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00142/0.3144, allocations: 1.174 MB / 1.054 GB, free: 6.758 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.073e-05/0.3145, allocations: 4 kB / 1.054 GB, free: 6.754 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.512e-05/0.3145, allocations: 3.938 kB / 1.054 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.093e-05/0.3146, allocations: 3.938 kB / 1.054 GB, free: 6.746 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004482/0.3151, allocations: 118.9 kB / 1.054 GB, free: 6.633 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001475/0.3152, allocations: 115.7 kB / 1.054 GB, free: 6.52 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.3154, allocations: 19.98 kB / 1.054 GB, free: 6.5 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001028/0.3155, allocations: 51.84 kB / 1.054 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.445e-05/0.3156, allocations: 43.81 kB / 1.054 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.647e-05/0.3156, allocations: 8 kB / 1.054 GB, free: 6.398 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.919e-05/0.3157, allocations: 23.97 kB / 1.054 GB, free: 6.375 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.612e-05/0.3157, allocations: 4 kB / 1.054 GB, free: 6.371 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.823e-05/0.3158, allocations: 43.84 kB / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002053/0.316, allocations: 115.7 kB / 1.055 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.316, allocations: 0 / 1.055 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3161, allocations: 0 / 1.055 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.593e-06/0.3161, allocations: 0 / 1.055 GB, free: 6.215 MB / 0.8106 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.0007924/0.3169, allocations: 433.1 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.3169, allocations: 8.031 kB / 1.055 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.17e-05/0.317, allocations: 12.84 kB / 1.055 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001649/0.3172, allocations: 172.3 kB / 1.055 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.169e-05/0.3172, allocations: 16.36 kB / 1.055 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.824e-05/0.3172, allocations: 4.375 kB / 1.055 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002818/0.3175, allocations: 78.14 kB / 1.055 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.647e-06/0.3175, allocations: 192 / 1.055 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.162e-05/0.3175, allocations: 3.938 kB / 1.055 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.279e-06/0.3176, allocations: 7.938 kB / 1.055 GB, free: 5.395 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003093/0.3179, allocations: 75.91 kB / 1.055 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005067/0.3184, allocations: 328.7 kB / 1.056 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002631/0.3187, allocations: 54.47 kB / 1.056 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001652/0.3188, allocations: 48.91 kB / 1.056 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.926e-05/0.3189, allocations: 4 kB / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003334/0.3192, allocations: 91.34 kB / 1.056 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.232e-06/0.3192, allocations: 0 / 1.056 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0006623/0.3199, allocations: 165.4 kB / 1.056 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.909e-05/0.3199, allocations: 55.41 kB / 1.056 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.3201, allocations: 126.1 kB / 1.056 GB, free: 4.359 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.775e-05/0.3201, allocations: 29.69 kB / 1.056 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.271e-05/0.3202, allocations: 92.12 kB / 1.056 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.606e-05/0.3202, allocations: 27.73 kB / 1.056 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.832e-05/0.3203, allocations: 29.7 kB / 1.056 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001369/0.3204, allocations: 326.8 kB / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002126/0.3206, allocations: 59.94 kB / 1.057 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002131/0.3209, allocations: 74.53 kB / 1.057 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003713/0.3212, allocations: 156.2 kB / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.3213, allocations: 0 / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005154/0.3218, allocations: 207.2 kB / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001377/0.3219, allocations: 39.11 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.3219, allocations: 0 / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.322, allocations: 0 / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/0.3221, allocations: 19.97 kB / 1.057 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.3221, allocations: 0 / 1.057 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002398/0.3224, allocations: 47.92 kB / 1.057 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.285e-05/0.3224, allocations: 4.406 kB / 1.057 GB, free: 3.203 MB / 0.8106 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 0.0001111/0.3225, allocations: 135.2 kB / 1.057 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.641e-05/0.3225, allocations: 7.906 kB / 1.057 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.386e-05/0.3226, allocations: 8.375 kB / 1.057 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.3226, allocations: 0 / 1.057 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.3226, allocations: 4 kB / 1.057 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.3226, allocations: 4 kB / 1.057 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000157/0.3228, allocations: 189.5 kB / 1.058 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.3228, allocations: 0 / 1.058 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001038/0.3229, allocations: 23.92 kB / 1.058 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.3229, allocations: 0 / 1.058 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.3229, allocations: 0 / 1.058 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3229, allocations: 0 / 1.058 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.3229, allocations: 0 / 1.058 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003815/0.3233, allocations: 152.9 kB / 1.058 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.394e-05/0.3234, allocations: 85.02 kB / 1.058 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.908e-05/0.3234, allocations: 7.984 kB / 1.058 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.455e-05/0.3235, allocations: 11.98 kB / 1.058 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.645e-05/0.3236, allocations: 3.984 kB / 1.058 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.797e-06/0.3236, allocations: 4 kB / 1.058 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.081e-05/0.3236, allocations: 98.39 kB / 1.058 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.3236, allocations: 0 / 1.058 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002438/0.3239, allocations: 24 kB / 1.058 GB, free: 2.363 MB / 0.8106 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.0002168/0.3241, allocations: 105.9 kB / 1.058 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005101/0.3246, allocations: 187.2 kB / 1.058 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3246, allocations: 4.125 kB / 1.058 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001733/0.3248, allocations: 47.95 kB / 1.058 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002312/0.3251, allocations: 19.92 kB / 1.058 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004374/0.3255, allocations: 179.7 kB / 1.059 GB, free: 1.785 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003273/0.3258, allocations: 0.6936 MB / 1.059 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.889e-05/0.3259, allocations: 3.938 kB / 1.059 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.067e-05/0.3259, allocations: 11.44 kB / 1.059 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.3259, allocations: 0 / 1.059 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of Templates: time 0.004054/0.33, allocations: 1.396 MB / 1.061 GB, free: 15.68 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches