Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.412/1.412, allocations: 249.3 MB / 261.8 MB, free: 5.859 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001018/0.001019, allocations: 178.5 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.428/1.428, allocations: 205.2 MB / 0.572 GB, free: 10.69 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000844/0.0008439, allocations: 90.47 kB / 0.6764 GB, free: 15.67 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.087e-05/3.089e-05, allocations: 4 kB / 0.788 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2026/0.2026, allocations: 106.3 MB / 0.8918 GB, free: 6.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7258/0.9286, allocations: 131.4 MB / 1.02 GB, free: 3.348 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/0.9288, allocations: 75.81 kB / 1.02 GB, free: 3.305 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003221/0.9321, allocations: 1.166 MB / 1.021 GB, free: 2.246 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.513e-06/0.9321, allocations: 0 / 1.021 GB, free: 2.246 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.732e-06/0.9321, allocations: 0 / 1.021 GB, free: 2.246 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004877/0.9326, allocations: 389.8 kB / 1.022 GB, free: 1.828 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.9326, allocations: 8.031 kB / 1.022 GB, free: 1.82 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.672e-05/0.9327, allocations: 4 kB / 1.022 GB, free: 1.816 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001502/0.9328, allocations: 178.9 kB / 1.022 GB, free: 1.602 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.758e-05/0.9329, allocations: 7.125 kB / 1.022 GB, free: 1.598 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.567e-05/0.9329, allocations: 4 kB / 1.022 GB, free: 1.594 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001442/0.933, allocations: 64.94 kB / 1.022 GB, free: 1.535 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.933, allocations: 0 / 1.022 GB, free: 1.535 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.9331, allocations: 3.984 kB / 1.022 GB, free: 1.531 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.9331, allocations: 4 kB / 1.022 GB, free: 1.527 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.676e-05/0.9332, allocations: 29.69 kB / 1.022 GB, free: 1.508 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004705/0.9337, allocations: 308.5 kB / 1.022 GB, free: 1.18 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001011/0.9338, allocations: 51.92 kB / 1.022 GB, free: 1.133 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.145e-05/0.9338, allocations: 20.05 kB / 1.022 GB, free: 1.117 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.856e-05/0.9339, allocations: 14.88 kB / 1.022 GB, free: 1.105 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001458/0.934, allocations: 85.56 kB / 1.022 GB, free: 1.02 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 1.492e-06/0.934, allocations: 0 / 1.022 GB, free: 1.02 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0002108/0.9342, allocations: 88.67 kB / 1.023 GB, free: 0.9375 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.808e-05/0.9343, allocations: 59.36 kB / 1.023 GB, free: 0.8672 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.688e-05/0.9344, allocations: 120.4 kB / 1.023 GB, free: 0.7539 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.9344, allocations: 29.64 kB / 1.023 GB, free: 0.7227 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.509e-05/0.9345, allocations: 91.77 kB / 1.023 GB, free: 0.6328 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.572e-05/0.9345, allocations: 23.27 kB / 1.023 GB, free: 0.6133 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.971e-06/0.9345, allocations: 3.438 kB / 1.023 GB, free: 0.6133 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001346/0.9347, allocations: 318.7 kB / 1.023 GB, free: 304 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.756e-05/0.9347, allocations: 15.75 kB / 1.023 GB, free: 292 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.869e-05/0.9348, allocations: 49.8 kB / 1.023 GB, free: 240 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.134e-05/0.9348, allocations: 19.5 kB / 1.023 GB, free: 224 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.9348, allocations: 96 / 1.023 GB, free: 224 kB / 0.6355 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001408/0.935, allocations: 106.8 kB / 1.023 GB, free: 128 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.935, allocations: 9.875 kB / 1.023 GB, free: 120 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.935, allocations: 0 / 1.023 GB, free: 120 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.935, allocations: 0 / 1.023 GB, free: 120 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.782e-05/0.9351, allocations: 11.94 kB / 1.023 GB, free: 108 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.9351, allocations: 0 / 1.023 GB, free: 108 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000124/0.9353, allocations: 35.39 kB / 1.023 GB, free: 76 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-06/0.9353, allocations: 7.938 kB / 1.023 GB, free: 68 kB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,booPul2.y,$PRE.booPul2.pulseStart,booPul2.pulseStart,booPul3.y,$PRE.booPul3.pulseStart,booPul3.pulseStart,logicalSwitch.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.884e-05/0.9354, allocations: 116.8 kB / 1.024 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.534e-05/0.9354, allocations: 7.906 kB / 1.024 GB, free: 15.94 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.993e-05/0.9354, allocations: 11 kB / 1.024 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.9355, allocations: 4 kB / 1.024 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.9355, allocations: 4 kB / 1.024 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.9355, allocations: 3.984 kB / 1.024 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001597/0.9356, allocations: 192.1 kB / 1.024 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.9357, allocations: 0 / 1.024 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.34e-05/0.9357, allocations: 3.984 kB / 1.024 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.768e-06/0.9357, allocations: 4 kB / 1.024 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.9357, allocations: 3.375 kB / 1.024 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.9357, allocations: 0 / 1.024 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.9357, allocations: 0 / 1.024 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001546/0.9359, allocations: 126.7 kB / 1.024 GB, free: 15.56 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.253e-05/0.9359, allocations: 84.52 kB / 1.024 GB, free: 15.46 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.858e-05/0.9359, allocations: 4 kB / 1.024 GB, free: 15.46 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.9361, allocations: 19.97 kB / 1.024 GB, free: 15.44 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.664e-05/0.9361, allocations: 15.42 kB / 1.024 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.061e-06/0.9361, allocations: 0 / 1.024 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.779e-05/0.9362, allocations: 103.2 kB / 1.024 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.51e-07/0.9362, allocations: 192 / 1.024 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0001832/0.9364, allocations: 19.62 kB / 1.024 GB, free: 15.32 MB / 0.6511 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 ($whenCondition3,$whenCondition2,$whenCondition1,booPul1.y,booPul1.pulseStart,booPul2.y,booPul2.pulseStart,booPul3.y,booPul3.pulseStart,logicalSwitch.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000135/0.9365, allocations: 103.2 kB / 1.024 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001469/0.9367, allocations: 68.23 kB / 1.024 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.9367, allocations: 0 / 1.024 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 6.648e-05/0.9368, allocations: 30.5 kB / 1.024 GB, free: 15.13 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002298/0.937, allocations: 26.12 kB / 1.024 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002783/0.9373, allocations: 124.2 kB / 1.024 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002494/0.9376, allocations: 0.6926 MB / 1.025 GB, free: 14.27 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.708e-05/0.9376, allocations: 8.562 kB / 1.025 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.47e-05/0.9376, allocations: 19.06 kB / 1.025 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of SimCode: time 3.4e-07/0.9377, allocations: 0 / 1.025 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of Templates: time 0.003354/0.941, allocations: 1.053 MB / 1.026 GB, free: 13.2 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Logical_Validation_LogicalSwitch.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches