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.Nand.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.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nand1.u1|nand1.u2|nand1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nand") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nand1.u1|nand1.u2|nand1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.373/1.373, allocations: 251.9 MB / 266.9 MB, free: 10.98 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001165/0.001166, allocations: 184.1 kB / 326.5 MB, free: 2.215 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.701/1.701, allocations: 205.4 MB / 0.5775 GB, free: 20.24 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.001195/0.001194, allocations: 91.2 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003332/0.0003333, allocations: 12.19 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2165/0.2169, allocations: 106.3 MB / 0.9001 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1699/0.3868, allocations: 131.4 MB / 1.028 GB, free: 12.27 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002382/0.3871, allocations: 75.95 kB / 1.029 GB, free: 12.2 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002442/0.3895, allocations: 0.8994 MB / 1.029 GB, free: 11.29 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.804e-06/0.3895, allocations: 0 / 1.029 GB, free: 11.29 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.722e-06/0.3896, allocations: 0 / 1.029 GB, free: 11.29 MB / 0.6823 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.0004807/0.39, allocations: 375.1 kB / 1.03 GB, free: 10.88 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.3901, allocations: 8.031 kB / 1.03 GB, free: 10.87 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.986e-05/0.3901, allocations: 4 kB / 1.03 GB, free: 10.86 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.3903, allocations: 182.9 kB / 1.03 GB, free: 10.64 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.3903, allocations: 0 / 1.03 GB, free: 10.64 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.246e-05/0.3903, allocations: 4 kB / 1.03 GB, free: 10.64 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001109/0.3905, allocations: 53.67 kB / 1.03 GB, free: 10.58 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.3905, allocations: 0 / 1.03 GB, free: 10.58 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.3905, allocations: 0 / 1.03 GB, free: 10.58 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.3905, allocations: 0 / 1.03 GB, free: 10.58 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.184e-05/0.3906, allocations: 31.92 kB / 1.03 GB, free: 10.55 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000416/0.391, allocations: 272.9 kB / 1.03 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 9.774e-05/0.3911, allocations: 42.56 kB / 1.03 GB, free: 10.18 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 8.416e-06/0.3911, allocations: 0 / 1.03 GB, free: 10.18 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001854/0.3913, allocations: 79.44 kB / 1.03 GB, free: 10.09 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.3913, allocations: 0 / 1.03 GB, free: 10.09 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.0002101/0.3915, allocations: 89.66 kB / 1.031 GB, free: 10 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.517e-05/0.3916, allocations: 51.41 kB / 1.031 GB, free: 9.938 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.314e-05/0.3917, allocations: 105.3 kB / 1.031 GB, free: 9.828 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.95e-05/0.3917, allocations: 29.7 kB / 1.031 GB, free: 9.793 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.51e-05/0.3918, allocations: 88.14 kB / 1.031 GB, free: 9.703 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.149e-05/0.3918, allocations: 11.8 kB / 1.031 GB, free: 9.691 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.029e-06/0.3918, allocations: 4 kB / 1.031 GB, free: 9.688 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001279/0.3919, allocations: 322.8 kB / 1.031 GB, free: 9.363 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.26e-05/0.392, allocations: 19.92 kB / 1.031 GB, free: 9.344 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.443e-05/0.392, allocations: 30.58 kB / 1.031 GB, free: 9.305 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.289e-05/0.3921, allocations: 16.3 kB / 1.031 GB, free: 9.289 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.3921, allocations: 0 / 1.031 GB, free: 9.289 MB / 0.6823 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000121/0.3922, allocations: 89.5 kB / 1.031 GB, free: 9.195 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.3922, allocations: 8 kB / 1.031 GB, free: 9.188 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.3922, allocations: 0 / 1.031 GB, free: 9.188 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.3923, allocations: 0 / 1.031 GB, free: 9.188 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.746e-05/0.3923, allocations: 4 kB / 1.031 GB, free: 9.184 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.3923, allocations: 8.188 kB / 1.031 GB, free: 9.176 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.101e-05/0.3924, allocations: 15.98 kB / 1.031 GB, free: 9.16 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.235e-06/0.3924, allocations: 11.88 kB / 1.031 GB, free: 9.148 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,booPul2.y,$PRE.booPul2.pulseStart,booPul2.pulseStart,nand1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.27e-05/0.3925, allocations: 126.7 kB / 1.031 GB, free: 9.016 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.352e-05/0.3926, allocations: 7.984 kB / 1.031 GB, free: 9.008 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.019e-05/0.3926, allocations: 12.36 kB / 1.031 GB, free: 9 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.3926, allocations: 3.938 kB / 1.031 GB, free: 8.996 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3926, allocations: 0 / 1.031 GB, free: 8.996 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.3926, allocations: 0 / 1.031 GB, free: 8.996 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001579/0.3928, allocations: 177.6 kB / 1.032 GB, free: 8.773 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3928, allocations: 0 / 1.032 GB, free: 8.773 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.155e-06/0.3928, allocations: 0 / 1.032 GB, free: 8.773 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.3928, allocations: 8 kB / 1.032 GB, free: 8.766 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.3928, allocations: 0 / 1.032 GB, free: 8.766 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3928, allocations: 0 / 1.032 GB, free: 8.766 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3928, allocations: 0 / 1.032 GB, free: 8.766 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00013/0.393, allocations: 108.9 kB / 1.032 GB, free: 8.641 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.239e-05/0.393, allocations: 89 kB / 1.032 GB, free: 8.535 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.49e-05/0.3931, allocations: 0 / 1.032 GB, free: 8.535 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.13e-05/0.3931, allocations: 15.98 kB / 1.032 GB, free: 8.52 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.106e-05/0.3932, allocations: 7.984 kB / 1.032 GB, free: 8.512 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-06/0.3932, allocations: 8 kB / 1.032 GB, free: 8.504 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.783e-05/0.3933, allocations: 91.27 kB / 1.032 GB, free: 8.414 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3933, allocations: 0 / 1.032 GB, free: 8.414 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0001856/0.3935, allocations: 8 kB / 1.032 GB, free: 8.406 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booPul1.y,booPul1.pulseStart,booPul2.y,booPul2.pulseStart,nand1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001351/0.3936, allocations: 99.25 kB / 1.032 GB, free: 8.297 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0001159/0.3937, allocations: 47.92 kB / 1.032 GB, free: 8.25 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3937, allocations: 0 / 1.032 GB, free: 8.25 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 5.199e-05/0.3938, allocations: 23.98 kB / 1.032 GB, free: 8.227 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001813/0.394, allocations: 18.19 kB / 1.032 GB, free: 8.211 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003506/0.3943, allocations: 170.9 kB / 1.032 GB, free: 8.012 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002611/0.3946, allocations: 0.6905 MB / 1.033 GB, free: 7.297 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 2.966e-05/0.3947, allocations: 7.859 kB / 1.033 GB, free: 7.289 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.744e-05/0.3947, allocations: 11.44 kB / 1.033 GB, free: 7.277 MB / 0.6823 GB Notification: Performance of SimCode: time 2.41e-07/0.3947, allocations: 0 / 1.033 GB, free: 7.277 MB / 0.6823 GB Notification: Performance of Templates: time 0.002749/0.3974, allocations: 0.7545 MB / 1.034 GB, free: 6.531 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Logical_Validation_Nand.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches