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.And3.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.And3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|and1.u1|and1.u2|and1.u3|and1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.And3") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.And3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|and1.u1|and1.u2|and1.u3|and1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.And3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.478/1.478, allocations: 249.3 MB / 261.8 MB, free: 5.906 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.0009905/0.0009905, allocations: 178.6 kB / 321.3 MB, free: 14.63 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.55/1.55, allocations: 205.2 MB / 0.572 GB, free: 10.67 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.001005/0.001005, allocations: 90.47 kB / 0.6764 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.769e-05/3.77e-05, allocations: 4 kB / 0.788 GB, free: 97.08 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2102/0.2102, allocations: 106.3 MB / 0.8918 GB, free: 6.648 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7088/0.9191, allocations: 131.4 MB / 1.02 GB, free: 3.312 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002212/0.9194, allocations: 72.14 kB / 1.02 GB, free: 3.273 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003271/0.9227, allocations: 1.168 MB / 1.021 GB, free: 2.215 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.603e-06/0.9227, allocations: 0 / 1.021 GB, free: 2.215 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.708e-06/0.9227, allocations: 4 kB / 1.021 GB, free: 2.211 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.000461/0.9232, allocations: 388.3 kB / 1.022 GB, free: 1.793 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.9232, allocations: 8.031 kB / 1.022 GB, free: 1.785 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.455e-05/0.9233, allocations: 4 kB / 1.022 GB, free: 1.781 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001464/0.9234, allocations: 182.3 kB / 1.022 GB, free: 1.566 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.598e-05/0.9235, allocations: 0 / 1.022 GB, free: 1.566 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.688e-05/0.9235, allocations: 7.25 kB / 1.022 GB, free: 1.562 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001377/0.9236, allocations: 64.11 kB / 1.022 GB, free: 1.504 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.872e-06/0.9236, allocations: 4 kB / 1.022 GB, free: 1.5 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/0.9237, allocations: 0 / 1.022 GB, free: 1.5 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.9237, allocations: 0 / 1.022 GB, free: 1.5 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.515e-05/0.9237, allocations: 29.69 kB / 1.022 GB, free: 1.48 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006163/0.9244, allocations: 357.1 kB / 1.022 GB, free: 1.105 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.308e-05/0.9245, allocations: 51.91 kB / 1.022 GB, free: 1.059 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.819e-05/0.9245, allocations: 22.53 kB / 1.022 GB, free: 1.043 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.227e-05/0.9246, allocations: 4 kB / 1.022 GB, free: 1.039 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001544/0.9247, allocations: 83.19 kB / 1.022 GB, free: 0.9531 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 3.306e-06/0.9247, allocations: 3.984 kB / 1.022 GB, free: 0.9492 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0002003/0.9249, allocations: 91.62 kB / 1.023 GB, free: 0.8672 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.669e-05/0.925, allocations: 59.36 kB / 1.023 GB, free: 0.7969 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.634e-05/0.9251, allocations: 119.6 kB / 1.023 GB, free: 0.6836 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.9251, allocations: 25.7 kB / 1.023 GB, free: 0.6523 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.193e-05/0.9252, allocations: 90.83 kB / 1.023 GB, free: 0.5664 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.508e-05/0.9252, allocations: 26.91 kB / 1.023 GB, free: 0.543 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.67e-06/0.9252, allocations: 3.062 kB / 1.023 GB, free: 0.543 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.9253, allocations: 317.9 kB / 1.023 GB, free: 232 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.841e-05/0.9254, allocations: 22.84 kB / 1.023 GB, free: 216 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.41e-05/0.9255, allocations: 54.05 kB / 1.023 GB, free: 160 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.51e-05/0.9255, allocations: 11.31 kB / 1.023 GB, free: 152 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.9255, allocations: 4 kB / 1.023 GB, free: 148 kB / 0.6355 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001419/0.9257, allocations: 103.3 kB / 1.023 GB, free: 52 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.9257, allocations: 4 kB / 1.023 GB, free: 48 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.9257, allocations: 4 kB / 1.023 GB, free: 44 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/0.9257, allocations: 0 / 1.023 GB, free: 44 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.134e-05/0.9258, allocations: 11.94 kB / 1.023 GB, free: 32 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.9258, allocations: 0 / 1.023 GB, free: 32 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001229/0.9259, allocations: 35.11 kB / 1.023 GB, free: 0 / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.483e-05/0.926, allocations: 4.047 kB / 1.023 GB, free: 15.99 MB / 0.6511 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,$PRE.booPul1.pulseStart,booPul1.pulseStart,$PRE.booPul2.pulseStart,booPul2.pulseStart,and1.u1,and1.u2,and1.u3,and1.y,$PRE.booPul3.pulseStart,booPul3.pulseStart) * 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 7.476e-05/0.926, allocations: 118.3 kB / 1.024 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.547e-05/0.9261, allocations: 7.906 kB / 1.024 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.698e-05/0.9261, allocations: 12.31 kB / 1.024 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.9261, allocations: 0 / 1.024 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.9261, allocations: 7.938 kB / 1.024 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.9261, allocations: 0 / 1.024 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001593/0.9263, allocations: 194.7 kB / 1.024 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.9263, allocations: 0 / 1.024 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.306e-05/0.9263, allocations: 4 kB / 1.024 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.9263, allocations: 4 kB / 1.024 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.9263, allocations: 4 kB / 1.024 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.9264, allocations: 0 / 1.024 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.9264, allocations: 0 / 1.024 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001529/0.9265, allocations: 126.1 kB / 1.024 GB, free: 15.49 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.402e-05/0.9266, allocations: 85.02 kB / 1.024 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.526e-05/0.9266, allocations: 0 / 1.024 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.9267, allocations: 31.91 kB / 1.024 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.725e-05/0.9268, allocations: 11.97 kB / 1.024 GB, free: 15.35 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.007e-06/0.9268, allocations: 4 kB / 1.024 GB, free: 15.35 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.332e-05/0.9269, allocations: 95.14 kB / 1.024 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9269, allocations: 0 / 1.024 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0001787/0.927, allocations: 19.94 kB / 1.024 GB, free: 15.25 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.pulseStart,booPul2.pulseStart,and1.u1,and1.u2,and1.u3,and1.y,booPul3.pulseStart) * 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.0001291/0.9272, allocations: 107.6 kB / 1.024 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000132/0.9273, allocations: 61.06 kB / 1.024 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.9273, allocations: 4 kB / 1.024 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 6.189e-05/0.9274, allocations: 27.25 kB / 1.024 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002025/0.9276, allocations: 28.02 kB / 1.024 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002685/0.9279, allocations: 123.8 kB / 1.024 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002574/0.9282, allocations: 0.6965 MB / 1.025 GB, free: 14.19 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.892e-05/0.9282, allocations: 4.562 kB / 1.025 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.495e-05/0.9282, allocations: 18.86 kB / 1.025 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of SimCode: time 5.81e-07/0.9282, allocations: 4 kB / 1.025 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of Templates: time 0.003095/0.9313, allocations: 1.052 MB / 1.026 GB, free: 13.13 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.And3.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.And3.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.And3.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.And3.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.And3.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.And3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.And3.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.And3_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Logical_Validation_And3.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.And3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches