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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001277/0.001277, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001633/0.001633, allocations: 198.2 kB / 16.14 MB, free: 6.746 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.485/1.485, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.597/2.597, allocations: 390.2 MB / 0.6642 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 63.91 kB / 0.8119 GB, free: 14.84 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8407/0.8427, allocations: 140.4 MB / 0.9489 GB, free: 9.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.001963/0.8447, allocations: 0.7106 MB / 0.9496 GB, free: 8.539 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001437/0.8461, allocations: 1.203 MB / 0.9508 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.344e-05/0.8462, allocations: 1.25 kB / 0.9508 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.677e-05/0.8462, allocations: 7.922 kB / 0.9508 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.06e-05/0.8463, allocations: 13.17 kB / 0.9508 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000599/0.847, allocations: 192.4 kB / 0.951 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001505/0.8471, allocations: 149 kB / 0.9512 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.8472, allocations: 8.938 kB / 0.9512 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.333e-05/0.8473, allocations: 64.28 kB / 0.9512 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.346e-05/0.8474, allocations: 53.34 kB / 0.9513 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.032e-05/0.8475, allocations: 8.594 kB / 0.9513 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.665e-05/0.8476, allocations: 22.89 kB / 0.9513 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.216e-05/0.8476, allocations: 2.781 kB / 0.9513 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.459e-05/0.8477, allocations: 63.5 kB / 0.9514 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001904/0.8479, allocations: 137.3 kB / 0.9515 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.8479, allocations: 3.938 kB / 0.9515 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.61e-07/0.8479, allocations: 1.375 kB / 0.9515 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.669e-06/0.8479, allocations: 0 / 0.9515 GB, free: 7.133 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.0004718/0.8484, allocations: 438.9 kB / 0.9519 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/0.8484, allocations: 9.031 kB / 0.9519 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.458e-05/0.8485, allocations: 7.375 kB / 0.9519 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.346e-05/0.8486, allocations: 175 kB / 0.9521 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.9e-05/0.8486, allocations: 10.16 kB / 0.9521 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.413e-05/0.8487, allocations: 13.22 kB / 0.9521 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001061/0.8488, allocations: 42.59 kB / 0.9522 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.8488, allocations: 1.594 kB / 0.9522 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/0.8488, allocations: 11.92 kB / 0.9522 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.8488, allocations: 5.344 kB / 0.9522 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.132e-05/0.8489, allocations: 14.69 kB / 0.9522 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004267/0.8493, allocations: 347.3 kB / 0.9525 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.109e-05/0.8494, allocations: 44.5 kB / 0.9526 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.867e-05/0.8494, allocations: 18.27 kB / 0.9526 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.8494, allocations: 1.188 kB / 0.9526 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001339/0.8496, allocations: 79.84 kB / 0.9527 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.563e-06/0.8496, allocations: 0 / 0.9527 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0002352/0.8498, allocations: 103.7 kB / 0.9528 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.958e-05/0.8499, allocations: 60.8 kB / 0.9528 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.391e-05/0.8499, allocations: 119 kB / 0.9529 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.85, allocations: 29.67 kB / 0.953 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.764e-05/0.85, allocations: 89.2 kB / 0.9531 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.637e-05/0.85, allocations: 22.27 kB / 0.9531 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.961e-05/0.8501, allocations: 52.88 kB / 0.9531 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.018e-05/0.8502, allocations: 320.4 kB / 0.9534 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001289/0.8503, allocations: 58.83 kB / 0.9535 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001345/0.8505, allocations: 95.14 kB / 0.9536 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001611/0.8506, allocations: 156.2 kB / 0.9537 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.8507, allocations: 4 kB / 0.9537 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003841/0.851, allocations: 266.8 kB / 0.954 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.304e-05/0.8511, allocations: 68.48 kB / 0.9541 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.8511, allocations: 1.188 kB / 0.9541 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.8511, allocations: 2.25 kB / 0.9541 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.279e-05/0.8511, allocations: 6.25 kB / 0.9541 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.8512, allocations: 0.9375 kB / 0.9541 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003566/0.8515, allocations: 56.03 kB / 0.9541 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.268e-05/0.8516, allocations: 13.05 kB / 0.9541 GB, free: 4.648 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 8.464e-05/0.8517, allocations: 126.1 kB / 0.9543 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.312e-05/0.8517, allocations: 10.7 kB / 0.9543 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.365e-05/0.8517, allocations: 5.594 kB / 0.9543 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.8517, allocations: 1.375 kB / 0.9543 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.8517, allocations: 1.406 kB / 0.9543 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.8517, allocations: 4 kB / 0.9543 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.005e-05/0.8518, allocations: 177.3 kB / 0.9544 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.8518, allocations: 96 / 0.9544 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.136e-05/0.8518, allocations: 9.328 kB / 0.9545 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.8518, allocations: 7.922 kB / 0.9545 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.8519, allocations: 1.406 kB / 0.9545 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.8519, allocations: 5.5 kB / 0.9545 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.8519, allocations: 0 / 0.9545 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001255/0.852, allocations: 115.7 kB / 0.9546 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.234e-05/0.852, allocations: 78.45 kB / 0.9547 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.648e-05/0.8521, allocations: 5.156 kB / 0.9547 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.823e-05/0.8521, allocations: 1.094 kB / 0.9547 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.766e-05/0.8521, allocations: 8.078 kB / 0.9547 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.642e-06/0.8521, allocations: 5.438 kB / 0.9547 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.675e-05/0.8522, allocations: 92.08 kB / 0.9548 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8522, allocations: 0 / 0.9548 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002311/0.8524, allocations: 26.66 kB / 0.9548 GB, free: 3.992 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.0001541/0.8526, allocations: 120 kB / 0.9549 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003241/0.8529, allocations: 243.9 kB / 0.9551 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.8529, allocations: 0 / 0.9551 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.932e-05/0.853, allocations: 24.28 kB / 0.9552 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002267/0.8532, allocations: 18.36 kB / 0.9552 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003014/0.8535, allocations: 174.7 kB / 0.9553 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001096/0.8536, allocations: 0.6909 MB / 0.956 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.645e-05/0.8537, allocations: 7.562 kB / 0.956 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.701e-05/0.8537, allocations: 11.19 kB / 0.956 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.8537, allocations: 1.25 kB / 0.956 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of Templates: time 0.004109/0.8578, allocations: 1.764 MB / 0.9578 GB, free: 1.895 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/jenkins/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