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.00155/0.00155, allocations: 101.4 kB / 16.27 MB, free: 6.414 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.001444/0.001444, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.324/1.324, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.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.194/2.194, allocations: 390.3 MB / 0.6653 GB, free: 0.7109 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002182/0.002182, allocations: 64.89 kB / 0.8132 GB, free: 33.02 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2819/0.2841, allocations: 140.4 MB / 0.9503 GB, free: 8.844 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002102/0.2863, allocations: 0.6633 MB / 0.9509 GB, free: 8.172 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001449/0.2878, allocations: 1.189 MB / 0.9521 GB, free: 6.969 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.527e-05/0.2878, allocations: 4 kB / 0.9521 GB, free: 6.965 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.08e-05/0.2879, allocations: 3.938 kB / 0.9521 GB, free: 6.961 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.205e-05/0.288, allocations: 7.922 kB / 0.9521 GB, free: 6.953 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007082/0.2887, allocations: 215.3 kB / 0.9523 GB, free: 6.746 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002433/0.289, allocations: 187.7 kB / 0.9525 GB, free: 6.562 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001024/0.2891, allocations: 4 kB / 0.9525 GB, free: 6.559 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001252/0.2892, allocations: 67.94 kB / 0.9526 GB, free: 6.492 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001069/0.2893, allocations: 47.81 kB / 0.9526 GB, free: 6.445 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.784e-05/0.2894, allocations: 20 kB / 0.9526 GB, free: 6.426 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 9.926e-05/0.2895, allocations: 31.97 kB / 0.9527 GB, free: 6.395 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.241e-05/0.2895, allocations: 11.98 kB / 0.9527 GB, free: 6.383 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.701e-05/0.2896, allocations: 55.84 kB / 0.9527 GB, free: 6.328 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002191/0.2898, allocations: 143.6 kB / 0.9529 GB, free: 6.188 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.2898, allocations: 4 kB / 0.9529 GB, free: 6.184 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.653e-06/0.2898, allocations: 0 / 0.9529 GB, free: 6.184 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.631e-06/0.2899, allocations: 0 / 0.9529 GB, free: 6.184 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.0005434/0.2904, allocations: 438.9 kB / 0.9533 GB, free: 5.691 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.2905, allocations: 8.031 kB / 0.9533 GB, free: 5.684 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.546e-05/0.2905, allocations: 16.84 kB / 0.9533 GB, free: 5.668 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001277/0.2907, allocations: 172.3 kB / 0.9535 GB, free: 5.461 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.2907, allocations: 4.375 kB / 0.9535 GB, free: 5.457 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.279e-05/0.2907, allocations: 12.38 kB / 0.9535 GB, free: 5.445 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001163/0.2908, allocations: 50.23 kB / 0.9535 GB, free: 5.391 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.652e-06/0.2909, allocations: 4.125 kB / 0.9535 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.2909, allocations: 3.938 kB / 0.9535 GB, free: 5.383 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.2909, allocations: 0 / 0.9535 GB, free: 5.383 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.219e-05/0.2909, allocations: 12 kB / 0.9536 GB, free: 5.371 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00049/0.2914, allocations: 364.6 kB / 0.9539 GB, free: 4.965 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 8.587e-05/0.2915, allocations: 34.5 kB / 0.9539 GB, free: 4.922 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.218e-05/0.2916, allocations: 16.86 kB / 0.9539 GB, free: 4.902 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 8.376e-06/0.2916, allocations: 0 / 0.9539 GB, free: 4.902 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001955/0.2918, allocations: 91.38 kB / 0.954 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.843e-06/0.2918, allocations: 0 / 0.954 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0002493/0.292, allocations: 97.58 kB / 0.9541 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.2921, allocations: 59.41 kB / 0.9542 GB, free: 4.629 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.215e-05/0.2922, allocations: 113.8 kB / 0.9543 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.241e-05/0.2922, allocations: 29.7 kB / 0.9543 GB, free: 4.473 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.25e-05/0.2923, allocations: 92.12 kB / 0.9544 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.704e-05/0.2923, allocations: 15.8 kB / 0.9544 GB, free: 4.363 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.207e-05/0.2924, allocations: 49.69 kB / 0.9545 GB, free: 4.309 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001033/0.2925, allocations: 326.8 kB / 0.9548 GB, free: 3.98 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001341/0.2927, allocations: 59.97 kB / 0.9548 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001373/0.2928, allocations: 92.19 kB / 0.9549 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002046/0.293, allocations: 164.1 kB / 0.9551 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.293, allocations: 3.938 kB / 0.9551 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004074/0.2935, allocations: 256.8 kB / 0.9553 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.999e-05/0.2935, allocations: 67.39 kB / 0.9554 GB, free: 3.277 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.2935, allocations: 4 kB / 0.9554 GB, free: 3.273 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.2936, allocations: 0 / 0.9554 GB, free: 3.273 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.025e-05/0.2936, allocations: 4 kB / 0.9554 GB, free: 3.27 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.2936, allocations: 4.125 kB / 0.9554 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003772/0.294, allocations: 59.86 kB / 0.9555 GB, free: 3.207 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.093e-05/0.294, allocations: 11.98 kB / 0.9555 GB, free: 3.195 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 9.75e-05/0.2941, allocations: 133 kB / 0.9556 GB, free: 3.059 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.582e-05/0.2941, allocations: 3.969 kB / 0.9556 GB, free: 3.055 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.768e-05/0.2942, allocations: 20.38 kB / 0.9556 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.2942, allocations: 0 / 0.9556 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.2942, allocations: 0 / 0.9556 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.2942, allocations: 3.938 kB / 0.9556 GB, free: 3.031 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000128/0.2943, allocations: 177.6 kB / 0.9558 GB, free: 2.809 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.2943, allocations: 0 / 0.9558 GB, free: 2.809 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.188e-06/0.2944, allocations: 0 / 0.9558 GB, free: 2.809 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.2944, allocations: 4 kB / 0.9558 GB, free: 2.805 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.799e-06/0.2944, allocations: 4 kB / 0.9558 GB, free: 2.801 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.2944, allocations: 0 / 0.9558 GB, free: 2.801 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.2944, allocations: 0 / 0.9558 GB, free: 2.801 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001421/0.2945, allocations: 120.9 kB / 0.9559 GB, free: 2.664 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.769e-05/0.2946, allocations: 81.11 kB / 0.956 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/0.2946, allocations: 7.984 kB / 0.956 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.985e-05/0.2946, allocations: 0 / 0.956 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.429e-05/0.2947, allocations: 7.984 kB / 0.956 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-06/0.2947, allocations: 3.984 kB / 0.956 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.38e-05/0.2947, allocations: 91.22 kB / 0.9561 GB, free: 2.457 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2947, allocations: 4 kB / 0.9561 GB, free: 2.453 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002508/0.295, allocations: 35.91 kB / 0.9561 GB, free: 2.418 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.0001445/0.2951, allocations: 107.2 kB / 0.9562 GB, free: 2.301 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00033/0.2955, allocations: 250.6 kB / 0.9565 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2955, allocations: 3.938 kB / 0.9565 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 5.283e-05/0.2956, allocations: 27.98 kB / 0.9565 GB, free: 2 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002293/0.2958, allocations: 20.23 kB / 0.9565 GB, free: 1.98 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003605/0.2962, allocations: 176.3 kB / 0.9567 GB, free: 1.777 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002232/0.2964, allocations: 0.6883 MB / 0.9574 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.643e-05/0.2964, allocations: 15.44 kB / 0.9574 GB, free: 1.047 MB / 0.7325 GB Notification: Performance of SimCode: time 6.11e-07/0.2964, allocations: 4 kB / 0.9574 GB, free: 1.043 MB / 0.7325 GB Notification: Performance of Templates: time 0.003168/0.2996, allocations: 1.384 MB / 0.9587 GB, free: 15.67 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 -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