Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001866/0.001866, allocations: 115.8 kB / 16.37 MB, free: 6.012 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.001811/0.001811, allocations: 193.4 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.449/1.449, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.587/2.587, allocations: 437.1 MB / 0.7112 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 63.17 kB / 0.8707 GB, free: 1.43 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3144/0.3156, allocations: 151.6 MB / 1.019 GB, free: 9.832 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.001817/0.3175, allocations: 0.6559 MB / 1.019 GB, free: 9.172 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001321/0.3188, allocations: 1.192 MB / 1.021 GB, free: 7.965 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.166e-05/0.3189, allocations: 4 kB / 1.021 GB, free: 7.961 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.706e-05/0.3189, allocations: 3.938 kB / 1.021 GB, free: 7.957 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 6.536e-05/0.319, allocations: 11.88 kB / 1.021 GB, free: 7.945 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006002/0.3196, allocations: 222.5 kB / 1.021 GB, free: 7.734 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002273/0.3199, allocations: 175.8 kB / 1.021 GB, free: 7.562 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 8.884e-05/0.32, allocations: 16 kB / 1.021 GB, free: 7.547 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 8.611e-05/0.32, allocations: 67.89 kB / 1.021 GB, free: 7.48 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000122/0.3202, allocations: 67.77 kB / 1.021 GB, free: 7.414 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.116e-05/0.3202, allocations: 16 kB / 1.021 GB, free: 7.398 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 7.239e-05/0.3203, allocations: 27.98 kB / 1.021 GB, free: 7.371 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.127e-05/0.3203, allocations: 11.92 kB / 1.021 GB, free: 7.359 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 7.573e-05/0.3204, allocations: 51.89 kB / 1.021 GB, free: 7.309 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001865/0.3206, allocations: 151.6 kB / 1.021 GB, free: 7.16 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3206, allocations: 0 / 1.021 GB, free: 7.16 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3206, allocations: 4 kB / 1.021 GB, free: 7.156 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.668e-06/0.3206, allocations: 0 / 1.021 GB, free: 7.156 MB / 0.795 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.0004789/0.3211, allocations: 438.6 kB / 1.022 GB, free: 6.664 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.3212, allocations: 8.922 kB / 1.022 GB, free: 6.656 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.167e-05/0.3212, allocations: 16.84 kB / 1.022 GB, free: 6.641 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001013/0.3213, allocations: 164.4 kB / 1.022 GB, free: 6.441 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.539e-05/0.3213, allocations: 4.375 kB / 1.022 GB, free: 6.438 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.003e-05/0.3214, allocations: 12.36 kB / 1.022 GB, free: 6.426 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.8e-05/0.3215, allocations: 54.19 kB / 1.022 GB, free: 6.367 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.742e-06/0.3215, allocations: 4.188 kB / 1.022 GB, free: 6.363 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.919e-06/0.3215, allocations: 7.938 kB / 1.022 GB, free: 6.355 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.3215, allocations: 3.938 kB / 1.022 GB, free: 6.352 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.515e-05/0.3216, allocations: 15.98 kB / 1.022 GB, free: 6.336 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004211/0.322, allocations: 348.7 kB / 1.022 GB, free: 5.945 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 7.171e-05/0.3221, allocations: 42.45 kB / 1.022 GB, free: 5.895 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.944e-05/0.3221, allocations: 16.94 kB / 1.022 GB, free: 5.875 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 9.257e-06/0.3221, allocations: 4 kB / 1.022 GB, free: 5.871 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001546/0.3223, allocations: 83.36 kB / 1.023 GB, free: 5.777 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/0.3223, allocations: 3.938 kB / 1.023 GB, free: 5.773 MB / 0.795 GB Notification: Performance of matching and sorting (n=7): time 0.0002236/0.3225, allocations: 101.5 kB / 1.023 GB, free: 5.668 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.019e-05/0.3226, allocations: 55.41 kB / 1.023 GB, free: 5.602 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.204e-05/0.3227, allocations: 117.8 kB / 1.023 GB, free: 5.477 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.941e-05/0.3227, allocations: 29.7 kB / 1.023 GB, free: 5.441 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.669e-05/0.3228, allocations: 92.14 kB / 1.023 GB, free: 5.348 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.783e-05/0.3228, allocations: 19.8 kB / 1.023 GB, free: 5.328 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.919e-05/0.3229, allocations: 45.69 kB / 1.023 GB, free: 5.277 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.323, allocations: 326.8 kB / 1.023 GB, free: 4.949 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000125/0.3231, allocations: 51.97 kB / 1.023 GB, free: 4.898 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001336/0.3233, allocations: 96.25 kB / 1.023 GB, free: 4.789 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001713/0.3235, allocations: 159.6 kB / 1.024 GB, free: 4.605 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3235, allocations: 0 / 1.024 GB, free: 4.605 MB / 0.795 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003996/0.3239, allocations: 269.2 kB / 1.024 GB, free: 4.324 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.818e-05/0.3239, allocations: 71.52 kB / 1.024 GB, free: 4.242 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.3239, allocations: 0 / 1.024 GB, free: 4.242 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.324, allocations: 4 kB / 1.024 GB, free: 4.238 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.933e-05/0.324, allocations: 3.984 kB / 1.024 GB, free: 4.234 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.324, allocations: 4.312 kB / 1.024 GB, free: 4.23 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003137/0.3243, allocations: 47.94 kB / 1.024 GB, free: 4.184 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.031e-05/0.3243, allocations: 8 kB / 1.024 GB, free: 4.176 MB / 0.795 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 9.204e-05/0.3244, allocations: 142.3 kB / 1.024 GB, free: 4.027 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.444e-05/0.3245, allocations: 7.906 kB / 1.024 GB, free: 4.02 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.475e-05/0.3245, allocations: 8.359 kB / 1.024 GB, free: 4.008 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.3245, allocations: 4 kB / 1.024 GB, free: 4.004 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.3245, allocations: 0 / 1.024 GB, free: 4.004 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.3245, allocations: 0 / 1.024 GB, free: 4.004 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001194/0.3246, allocations: 181.6 kB / 1.024 GB, free: 3.777 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.3246, allocations: 0 / 1.024 GB, free: 3.777 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.965e-06/0.3247, allocations: 0 / 1.024 GB, free: 3.777 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.3247, allocations: 4 kB / 1.024 GB, free: 3.773 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.675e-06/0.3247, allocations: 0 / 1.024 GB, free: 3.773 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.3247, allocations: 4 kB / 1.024 GB, free: 3.77 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.3247, allocations: 8.047 kB / 1.024 GB, free: 3.762 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001326/0.3248, allocations: 109 kB / 1.024 GB, free: 3.637 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.249e-05/0.3249, allocations: 88.95 kB / 1.025 GB, free: 3.531 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.617e-05/0.3249, allocations: 3.984 kB / 1.025 GB, free: 3.527 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.967e-05/0.3249, allocations: 3.938 kB / 1.025 GB, free: 3.523 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.116e-05/0.325, allocations: 15.98 kB / 1.025 GB, free: 3.508 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-06/0.325, allocations: 4 kB / 1.025 GB, free: 3.504 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.011e-05/0.325, allocations: 91.27 kB / 1.025 GB, free: 3.414 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.325, allocations: 0 / 1.025 GB, free: 3.414 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000234/0.3253, allocations: 32 kB / 1.025 GB, free: 3.383 MB / 0.795 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.0001327/0.3254, allocations: 107.2 kB / 1.025 GB, free: 3.27 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003062/0.3257, allocations: 242.6 kB / 1.025 GB, free: 3.008 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3257, allocations: 4.25 kB / 1.025 GB, free: 3.004 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 4.536e-05/0.3258, allocations: 24.28 kB / 1.025 GB, free: 2.98 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002198/0.326, allocations: 19.92 kB / 1.025 GB, free: 2.961 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002944/0.3263, allocations: 160.6 kB / 1.025 GB, free: 2.777 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002027/0.3265, allocations: 0.6807 MB / 1.026 GB, free: 2.07 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 2.509e-05/0.3266, allocations: 8 kB / 1.026 GB, free: 2.062 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.99e-05/0.3266, allocations: 11.44 kB / 1.026 GB, free: 2.051 MB / 0.795 GB Notification: Performance of SimCode: time 2.3e-07/0.3266, allocations: 0 / 1.026 GB, free: 2.051 MB / 0.795 GB Notification: Performance of Templates: time 0.004048/0.3306, allocations: 1.84 MB / 1.028 GB, free: 240 kB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches