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.001701/0.001701, allocations: 112.6 kB / 16.37 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002002/0.002002, allocations: 196 kB / 17.31 MB, free: 5.613 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.431/1.431, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.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.311/2.311, allocations: 390.3 MB / 0.6655 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 68.42 kB / 0.814 GB, free: 32.65 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3251/0.3265, allocations: 140.4 MB / 0.9511 GB, free: 8.062 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002474/0.329, allocations: 0.6667 MB / 0.9518 GB, free: 7.395 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001798/0.3308, allocations: 1.189 MB / 0.9529 GB, free: 6.191 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.252e-05/0.3309, allocations: 4 kB / 0.953 GB, free: 6.188 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.28e-05/0.331, allocations: 3.938 kB / 0.953 GB, free: 6.184 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.998e-05/0.3311, allocations: 11.91 kB / 0.953 GB, free: 6.172 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008199/0.3319, allocations: 219.2 kB / 0.9532 GB, free: 5.961 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002993/0.3323, allocations: 175.7 kB / 0.9533 GB, free: 5.789 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001425/0.3324, allocations: 19.98 kB / 0.9534 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002018/0.3326, allocations: 71.83 kB / 0.9534 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000167/0.3328, allocations: 63.83 kB / 0.9535 GB, free: 5.637 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.254e-05/0.3328, allocations: 16 kB / 0.9535 GB, free: 5.621 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 9.177e-05/0.3329, allocations: 27.98 kB / 0.9535 GB, free: 5.594 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.228e-05/0.333, allocations: 7.938 kB / 0.9535 GB, free: 5.586 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 9.143e-05/0.3331, allocations: 59.88 kB / 0.9536 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002416/0.3333, allocations: 143.6 kB / 0.9537 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3333, allocations: 0 / 0.9537 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.224e-06/0.3333, allocations: 0 / 0.9537 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.73e-06/0.3333, allocations: 4 kB / 0.9537 GB, free: 5.383 MB / 0.7325 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.0006194/0.334, allocations: 438.6 kB / 0.9542 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.334, allocations: 12.03 kB / 0.9542 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.689e-05/0.3341, allocations: 8.844 kB / 0.9542 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.3342, allocations: 176.3 kB / 0.9543 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.006e-05/0.3343, allocations: 8.359 kB / 0.9544 GB, free: 4.652 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.625e-05/0.3343, allocations: 12.38 kB / 0.9544 GB, free: 4.641 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00012/0.3344, allocations: 46.25 kB / 0.9544 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.3345, allocations: 192 / 0.9544 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.3345, allocations: 7.938 kB / 0.9544 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.3345, allocations: 0 / 0.9544 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.08e-05/0.3345, allocations: 15.98 kB / 0.9544 GB, free: 4.566 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005213/0.3351, allocations: 352.7 kB / 0.9548 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 8.466e-05/0.3352, allocations: 38.45 kB / 0.9548 GB, free: 4.125 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.724e-05/0.3352, allocations: 20.94 kB / 0.9548 GB, free: 4.102 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 9.107e-06/0.3352, allocations: 0 / 0.9548 GB, free: 4.102 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000235/0.3355, allocations: 79.38 kB / 0.9549 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.3355, allocations: 0 / 0.9549 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0002746/0.3358, allocations: 109.7 kB / 0.955 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.25e-05/0.3358, allocations: 51.41 kB / 0.9551 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.336, allocations: 121.8 kB / 0.9552 GB, free: 3.707 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.149e-05/0.336, allocations: 29.7 kB / 0.9552 GB, free: 3.672 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.939e-05/0.3361, allocations: 88.14 kB / 0.9553 GB, free: 3.582 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.826e-05/0.3361, allocations: 23.75 kB / 0.9553 GB, free: 3.559 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.546e-05/0.3362, allocations: 53.67 kB / 0.9554 GB, free: 3.5 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.3363, allocations: 318.8 kB / 0.9557 GB, free: 3.18 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.3365, allocations: 59.97 kB / 0.9557 GB, free: 3.121 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001595/0.3366, allocations: 100.2 kB / 0.9558 GB, free: 3.008 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002044/0.3368, allocations: 159.6 kB / 0.956 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.3368, allocations: 0 / 0.956 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004205/0.3373, allocations: 260.8 kB / 0.9562 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 6.218e-05/0.3373, allocations: 67.41 kB / 0.9563 GB, free: 2.473 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.3374, allocations: 4.203 kB / 0.9563 GB, free: 2.469 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.081e-05/0.3374, allocations: 7.969 kB / 0.9563 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.455e-05/0.3374, allocations: 4 kB / 0.9563 GB, free: 2.457 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.3374, allocations: 3.984 kB / 0.9563 GB, free: 2.453 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003437/0.3378, allocations: 47.94 kB / 0.9563 GB, free: 2.406 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.803e-05/0.3378, allocations: 16.45 kB / 0.9564 GB, free: 2.391 MB / 0.7325 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.0001306/0.338, allocations: 137.7 kB / 0.9565 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.573e-05/0.338, allocations: 3.906 kB / 0.9565 GB, free: 2.242 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.045e-05/0.338, allocations: 8.375 kB / 0.9565 GB, free: 2.234 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.338, allocations: 0 / 0.9565 GB, free: 2.234 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.338, allocations: 3.938 kB / 0.9565 GB, free: 2.23 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.338, allocations: 0 / 0.9565 GB, free: 2.23 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002017/0.3382, allocations: 185.6 kB / 0.9567 GB, free: 2 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.3383, allocations: 0 / 0.9567 GB, free: 2 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.138e-05/0.3383, allocations: 4 kB / 0.9567 GB, free: 1.996 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.3383, allocations: 0 / 0.9567 GB, free: 1.996 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.3383, allocations: 4 kB / 0.9567 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.3383, allocations: 0 / 0.9567 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3383, allocations: 0 / 0.9567 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000158/0.3385, allocations: 116.9 kB / 0.9568 GB, free: 1.859 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.69e-05/0.3385, allocations: 81.09 kB / 0.9569 GB, free: 1.762 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.622e-05/0.3385, allocations: 4 kB / 0.9569 GB, free: 1.758 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.125e-05/0.3386, allocations: 0 / 0.9569 GB, free: 1.758 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.729e-05/0.3386, allocations: 8 kB / 0.9569 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.206e-06/0.3386, allocations: 7.984 kB / 0.9569 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.761e-05/0.3387, allocations: 87.28 kB / 0.957 GB, free: 1.656 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.465e-06/0.3387, allocations: 0 / 0.957 GB, free: 1.656 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002542/0.339, allocations: 39.83 kB / 0.957 GB, free: 1.617 MB / 0.7325 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.0001843/0.3392, allocations: 103.2 kB / 0.9571 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003641/0.3395, allocations: 246.6 kB / 0.9574 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3395, allocations: 256 / 0.9574 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 5.839e-05/0.3396, allocations: 39.91 kB / 0.9574 GB, free: 1.199 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002689/0.3399, allocations: 20.17 kB / 0.9574 GB, free: 1.18 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004114/0.3403, allocations: 150.8 kB / 0.9576 GB, free: 1.004 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003249/0.3406, allocations: 0.6889 MB / 0.9582 GB, free: 296 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.843e-05/0.3407, allocations: 7.984 kB / 0.9582 GB, free: 288 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.497e-05/0.3407, allocations: 15.72 kB / 0.9583 GB, free: 272 kB / 0.7325 GB Notification: Performance of SimCode: time 3.21e-07/0.3407, allocations: 0 / 0.9583 GB, free: 272 kB / 0.7325 GB Notification: Performance of Templates: time 0.005454/0.3462, allocations: 1.849 MB / 0.9601 GB, free: 14.45 MB / 0.7481 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 -s cvode -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