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.544/1.544, allocations: 249.5 MB / 257 MB, free: 6.957 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.001114/0.001114, allocations: 180.8 kB / 316.3 MB, free: 3.312 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.719/1.719, allocations: 205.3 MB / 0.5671 GB, free: 15.91 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.0008992/0.0008996, allocations: 82.53 kB / 0.6714 GB, free: 5.031 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.019e-05/3.028e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2036/0.2037, allocations: 106.3 MB / 0.8852 GB, free: 12.29 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6991/0.9028, allocations: 131.7 MB / 1.014 GB, free: 6.117 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002482/0.9031, allocations: 69.95 kB / 1.014 GB, free: 6.078 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003293/0.9064, allocations: 1.157 MB / 1.015 GB, free: 5.039 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.964e-06/0.9064, allocations: 0 / 1.015 GB, free: 5.039 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.304e-06/0.9065, allocations: 4 kB / 1.015 GB, free: 5.035 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.0005645/0.907, allocations: 386.2 kB / 1.015 GB, free: 4.621 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.165e-05/0.9071, allocations: 8.031 kB / 1.015 GB, free: 4.613 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.39e-05/0.9071, allocations: 4 kB / 1.015 GB, free: 4.609 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001848/0.9073, allocations: 180.7 kB / 1.016 GB, free: 4.395 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.175e-05/0.9074, allocations: 0 / 1.016 GB, free: 4.395 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.795e-05/0.9074, allocations: 4 kB / 1.016 GB, free: 4.391 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001047/0.9075, allocations: 35.73 kB / 1.016 GB, free: 4.363 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001026/0.9076, allocations: 53.44 kB / 1.016 GB, free: 4.312 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.288e-06/0.9076, allocations: 0 / 1.016 GB, free: 4.312 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.9076, allocations: 0 / 1.016 GB, free: 4.312 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.986e-06/0.9076, allocations: 7.984 kB / 1.016 GB, free: 4.305 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000499/0.9082, allocations: 276 kB / 1.016 GB, free: 4.02 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.288e-05/0.9083, allocations: 50.08 kB / 1.016 GB, free: 3.969 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.137e-05/0.9083, allocations: 24.53 kB / 1.016 GB, free: 3.949 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.438e-05/0.9083, allocations: 2.734 kB / 1.016 GB, free: 3.949 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001463/0.9085, allocations: 80.36 kB / 1.016 GB, free: 3.867 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 1.452e-06/0.9085, allocations: 0 / 1.016 GB, free: 3.867 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0002145/0.9087, allocations: 85.73 kB / 1.016 GB, free: 3.789 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.9088, allocations: 59.34 kB / 1.016 GB, free: 3.723 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.344e-05/0.9089, allocations: 116.5 kB / 1.016 GB, free: 3.609 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.9089, allocations: 25.7 kB / 1.016 GB, free: 3.578 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.038e-05/0.9089, allocations: 92.02 kB / 1.016 GB, free: 3.492 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.982e-05/0.909, allocations: 15.72 kB / 1.016 GB, free: 3.477 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.939e-06/0.909, allocations: 96 / 1.016 GB, free: 3.477 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001267/0.9091, allocations: 326.5 kB / 1.017 GB, free: 3.152 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.524e-05/0.9092, allocations: 19.81 kB / 1.017 GB, free: 3.141 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.59e-05/0.9092, allocations: 56.86 kB / 1.017 GB, free: 3.086 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.46e-05/0.9093, allocations: 15.88 kB / 1.017 GB, free: 3.074 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.9093, allocations: 0 / 1.017 GB, free: 3.074 MB / 0.6355 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001286/0.9094, allocations: 88.97 kB / 1.017 GB, free: 2.992 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.9094, allocations: 13.7 kB / 1.017 GB, free: 2.98 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.9094, allocations: 0 / 1.017 GB, free: 2.98 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.9095, allocations: 4.094 kB / 1.017 GB, free: 2.977 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.265e-05/0.9095, allocations: 8 kB / 1.017 GB, free: 2.969 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.9095, allocations: 0 / 1.017 GB, free: 2.969 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000124/0.9097, allocations: 23.97 kB / 1.017 GB, free: 2.945 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.087e-06/0.9097, allocations: 7.938 kB / 1.017 GB, free: 2.938 MB / 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 8.99e-05/0.9098, allocations: 123.3 kB / 1.017 GB, free: 2.816 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.647e-05/0.9098, allocations: 11.91 kB / 1.017 GB, free: 2.805 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.842e-05/0.9098, allocations: 12.42 kB / 1.017 GB, free: 2.793 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.9099, allocations: 0 / 1.017 GB, free: 2.793 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.9099, allocations: 0.875 kB / 1.017 GB, free: 2.793 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.9099, allocations: 4 kB / 1.017 GB, free: 2.789 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001447/0.91, allocations: 169.8 kB / 1.017 GB, free: 2.598 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-06/0.91, allocations: 0 / 1.017 GB, free: 2.598 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.066e-05/0.9101, allocations: 0 / 1.017 GB, free: 2.598 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.9101, allocations: 4 kB / 1.017 GB, free: 2.594 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-06/0.9101, allocations: 1.312 kB / 1.017 GB, free: 2.594 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.9101, allocations: 4 kB / 1.017 GB, free: 2.59 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.9101, allocations: 0 / 1.017 GB, free: 2.59 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001352/0.9102, allocations: 120.8 kB / 1.017 GB, free: 2.465 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.775e-05/0.9103, allocations: 84.64 kB / 1.018 GB, free: 2.367 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.183e-05/0.9103, allocations: 7.984 kB / 1.018 GB, free: 2.359 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.9104, allocations: 19.98 kB / 1.018 GB, free: 2.34 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.123e-05/0.9105, allocations: 15.97 kB / 1.018 GB, free: 2.324 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.262e-06/0.9105, allocations: 3.938 kB / 1.018 GB, free: 2.324 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.695e-05/0.9105, allocations: 91.41 kB / 1.018 GB, free: 2.238 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9106, allocations: 0 / 1.018 GB, free: 2.238 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001922/0.9107, allocations: 12 kB / 1.018 GB, free: 2.227 MB / 0.6355 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.0001352/0.9109, allocations: 111 kB / 1.018 GB, free: 2.113 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001185/0.911, allocations: 51.25 kB / 1.018 GB, free: 2.074 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.911, allocations: 4.062 kB / 1.018 GB, free: 2.07 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 5.445e-05/0.9111, allocations: 27.88 kB / 1.018 GB, free: 2.051 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002149/0.9113, allocations: 28.14 kB / 1.018 GB, free: 2.027 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002737/0.9116, allocations: 111.5 kB / 1.018 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002661/0.9119, allocations: 0.704 MB / 1.019 GB, free: 1.176 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.711e-05/0.9119, allocations: 8.562 kB / 1.019 GB, free: 1.164 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.323e-05/0.9119, allocations: 15.12 kB / 1.019 GB, free: 1.152 MB / 0.6355 GB Notification: Performance of SimCode: time 2.6e-07/0.912, allocations: 0 / 1.019 GB, free: 1.152 MB / 0.6355 GB Notification: Performance of Templates: time 0.00282/0.9148, allocations: 0.9937 MB / 1.02 GB, free: 180 kB / 0.6355 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