Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nand1.u1|nand1.u2|nand1.y",fileNamePrefix="Buildings_9_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_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001486/0.001485, allocations: 200.7 kB / 16.79 MB, free: 6.809 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.374/1.374, allocations: 222.9 MB / 240.5 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.479/2.479, allocations: 390.2 MB / 0.6649 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001593/0.001593, allocations: 63.91 kB / 0.8125 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6809/0.6826, allocations: 140.3 MB / 0.9496 GB, free: 9.195 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002135/0.6847, allocations: 0.724 MB / 0.9503 GB, free: 8.641 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001515/0.6863, allocations: 1.212 MB / 0.9515 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.038e-05/0.6863, allocations: 0 / 0.9515 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.41e-05/0.6864, allocations: 0 / 0.9515 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.506e-05/0.6865, allocations: 10.69 kB / 0.9515 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006337/0.6871, allocations: 198.8 kB / 0.9517 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001795/0.6873, allocations: 149.4 kB / 0.9518 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/0.6874, allocations: 13.3 kB / 0.9518 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001836/0.6876, allocations: 56.3 kB / 0.9519 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000149/0.6878, allocations: 55.86 kB / 0.9519 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.775e-05/0.6879, allocations: 9.844 kB / 0.9519 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001383/0.688, allocations: 26.05 kB / 0.952 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.258e-05/0.6881, allocations: 7.906 kB / 0.952 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001301/0.6882, allocations: 58.34 kB / 0.952 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002254/0.6884, allocations: 100.5 kB / 0.9521 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.6884, allocations: 0 / 0.9521 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.225e-06/0.6884, allocations: 0 / 0.9521 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.746e-06/0.6885, allocations: 0 / 0.9521 GB, free: 7.258 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0007114/0.6892, allocations: 434.8 kB / 0.9525 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/0.6892, allocations: 13.78 kB / 0.9526 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.612e-05/0.6893, allocations: 12.16 kB / 0.9526 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001533/0.6895, allocations: 182.6 kB / 0.9527 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.847e-05/0.6895, allocations: 5.438 kB / 0.9528 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.34e-05/0.6896, allocations: 8.906 kB / 0.9528 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001351/0.6897, allocations: 51.64 kB / 0.9528 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.6897, allocations: 192 / 0.9528 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.6898, allocations: 5.062 kB / 0.9528 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.6898, allocations: 1.031 kB / 0.9528 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.239e-05/0.6898, allocations: 11.25 kB / 0.9528 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005887/0.6904, allocations: 350.5 kB / 0.9532 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001084/0.6906, allocations: 41.09 kB / 0.9532 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.624e-05/0.6906, allocations: 18.45 kB / 0.9532 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.6906, allocations: 1.281 kB / 0.9532 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002626/0.6909, allocations: 88.02 kB / 0.9533 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.573e-06/0.6909, allocations: 0 / 0.9533 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003348/0.6912, allocations: 104.1 kB / 0.9534 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.16e-05/0.6913, allocations: 52.53 kB / 0.9535 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001215/0.6914, allocations: 123 kB / 0.9536 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.41e-05/0.6915, allocations: 28.92 kB / 0.9536 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.653e-05/0.6915, allocations: 94.16 kB / 0.9537 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.258e-05/0.6916, allocations: 13.59 kB / 0.9537 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.6917, allocations: 52.31 kB / 0.9537 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.378e-05/0.6918, allocations: 325.7 kB / 0.9541 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001792/0.692, allocations: 58.06 kB / 0.9541 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001943/0.6922, allocations: 94.45 kB / 0.9542 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002497/0.6924, allocations: 160.2 kB / 0.9544 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/0.6925, allocations: 1.656 kB / 0.9544 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0006116/0.6931, allocations: 261.1 kB / 0.9546 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.064e-05/0.6932, allocations: 70.83 kB / 0.9547 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.6932, allocations: 5.156 kB / 0.9547 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.789e-05/0.6932, allocations: 2.062 kB / 0.9547 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.905e-05/0.6932, allocations: 6.594 kB / 0.9547 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/0.6933, allocations: 1.031 kB / 0.9547 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004092/0.6937, allocations: 56.05 kB / 0.9547 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.019e-05/0.6937, allocations: 13.22 kB / 0.9548 GB, free: 4.773 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,nand1.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 (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 2 * 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.0001167/0.6938, allocations: 130.5 kB / 0.9549 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.867e-05/0.6939, allocations: 10.16 kB / 0.9549 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.047e-05/0.6939, allocations: 5.656 kB / 0.9549 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.6939, allocations: 1.219 kB / 0.9549 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.6939, allocations: 0 / 0.9549 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.6939, allocations: 1.094 kB / 0.9549 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001113/0.6941, allocations: 184.5 kB / 0.9551 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.6941, allocations: 0 / 0.9551 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.079e-05/0.6941, allocations: 1.344 kB / 0.9551 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.6941, allocations: 1.219 kB / 0.9551 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.6941, allocations: 5.344 kB / 0.9551 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.6941, allocations: 0 / 0.9551 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.6941, allocations: 5.094 kB / 0.9551 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001472/0.6943, allocations: 119.5 kB / 0.9552 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.048e-05/0.6943, allocations: 79.3 kB / 0.9553 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.902e-05/0.6943, allocations: 1.344 kB / 0.9553 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.362e-05/0.6944, allocations: 5.359 kB / 0.9553 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.462e-05/0.6944, allocations: 10.72 kB / 0.9553 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.6944, allocations: 2.625 kB / 0.9553 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.8e-05/0.6945, allocations: 94.36 kB / 0.9554 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6945, allocations: 1.375 kB / 0.9554 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002906/0.6948, allocations: 26.06 kB / 0.9554 GB, free: 4.113 MB / 0.7169 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 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,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 (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.0001753/0.6949, allocations: 107.5 kB / 0.9555 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003298/0.6953, allocations: 248.6 kB / 0.9558 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.6953, allocations: 0 / 0.9558 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.728e-05/0.6954, allocations: 28.91 kB / 0.9558 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002553/0.6956, allocations: 21.05 kB / 0.9558 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003503/0.696, allocations: 195.4 kB / 0.956 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001199/0.6961, allocations: 0.6838 MB / 0.9567 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.176e-05/0.6961, allocations: 19.75 kB / 0.9567 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of SimCode: time 3.31e-07/0.6961, allocations: 0 / 0.9567 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of Templates: time 0.003101/0.6993, allocations: 1.385 MB / 0.958 GB, free: 2.176 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches