Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001836/0.001836, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002019/0.002019, allocations: 192.8 kB / 16.25 MB, free: 6.637 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.637/1.637, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 3.039/3.039, allocations: 437 MB / 0.7101 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002088/0.002088, allocations: 67.89 kB / 0.8688 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7198/0.7219, allocations: 151.6 MB / 1.017 GB, free: 2.734 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002297/0.7242, allocations: 0.7731 MB / 1.018 GB, free: 1.961 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001927/0.7262, allocations: 1.253 MB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.327e-05/0.7262, allocations: 0 / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.259e-05/0.7263, allocations: 3.938 kB / 1.019 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.124e-05/0.7264, allocations: 15.92 kB / 1.019 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008719/0.7273, allocations: 287.7 kB / 1.019 GB, free: 408 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0003446/0.7276, allocations: 275.5 kB / 1.019 GB, free: 132 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.7278, allocations: 20.16 kB / 1.019 GB, free: 108 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001472/0.7279, allocations: 99.86 kB / 1.019 GB, free: 8 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001479/0.7281, allocations: 71.91 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.726e-05/0.7281, allocations: 24 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.788e-05/0.7282, allocations: 39.97 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.954e-05/0.7283, allocations: 15.92 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.7284, allocations: 87.8 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003143/0.7287, allocations: 221.3 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.7288, allocations: 3.938 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.304e-06/0.7288, allocations: 0 / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.741e-06/0.7288, allocations: 0 / 1.02 GB, free: 15.55 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.0007439/0.7295, allocations: 492.2 kB / 1.02 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.7296, allocations: 12.03 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.16e-05/0.7297, allocations: 12.84 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001662/0.7298, allocations: 176.2 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.203e-05/0.7299, allocations: 16.38 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.68e-05/0.7299, allocations: 12.38 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001504/0.7301, allocations: 58.22 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.7301, allocations: 7.938 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.7301, allocations: 0 / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.7301, allocations: 0 / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.94e-05/0.7302, allocations: 23.92 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006604/0.7309, allocations: 416.5 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 7.663e-05/0.7309, allocations: 30.58 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.371e-05/0.731, allocations: 24.92 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.388e-05/0.731, allocations: 7.938 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001864/0.7312, allocations: 99.28 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.323e-06/0.7312, allocations: 0 / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0003394/0.7316, allocations: 141.5 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.854e-05/0.7316, allocations: 59.41 kB / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001557/0.7318, allocations: 139.9 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.832e-05/0.7318, allocations: 29.7 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.7319, allocations: 108.1 kB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.453e-05/0.732, allocations: 15.81 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001313/0.7321, allocations: 65.67 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001856/0.7323, allocations: 326.8 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000222/0.7325, allocations: 87.95 kB / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002358/0.7328, allocations: 139.4 kB / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003182/0.7331, allocations: 232.8 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.7331, allocations: 0 / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006371/0.7338, allocations: 378.4 kB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001013/0.7339, allocations: 101.1 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.7339, allocations: 0 / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.7339, allocations: 8.188 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.762e-05/0.7339, allocations: 7.984 kB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.7339, allocations: 0 / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005192/0.7345, allocations: 79.75 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.727e-05/0.7345, allocations: 20.36 kB / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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.0001561/0.7347, allocations: 139.1 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.237e-05/0.7347, allocations: 11.91 kB / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.318e-05/0.7347, allocations: 12.31 kB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.7348, allocations: 3.938 kB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.7348, allocations: 0 / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.7348, allocations: 0 / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001911/0.735, allocations: 197.5 kB / 1.023 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.735, allocations: 0 / 1.023 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.007e-05/0.735, allocations: 4 kB / 1.023 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.735, allocations: 4 kB / 1.023 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.735, allocations: 4 kB / 1.023 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.735, allocations: 3.984 kB / 1.023 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.735, allocations: 0 / 1.023 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002195/0.7353, allocations: 140.9 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.719e-05/0.7353, allocations: 81.02 kB / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.036e-05/0.7354, allocations: 3.984 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.218e-05/0.7354, allocations: 4 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.006e-05/0.7354, allocations: 15.98 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.372e-05/0.7355, allocations: 8 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.338e-05/0.7355, allocations: 99.2 kB / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7356, allocations: 0 / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000279/0.7358, allocations: 40 kB / 1.024 GB, free: 11.11 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: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.000218/0.7361, allocations: 111.8 kB / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005946/0.7367, allocations: 370.1 kB / 1.024 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.7367, allocations: 0 / 1.024 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 6.913e-05/0.7367, allocations: 39.98 kB / 1.024 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002896/0.737, allocations: 31.23 kB / 1.024 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004524/0.7375, allocations: 211 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003727/0.7379, allocations: 0.6924 MB / 1.025 GB, free: 9.574 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.276e-05/0.7379, allocations: 4.438 kB / 1.025 GB, free: 9.57 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.124e-05/0.738, allocations: 19.42 kB / 1.025 GB, free: 9.551 MB / 0.7794 GB Notification: Performance of SimCode: time 3.2e-07/0.738, allocations: 4 kB / 1.025 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of Templates: time 0.007052/0.745, allocations: 2.604 MB / 1.028 GB, free: 6.973 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches